Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5152036pxj; Wed, 9 Jun 2021 10:17:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLk/YJnOLLV31KoWaao23Ja2Q5ya6Kxz0jYsJ2ZY38RLMnd2XnQ2aOe3yFWVnroVjjn0PX X-Received: by 2002:a05:6402:1644:: with SMTP id s4mr509907edx.190.1623259039918; Wed, 09 Jun 2021 10:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623259039; cv=none; d=google.com; s=arc-20160816; b=VqNo1t0VUV2F2q2hwWMhwsfeNeXpkE23zcNHom2xmTS1Quoo+uBVdC0qEmmKsp67cG yd0wRn6w5QP4WSU5PakuuaJTS4yKBSGbxJGukqmXEwlUzWdMtbFEmtoTS9VcZJoevKTq y9bSxrc110Q7VuVfvQn9a1byCr37Ti6hStNHR0j3J9DZn2C2osYNzQ2ktCfmtseuFVKk 45buTEb/DgAhSoCzibOFsmYtraLHCPCC5zl5KkgFMKV8bDKBcYhvsUd9lAiGZ7HP1cbj NrQU2KSd9aNW8MwHdyZoeTIHjOYryfJZD2W+6LQY2ZOkEA1gnpmhBqmFgaMom2qfvVZu Qcog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=kzAW9ljiaqlTZfXsOgKHrbFDujbrx4PavBhr7nYL3+k=; b=wRSCG2Z8w4gAISn9CZ+oQCnltgrOiQgmNq6KbKo+fqczI1mMWkUbk6B4PWWuHsZmS6 DfXXTib3En4fY0C3I5m/yx+JG9PCqCuJ7+gyUqe5U4qIt5G3FywXlt3hjSUnfnWR7LYb u89NJMLdptpDt0GNd3XcQvM7LXPq4JgstpcpzuBmuze1X7CIp341NmEY0SrFaNTMEhR2 iiFe8CqrB58RakDaLf1w6Q1u3x0+cnI6lyqUggnnt+Y3BaDTgPZnHH2eUnitIIBTEeaC QK1nl3jHG/CXqUGgCA+sYMdZMM1xBSIDO1rt/X3EEg9PZ2fbs30LGt4CnDg5zD/zacj/ eXCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o8si326685ejj.94.2021.06.09.10.16.56; Wed, 09 Jun 2021 10:17:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234923AbhFIKGp (ORCPT + 99 others); Wed, 9 Jun 2021 06:06:45 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:38276 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232972AbhFIKGp (ORCPT ); Wed, 9 Jun 2021 06:06:45 -0400 X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 1599bP2c9007528, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36502.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.71/5.88) with ESMTPS id 1599bP2c9007528 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 9 Jun 2021 17:37:25 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) by RTEXH36502.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 9 Jun 2021 17:37:24 +0800 Received: from localhost.localdomain (172.21.177.191) by RTEXMBS03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 9 Jun 2021 17:37:23 +0800 From: Edward Wu To: CC: , Edward Wu , Steven Rostedt , Ingo Molnar , "David S. Miller" , Jakub Kicinski , Subject: [PATCH net-dev] net: Exposing more skb fields in netif_receive_skb trace event Date: Wed, 9 Jun 2021 17:36:54 +0800 Message-ID: <20210609093656.8984-1-edwardwu@realtek.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.177.191] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS03.realtek.com.tw (172.21.6.96) X-KSE-ServerInfo: RTEXMBS03.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: trusted connection X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Deterministic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 06/09/2021 09:22:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIxLzYvOSCkV6TIIDA2OjAwOjAw?= X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36502.realtek.com.tw, 9 X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-AntiSpam-Outbound-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 06/09/2021 09:24:29 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 0 X-KSE-AntiSpam-Info: Lua profiles 164206 [Jun 09 2021] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: edwardwu@realtek.com X-KSE-AntiSpam-Info: LuaCore: 448 448 71fb1b37213ce9a885768d4012c46ac449c77b17 X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: 127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;realtek.com:7.1.1 X-KSE-AntiSpam-Info: Rate: 0 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 06/09/2021 09:27:00 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This exposing helps to analyze network behavior. In performance tuning, we will check nr_frags to analyze GRO aggregation behavior. By this commit, we can enable netif_receive_skb trace event for dynamic debugging. Signed-off-by: Edward Wu --- include/trace/events/net.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/trace/events/net.h b/include/trace/events/net.h index 2399073c3afc..48aa7168b68f 100644 --- a/include/trace/events/net.h +++ b/include/trace/events/net.h @@ -147,13 +147,6 @@ DEFINE_EVENT(net_dev_template, net_dev_queue, TP_ARGS(skb) ); -DEFINE_EVENT(net_dev_template, netif_receive_skb, - - TP_PROTO(struct sk_buff *skb), - - TP_ARGS(skb) -); - DEFINE_EVENT(net_dev_template, netif_rx, TP_PROTO(struct sk_buff *skb), @@ -239,6 +232,13 @@ DEFINE_EVENT(net_dev_rx_verbose_template, napi_gro_receive_entry, TP_ARGS(skb) ); +DEFINE_EVENT(net_dev_rx_verbose_template, netif_receive_skb, + + TP_PROTO(const struct sk_buff *skb), + + TP_ARGS(skb) +); + DEFINE_EVENT(net_dev_rx_verbose_template, netif_receive_skb_entry, TP_PROTO(const struct sk_buff *skb), -- 2.17.1