From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B2832A00C4; Thu, 4 Aug 2022 15:47:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38C7C42BCA; Thu, 4 Aug 2022 15:47:41 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id D963A4282B for ; Thu, 4 Aug 2022 15:47:39 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 274C1Ovi021008; Thu, 4 Aug 2022 06:45:17 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=BVxq+57L5kO+v4HPiH4sLAMjQAy6cD0ALKHwPTiOZNw=; b=HWOGqNa9eVK67tqC/r8LxvXAGKLYZkQmxldS2eGC/jAd1ESs+lDFTlgdUvDa16zCn8dr wzJO4RQYXcEJIGRdhmCxg48isU/ntoNtJS9B8zljm1r4k4kmzz3ynt/ARzaJ1zOIozyV xDiXzDXusLhnSBm/W/HvupaY1xK6/UrsO/WFEh42RpsCLecz+cPLr4GGAiMH2DP6Pgz3 UwowG3x0O3jWTb1ewTeGUX+C2aeEvzyKZx+aQSlxUbBKLmzObg0+3NPA2S4yPEwy+WXU E5C3Hg03JbGOyI7oJpeVeHsbZKV4xU25EDwWZ7gGKOgZ0JIJQZsKw3IZaTPba9d6k3Vl cw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3hqgf1xqyu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 04 Aug 2022 06:45:17 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 4 Aug 2022 06:45:15 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 4 Aug 2022 06:45:15 -0700 Received: from hyd1349.t110.caveonetworks.com.com (unknown [10.29.45.13]) by maili.marvell.com (Postfix) with ESMTP id 1D3005B6932; Thu, 4 Aug 2022 06:44:53 -0700 (PDT) From: Ankur Dwivedi To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Ankur Dwivedi Subject: [PATCH 0/6] add trace points in ethdev library Date: Thu, 4 Aug 2022 19:14:24 +0530 Message-ID: <20220804134430.6192-1-adwivedi@marvell.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: Wkt-orUgtyf4LZY_cWUdrVNpgMr6UXFI X-Proofpoint-ORIG-GUID: Wkt-orUgtyf4LZY_cWUdrVNpgMr6UXFI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-04_03,2022-08-04_02,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This series adds trace points for functions in the ethdev library. The trace points are added in ethdev, flow, mtr, tm and ethdev_driver files. Apart from the tracepoints, check-trace-func function is added in checkpatch script. The function checks if any new api is added in ethdev library, then it must have a tracepoint. Otherwise an error will be returned by checkpatch. Adding the ethdev library maintainers and all networking driver maintainers in the cc list of this patch series, for review. Ankur Dwivedi (6): ethdev: add trace points ethdev: add trace points for flow ethdev: add trace points for mtr ethdev: add trace points for tm ethdev: add trace points for driver devtools: add trace function check in checkpatch devtools/check-symbol-change.sh | 76 +- devtools/check-trace-func.py | 52 + devtools/check-trace-func.sh | 50 + devtools/checkpatches.sh | 9 + devtools/common-func.sh | 77 + lib/ethdev/ethdev_driver.c | 29 + lib/ethdev/ethdev_private.c | 5 + lib/ethdev/ethdev_trace_points.c | 768 ++++++++++ lib/ethdev/rte_ethdev.c | 150 ++ lib/ethdev/rte_ethdev_trace.h | 2246 ++++++++++++++++++++++++++++++ lib/ethdev/rte_flow.c | 54 + lib/ethdev/rte_mtr.c | 27 + lib/ethdev/rte_tm.c | 40 + lib/ethdev/version.map | 257 ++++ 14 files changed, 3766 insertions(+), 74 deletions(-) create mode 100755 devtools/check-trace-func.py create mode 100755 devtools/check-trace-func.sh create mode 100644 devtools/common-func.sh -- 2.28.0