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 0FA44423B8; Thu, 12 Jan 2023 17:37:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F2E3342D55; Thu, 12 Jan 2023 17:37:30 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 0FA9242D4F for ; Thu, 12 Jan 2023 17:37:28 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30CBXOh8030966; Thu, 12 Jan 2023 08:35:04 -0800 Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2104.outbound.protection.outlook.com [104.47.58.104]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3n23b2jk41-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Jan 2023 08:35:03 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CQRfuxZRT6NbbwFlw3bPgZ44oCuIwXA2KGlSMv4sDzb1PH6brprYK5JEccx5S+cUVlngRFAfdiXH9w7AYhCCzmTUo86Hzyu8WkTJ/9Up9dpKELDmOrRSNfB5ieWYKSbi+IB/ASInIXgR67d1NpLACC0tmHXRjFEMZ+j4W1vvpU5juL7FIlUBTyKN7OR70hQuFXFKKSJEYUXi2vsuLu2RAiVBzVDtS2yOQoPwm2L6DIoim/wPxyAXRu9Q+RWPyujmenzXu3btv0isUKTXlJ1XSbj815skKXIOJuJNdD2JlAwdKwneue7vQUnmoxqq39jwVUHXaO2p3ux0Ru4KKSf14g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MUR8nWD8awH5Mte1w5ZJCyPlKQy2D1jXmbvOXbCzcKo=; b=cI+LUxYz4ehdjzSZzfjxq2uXlnYsYsCQ3ccAygVbs45LA6A5k+g8Td+c8d/UR0rk/+BYRtzvHL6ex4iEaszNIjEwv7NIJ9AxzbyN0IwHLUxXLI9Mye5dXXQ9hp2VsI7YlicwFR34DZ8lUOCunhuCp00PlV/WTEoq6LBOtlzdeyoAcMekAwOILEDgZ6APAlc9r4er5HRSBSukF0pmCCArrHEcSX+XRz+S0rYo9THcQG0e8QdnHFNIJd6Q+KksUlYknSpA3RHP67ZSbkGD2u3WN3G0bb32ALnDo31dbgV2KwW98zQ334jJNls2sC1A8pvzV2hxAQkin2OezO/Dtee1Qw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MUR8nWD8awH5Mte1w5ZJCyPlKQy2D1jXmbvOXbCzcKo=; b=gAlhINwx4+1gB0beH+z9bxF3TWlCE6UXtOyno7e2M1bgTx/w6No+jGD79xM6tTHQ5OVWCjW085E+avaqFbUJXY6694R0G5zsF4/3z/NeXmqFdx42QqA3igQ6KE0V0s9SAOUVJRKNok+pwy8ILshg8xwfuPoO0HP5HLju9DvLmlY= Received: from CO6PR18MB3860.namprd18.prod.outlook.com (2603:10b6:5:34d::12) by MW3PR18MB3498.namprd18.prod.outlook.com (2603:10b6:303:5f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Thu, 12 Jan 2023 16:34:46 +0000 Received: from CO6PR18MB3860.namprd18.prod.outlook.com ([fe80::34c8:9ef:8b55:9533]) by CO6PR18MB3860.namprd18.prod.outlook.com ([fe80::34c8:9ef:8b55:9533%4]) with mapi id 15.20.5986.018; Thu, 12 Jan 2023 16:34:46 +0000 From: Sunil Kumar Kori To: Ankur Dwivedi , "dev@dpdk.org" CC: "thomas@monjalon.net" , "david.marchand@redhat.com" , "mdr@ashroe.eu" , "orika@nvidia.com" , "ferruh.yigit@amd.com" , "chas3@att.com" , "humin29@huawei.com" , "linville@tuxdriver.com" , "ciara.loftus@intel.com" , "qi.z.zhang@intel.com" , "mw@semihalf.com" , "mk@semihalf.com" , "shaibran@amazon.com" , "evgenys@amazon.com" , "igorch@amazon.com" , "chandu@amd.com" , Igor Russkikh , "shepard.siegel@atomicrules.com" , "ed.czeck@atomicrules.com" , "john.miller@atomicrules.com" , "ajit.khaparde@broadcom.com" , "somnath.kotur@broadcom.com" , Jerin Jacob Kollanukkaran , "Maciej Czekaj [C]" , Shijith Thotton , Srisivasubramanian Srinivasan , Harman Kalra , "rahul.lakkireddy@chelsio.com" , "johndale@cisco.com" , "hyonkim@cisco.com" , "liudongdong3@huawei.com" , "yisen.zhuang@huawei.com" , "xuanziyang2@huawei.com" , "cloud.wangxiaoyun@huawei.com" , "zhouguoyang@huawei.com" , "simei.su@intel.com" , "wenjun1.wu@intel.com" , "qiming.yang@intel.com" , "Yuying.Zhang@intel.com" , "beilei.xing@intel.com" , "xiao.w.wang@intel.com" , "jingjing.wu@intel.com" , "junfeng.guo@intel.com" , "rosen.xu@intel.com" , Nithin Kumar Dabilpuram , Kiran Kumar Kokkilagadda , Satha Koteswara Rao Kottidi , Liron Himi , "zr@semihalf.com" , Radha Chintakuntla , Veerasenareddy Burru , Sathesh B Edara , "matan@nvidia.com" , "viacheslavo@nvidia.com" , "longli@microsoft.com" , "spinler@cesnet.cz" , "chaoyong.he@corigine.com" , "niklas.soderlund@corigine.com" , "hemant.agrawal@nxp.com" , "sachin.saxena@oss.nxp.com" , "g.singh@nxp.com" , "apeksha.gupta@nxp.com" , "sachin.saxena@nxp.com" , "aboyer@pensando.io" , Rasesh Mody , Shahed Shaikh , Devendra Singh Rawat , "andrew.rybchenko@oktetlabs.ru" , "jiawenwu@trustnetic.com" , "jianwang@trustnetic.com" , "jbehrens@vmware.com" , "maxime.coquelin@redhat.com" , "chenbo.xia@intel.com" , "steven.webster@windriver.com" , "matt.peters@windriver.com" , "bruce.richardson@intel.com" , "mtetsuyah@gmail.com" , "grive@u256.net" , "jasvinder.singh@intel.com" , "cristian.dumitrescu@intel.com" , "jgrajcia@cisco.com" , "mb@smartsharesystems.com" , Ankur Dwivedi Subject: RE: [PATCH v5 2/6] ethdev: add trace points for ethdev Thread-Topic: [PATCH v5 2/6] ethdev: add trace points for ethdev Thread-Index: AQHZJnhSPnGdaJHkhkCd5eJZT5mjF66a+mzA Date: Thu, 12 Jan 2023 16:34:45 +0000 Message-ID: References: <20221222063306.3383695-1-adwivedi@marvell.com> <20230112112140.807233-1-adwivedi@marvell.com> <20230112112140.807233-3-adwivedi@marvell.com> In-Reply-To: <20230112112140.807233-3-adwivedi@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-rorf: true x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcc2tvcmlcYXBw?= =?us-ascii?Q?ZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZiODRiYTI5?= =?us-ascii?Q?ZTM1Ylxtc2dzXG1zZy1mZmI3OTM2MS05Mjk2LTExZWQtYjZjMS05NGU2Zjc5?= =?us-ascii?Q?MjY4OTBcYW1lLXRlc3RcZmZiNzkzNjMtOTI5Ni0xMWVkLWI2YzEtOTRlNmY3?= =?us-ascii?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IUUFaUUJ5QUcwQWFRQnVBSFVBY3dBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQkFBQUFBQUFBQUFJQUFBQUFBQT09Ii8+PC9tZXRhPg== x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR18MB3860:EE_|MW3PR18MB3498:EE_ x-ms-office365-filtering-correlation-id: 1927c011-4ef0-426e-ab41-08daf4baea62 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wIh0+VTWg0SjbjY5vNddyg84KyrCUKXrKhdybB1CrCGtb3tTmTTXKVQavjgclu1RvIzPqaT+Cnk2D5YkSXASuSESq3+aIRVEaNOSo5TRiE5gpjSfBLRPECBJxt+1QcOuJoTZScSiI0yoKqdY6Ay0bs5pKbvFc9DbLuwSGVMJw1dSr5dCgPaHnOnyD+eYip5mDXULWMd3X6dwGD7IxAFXdcAL16KpHCJIkxYBsjMDYPoiPkgkBU3T1KLdBi2Uh50/e8JA9nJP/TyRZtVYwSueq5m59HXmbMBa+wEPgaznxBAUiqeQhlZeo328PsxMIMNAFS1aHYGad6z2Ibk2L+LJe4p2luJJYTS2R6hlpKi+BI3PX8L+cbN1NZBDnSKVNEbPn2YsMSMB6d98jFJAmjrUKauybRQLqZXzINTOc0F1W0FjoiU9tjUgjwuPb3AfCLU32HEyKr71zoQbzx4TyCfbmIfHBygLGrFA72Rijq67kipjYD6xHn92zgCIK1/hiqNA6zIwzvtmdBV0dCisauEV9Ea4NBbX38xjp+X+bPOunwCGJ0QIA8q3ugvRZtJilzIxeuXojGdCHjq2a1N/9HcQtKRpEoe66NJ/A4ANIoa3Z/SAGgOHY8MNH3P69WNp31rixmr0LtcEEgC929ntQwU/net7sJJYZdoXBfJInLPEpulGaD0AXHD4KW7nK9v7MRRjFRvh4okuHjliRkYz7SuEQw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB3860.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(366004)(136003)(396003)(346002)(39860400002)(451199015)(9686003)(478600001)(41300700001)(38070700005)(45080400002)(38100700002)(33656002)(71200400001)(86362001)(316002)(54906003)(110136005)(66556008)(26005)(66946007)(186003)(7696005)(55016003)(76116006)(66476007)(4326008)(5660300002)(53546011)(7406005)(7416002)(7366002)(107886003)(6506007)(2906002)(30864003)(83380400001)(66446008)(64756008)(8676002)(8936002)(52536014)(122000001)(579004)(559001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?uMpv5HUh/vnny2PBQv4ew2HM6kPfCSVTedEce3M0UKY/FIWexZ4/Ll3GvS7O?= =?us-ascii?Q?9zXfaTJt4hSB38MjLyyjxrMWtViPZoJ6ygZR/A6p2oumMBBh7czR+7iaXeQE?= =?us-ascii?Q?CKBhXLyvMTQBzDFwBOLFXQXPS8CsSlF/3Y9hQgbe3ztYYxtWOe707FysEP4j?= =?us-ascii?Q?ljBVCA8XYgPxweUj2gIANBGgRofwpvTQCdUccVrv4gA1vjOBzwJXMqyCWAEN?= =?us-ascii?Q?g85ECNrq2sZNTqz/kkTa86t/q2ITl5kuR6jMBhiewiiHTmLISUZ2HkMp85W8?= =?us-ascii?Q?6NUfJm9uQg4016NPMyElRezngg+TVInNhX+3SDchG1Di6BzRCZei8jft5b+5?= =?us-ascii?Q?gmOfuc3SVwrQyBRyDu4h9TXdAAuSmexXsJAilUQ/mwXVGz22iwRzigYv58XC?= =?us-ascii?Q?iqsdKJe2dVnWck0e9FqFGGq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FxEGV3b2UBI2P7uhSOdUN3eVTMOEjHcRbukVorJHAPmboaRu2pkOZjvMu0?= =?us-ascii?Q?7RX4hdHxclk/7zrtf46R5tCzsyqYERxF1PrWJP96ZtxLIm4GpX1T/S8aZM/H?= =?us-ascii?Q?eszc3Hf6+jcb88emjb/UvPctuaC1zXpD2zStoH8UQok6Mp7Od4v0hxdTvZBg?= =?us-ascii?Q?uxVhLtuRybw7B45Ve5S+vDpBF8rRtax6tJtj20VfCpa4mKNIO3EcC+z3QgcI?= =?us-ascii?Q?gf6BvZ3hEaDcRrvdg48=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB3860.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1927c011-4ef0-426e-ab41-08daf4baea62 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jan 2023 16:34:45.9307 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gMOjdxugBqxHdRqcTRlXpmi4Kf9A73M+nROk3/MAsCKR0BMYg0GoSCS0D62Yr9CO2MYcenAvQ4GOSe1KWlx72g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR18MB3498 X-Proofpoint-GUID: sdVavZOd0B8kHHhih9S4xMgFHXCUtCle X-Proofpoint-ORIG-GUID: sdVavZOd0B8kHHhih9S4xMgFHXCUtCle X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-12_08,2023-01-12_01,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 > -----Original Message----- > From: Ankur Dwivedi > Sent: Thursday, January 12, 2023 4:52 PM > To: dev@dpdk.org > Cc: thomas@monjalon.net; david.marchand@redhat.com; mdr@ashroe.eu; > orika@nvidia.com; ferruh.yigit@amd.com; chas3@att.com; > humin29@huawei.com; linville@tuxdriver.com; ciara.loftus@intel.com; > qi.z.zhang@intel.com; mw@semihalf.com; mk@semihalf.com; > shaibran@amazon.com; evgenys@amazon.com; igorch@amazon.com; > chandu@amd.com; Igor Russkikh ; > shepard.siegel@atomicrules.com; ed.czeck@atomicrules.com; > john.miller@atomicrules.com; ajit.khaparde@broadcom.com; > somnath.kotur@broadcom.com; Jerin Jacob Kollanukkaran > ; Maciej Czekaj [C] ; Shijith > Thotton ; Srisivasubramanian Srinivasan > ; Harman Kalra ; > rahul.lakkireddy@chelsio.com; johndale@cisco.com; hyonkim@cisco.com; > liudongdong3@huawei.com; yisen.zhuang@huawei.com; > xuanziyang2@huawei.com; cloud.wangxiaoyun@huawei.com; > zhouguoyang@huawei.com; simei.su@intel.com; wenjun1.wu@intel.com; > qiming.yang@intel.com; Yuying.Zhang@intel.com; beilei.xing@intel.com; > xiao.w.wang@intel.com; jingjing.wu@intel.com; junfeng.guo@intel.com; > rosen.xu@intel.com; Nithin Kumar Dabilpuram > ; Kiran Kumar Kokkilagadda > ; Sunil Kumar Kori ; Satha > Koteswara Rao Kottidi ; Liron Himi > ; zr@semihalf.com; Radha Chintakuntla > ; Veerasenareddy Burru ; > Sathesh B Edara ; matan@nvidia.com; > viacheslavo@nvidia.com; longli@microsoft.com; spinler@cesnet.cz; > chaoyong.he@corigine.com; niklas.soderlund@corigine.com; > hemant.agrawal@nxp.com; sachin.saxena@oss.nxp.com; g.singh@nxp.com; > apeksha.gupta@nxp.com; sachin.saxena@nxp.com; aboyer@pensando.io; > Rasesh Mody ; Shahed Shaikh > ; Devendra Singh Rawat > ; andrew.rybchenko@oktetlabs.ru; > jiawenwu@trustnetic.com; jianwang@trustnetic.com; > jbehrens@vmware.com; maxime.coquelin@redhat.com; > chenbo.xia@intel.com; steven.webster@windriver.com; > matt.peters@windriver.com; bruce.richardson@intel.com; > mtetsuyah@gmail.com; grive@u256.net; jasvinder.singh@intel.com; > cristian.dumitrescu@intel.com; jgrajcia@cisco.com; > mb@smartsharesystems.com; Ankur Dwivedi > Subject: [PATCH v5 2/6] ethdev: add trace points for ethdev >=20 > Adds trace points for ethdev functions. > Moved the rte_ethdev_trace_rx_burst and rte_ethdev_trace_tx_burst to > a new file rte_ethdev_trace_fp_burst.h. This is needed to resolve > cyclic dependency between rte_ethdev.h and rte_ethdev_trace_fp.h. >=20 > Signed-off-by: Ankur Dwivedi > --- > lib/ethdev/ethdev_private.c | 5 + > lib/ethdev/ethdev_trace_points.c | 193 +++++++++++++++++ > lib/ethdev/meson.build | 1 + > lib/ethdev/rte_ethdev.c | 235 +++++++++++++++++--- > lib/ethdev/rte_ethdev.h | 2 +- > lib/ethdev/rte_ethdev_trace.h | 285 +++++++++++++++++++++++++ > lib/ethdev/rte_ethdev_trace_fp.h | 279 +++++++++++++++++++++++- > lib/ethdev/rte_ethdev_trace_fp_burst.h | 44 ++++ > lib/ethdev/version.map | 66 ++++++ > 9 files changed, 1075 insertions(+), 35 deletions(-) > create mode 100644 lib/ethdev/rte_ethdev_trace_fp_burst.h >=20 Acked-by: Sunil Kumar Kori > diff --git a/lib/ethdev/ethdev_private.c b/lib/ethdev/ethdev_private.c > index 48090c879a..fd16b25e55 100644 > --- a/lib/ethdev/ethdev_private.c > +++ b/lib/ethdev/ethdev_private.c > @@ -5,6 +5,7 @@ > #include >=20 > #include "rte_ethdev.h" > +#include "rte_ethdev_trace_fp.h" > #include "ethdev_driver.h" > #include "ethdev_private.h" >=20 > @@ -297,6 +298,8 @@ rte_eth_call_rx_callbacks(uint16_t port_id, uint16_t > queue_id, > cb =3D cb->next; > } >=20 > + rte_eth_trace_call_rx_callbacks(port_id, queue_id, rx_pkts, nb_rx, > nb_pkts); > + > return nb_rx; > } >=20 > @@ -312,6 +315,8 @@ rte_eth_call_tx_callbacks(uint16_t port_id, uint16_t > queue_id, > cb =3D cb->next; > } >=20 > + rte_eth_trace_call_tx_callbacks(port_id, queue_id, tx_pkts, nb_pkts); > + > return nb_pkts; > } >=20 > diff --git a/lib/ethdev/ethdev_trace_points.c > b/lib/ethdev/ethdev_trace_points.c > index 2919409a15..4fea76e0ff 100644 > --- a/lib/ethdev/ethdev_trace_points.c > +++ b/lib/ethdev/ethdev_trace_points.c > @@ -5,6 +5,7 @@ > #include >=20 > #include > +#include >=20 > RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_configure, > lib.ethdev.configure) > @@ -29,3 +30,195 @@ > RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_rx_burst, >=20 > RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_tx_burst, > lib.ethdev.tx.burst) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_call_rx_callbacks, > + lib.ethdev.call_rx_callbacks) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_call_tx_callbacks, > + lib.ethdev.call_tx_callbacks) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_iterator_init, > + lib.ethdev.iterator_init) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_iterator_next, > + lib.ethdev.iterator_next) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_iterator_cleanup, > + lib.ethdev.iterator_cleanup) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_find_next, > + lib.ethdev.find_next) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_find_next_of, > + lib.ethdev.find_next_of) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_find_next_sibling, > + lib.ethdev.find_next_sibling) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_is_valid_port, > + lib.ethdev.is_valid_port) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_find_next_owned_by, > + lib.ethdev.find_next_owned_by) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_owner_new, > + lib.ethdev.owner_new) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_owner_set, > + lib.ethdev.owner_set) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_owner_unset, > + lib.ethdev.owner_unset) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_owner_delete, > + lib.ethdev.owner_delete) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_owner_get, > + lib.ethdev.owner_get) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_socket_id, > + lib.ethdev.socket_id) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_get_sec_ctx, > + lib.ethdev.get_sec_ctx) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_count_avail, > + lib.ethdev.count_avail) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_count_total, > + lib.ethdev.count_total) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_get_name_by_port, > + lib.ethdev.get_name_by_port) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_get_port_by_name, > + lib.ethdev.get_port_by_name) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_rx_queue_start, > + lib.ethdev.rx_queue_start) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_rx_queue_stop, > + lib.ethdev.rx_queue_stop) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_tx_queue_start, > + lib.ethdev.tx_queue_start) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_tx_queue_stop, > + lib.ethdev.tx_queue_stop) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_speed_bitflag, > + lib.ethdev.speed_bitflag) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_rx_offload_name, > + lib.ethdev.rx_offload_name) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_tx_offload_name, > + lib.ethdev.tx_offload_name) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_capability_name, > + lib.ethdev.capability_name) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_set_link_up, > + lib.ethdev.set_link_up) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_set_link_down, > + lib.ethdev.set_link_down) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_reset, > + lib.ethdev.reset) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_is_removed, > + lib.ethdev.is_removed) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_rx_hairpin_queue_setup, > + lib.ethdev.rx.hairpin_queue_setup) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_tx_hairpin_queue_setup, > + lib.ethdev.tx.hairpin_queue_setup) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_hairpin_bind, > + lib.ethdev.hairpin_bind) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_hairpin_unbind, > + lib.ethdev.hairpin_unbind) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_hairpin_get_peer_ports, > + lib.ethdev.hairpin_get_peer_ports) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_tx_buffer_drop_callback, > + lib.ethdev.tx_buffer_drop_callback) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_tx_buffer_count_callback, > + lib.ethdev.tx_buffer_count_callback) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_tx_buffer_set_err_callback, > + lib.ethdev.tx_buffer_set_err_callback) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_tx_buffer_init, > + lib.ethdev.tx_buffer_init) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_tx_done_cleanup, > + lib.ethdev.tx_done_cleanup) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_promiscuous_enable, > + lib.ethdev.promiscuous_enable) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_promiscuous_disable, > + lib.ethdev.promiscuous_disable) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_promiscuous_get, > + lib.ethdev.promiscuous_get) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_allmulticast_enable, > + lib.ethdev.allmulticast_enable) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_allmulticast_disable, > + lib.ethdev.allmulticast_disable) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_allmulticast_get, > + lib.ethdev.allmulticast_get) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_link_get, > + lib.ethdev.link_get) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_link_get_nowait, > + lib.ethdev.link_get_nowait) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_link_speed_to_str, > + lib.ethdev.link_speed_to_str) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_link_to_str, > + lib.ethdev.link_to_str) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_stats_get, > + lib.ethdev.stats_get) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_stats_reset, > + lib.ethdev.stats_reset) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_xstats_get_id_by_name, > + lib.ethdev.xstats_get_id_by_name) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_xstats_get_names_by_id, > + lib.ethdev.xstats_get_names_by_id) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_xstats_get_names, > + lib.ethdev.xstats_get_names) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_xstats_get_by_id, > + lib.ethdev.xstats_get_by_id) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_xstats_get, > + lib.ethdev.xstats_get) > + > +RTE_TRACE_POINT_REGISTER(rte_eth_trace_xstats_reset, > + lib.ethdev.xstats_reset) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_set_tx_queue_stats_mappi > ng, > + lib.ethdev.set_tx_queue_stats_mapping) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_set_rx_queue_stats_mappi > ng, > + lib.ethdev.set_rx_queue_stats_mapping) > + > +RTE_TRACE_POINT_REGISTER(rte_ethdev_trace_fw_version_get, > + lib.ethdev.fw_version_get) > diff --git a/lib/ethdev/meson.build b/lib/ethdev/meson.build > index 39250b5da1..f5c0865023 100644 > --- a/lib/ethdev/meson.build > +++ b/lib/ethdev/meson.build > @@ -24,6 +24,7 @@ headers =3D files( > 'rte_ethdev.h', > 'rte_ethdev_trace.h', > 'rte_ethdev_trace_fp.h', > + 'rte_ethdev_trace_fp_burst.h', > 'rte_dev_info.h', > 'rte_flow.h', > 'rte_flow_driver.h', > diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c > index 5d5e18db1e..40897ad94d 100644 > --- a/lib/ethdev/rte_ethdev.c > +++ b/lib/ethdev/rte_ethdev.c > @@ -27,8 +27,9 @@ > #include > #include >=20 > -#include "rte_ethdev_trace.h" > #include "rte_ethdev.h" > +#include "rte_ethdev_trace.h" > +#include "rte_ethdev_trace_fp.h" > #include "ethdev_driver.h" > #include "ethdev_profile.h" > #include "ethdev_private.h" > @@ -258,6 +259,7 @@ rte_eth_iterator_init(struct rte_dev_iterator *iter, > const char *devargs_str) >=20 > end: > iter->cls =3D rte_class_find_by_name("eth"); > + rte_eth_trace_iterator_init(devargs_str); > rte_devargs_reset(&devargs); > return 0; >=20 > @@ -274,6 +276,8 @@ rte_eth_iterator_init(struct rte_dev_iterator *iter, > const char *devargs_str) > uint16_t > rte_eth_iterator_next(struct rte_dev_iterator *iter) > { > + uint16_t id; > + > if (iter =3D=3D NULL) { > RTE_ETHDEV_LOG(ERR, > "Cannot get next device from NULL iterator\n"); > @@ -297,8 +301,11 @@ rte_eth_iterator_next(struct rte_dev_iterator *iter) > /* A device is matching bus part, need to check ethdev part. > */ > iter->class_device =3D iter->cls->dev_iterate( > iter->class_device, iter->cls_str, iter); > - if (iter->class_device !=3D NULL) > - return eth_dev_to_id(iter->class_device); /* match */ > + if (iter->class_device !=3D NULL) { > + id =3D eth_dev_to_id(iter->class_device); > + rte_eth_trace_iterator_next(iter, id); > + return id; /* match */ > + } > } while (iter->bus !=3D NULL); /* need to try next rte_device */ >=20 > /* No more ethdev port to iterate. */ > @@ -316,6 +323,7 @@ rte_eth_iterator_cleanup(struct rte_dev_iterator > *iter) >=20 > if (iter->bus_str =3D=3D NULL) > return; /* nothing to free in pure class filter */ > + rte_eth_trace_iterator_cleanup(iter); > free(RTE_CAST_FIELD(iter, bus_str, char *)); /* workaround const */ > free(RTE_CAST_FIELD(iter, cls_str, char *)); /* workaround const */ > memset(iter, 0, sizeof(*iter)); > @@ -324,12 +332,18 @@ rte_eth_iterator_cleanup(struct rte_dev_iterator > *iter) > uint16_t > rte_eth_find_next(uint16_t port_id) > { > + rte_eth_trace_find_next(port_id); > + > while (port_id < RTE_MAX_ETHPORTS && > rte_eth_devices[port_id].state =3D=3D > RTE_ETH_DEV_UNUSED) > port_id++; >=20 > - if (port_id >=3D RTE_MAX_ETHPORTS) > + if (port_id >=3D RTE_MAX_ETHPORTS) { > + rte_eth_trace_find_next(RTE_MAX_ETHPORTS); > return RTE_MAX_ETHPORTS; > + } > + > + rte_eth_trace_find_next(port_id); >=20 > return port_id; > } > @@ -347,10 +361,15 @@ uint16_t > rte_eth_find_next_of(uint16_t port_id, const struct rte_device *parent) > { > port_id =3D rte_eth_find_next(port_id); > + > + rte_eth_trace_find_next_of(port_id); > + > while (port_id < RTE_MAX_ETHPORTS && > rte_eth_devices[port_id].device !=3D parent) > port_id =3D rte_eth_find_next(port_id + 1); >=20 > + rte_eth_trace_find_next_of(port_id); > + > return port_id; > } >=20 > @@ -358,6 +377,9 @@ uint16_t > rte_eth_find_next_sibling(uint16_t port_id, uint16_t ref_port_id) > { > RTE_ETH_VALID_PORTID_OR_ERR_RET(ref_port_id, > RTE_MAX_ETHPORTS); > + > + rte_eth_trace_find_next_sibling(port_id, ref_port_id); > + > return rte_eth_find_next_of(port_id, > rte_eth_devices[ref_port_id].device); > } > @@ -372,10 +394,13 @@ int > rte_eth_dev_is_valid_port(uint16_t port_id) > { > if (port_id >=3D RTE_MAX_ETHPORTS || > - (rte_eth_devices[port_id].state =3D=3D RTE_ETH_DEV_UNUSED)) > + (rte_eth_devices[port_id].state =3D=3D RTE_ETH_DEV_UNUSED)) { > + rte_ethdev_trace_is_valid_port(port_id, 0); > return 0; > - else > + } else { > + rte_ethdev_trace_is_valid_port(port_id, 1); > return 1; > + } > } >=20 > static int > @@ -395,6 +420,7 @@ rte_eth_find_next_owned_by(uint16_t port_id, const > uint64_t owner_id) > rte_eth_devices[port_id].data->owner.id !=3D > owner_id) > port_id =3D rte_eth_find_next(port_id + 1); >=20 > + rte_eth_trace_find_next_owned_by(port_id, owner_id); > return port_id; > } >=20 > @@ -413,6 +439,7 @@ rte_eth_dev_owner_new(uint64_t *owner_id) > *owner_id =3D eth_dev_shared_data->next_owner_id++; >=20 > rte_spinlock_unlock(ð_dev_shared_data->ownership_lock); > + rte_ethdev_trace_owner_new(*owner_id); > return 0; > } >=20 > @@ -476,6 +503,7 @@ rte_eth_dev_owner_set(const uint16_t port_id, > ret =3D eth_dev_owner_set(port_id, RTE_ETH_DEV_NO_OWNER, > owner); >=20 > rte_spinlock_unlock(ð_dev_shared_data->ownership_lock); > + rte_ethdev_trace_owner_set(port_id, owner, ret); > return ret; > } >=20 > @@ -493,6 +521,7 @@ rte_eth_dev_owner_unset(const uint16_t port_id, > const uint64_t owner_id) > ret =3D eth_dev_owner_set(port_id, owner_id, &new_owner); >=20 > rte_spinlock_unlock(ð_dev_shared_data->ownership_lock); > + rte_ethdev_trace_owner_unset(port_id, owner_id, ret); > return ret; > } >=20 > @@ -526,6 +555,7 @@ rte_eth_dev_owner_delete(const uint64_t owner_id) >=20 > rte_spinlock_unlock(ð_dev_shared_data->ownership_lock); >=20 > + rte_ethdev_trace_owner_delete(owner_id, ret); > return ret; > } >=20 > @@ -555,6 +585,7 @@ rte_eth_dev_owner_get(const uint16_t port_id, > struct rte_eth_dev_owner *owner) > rte_memcpy(owner, ðdev->data->owner, sizeof(*owner)); > rte_spinlock_unlock(ð_dev_shared_data->ownership_lock); >=20 > + rte_ethdev_trace_owner_get(port_id, owner); > return 0; > } >=20 > @@ -570,14 +601,21 @@ rte_eth_dev_socket_id(uint16_t port_id) > if (socket_id =3D=3D SOCKET_ID_ANY) > rte_errno =3D 0; > } > + rte_ethdev_trace_socket_id(port_id, socket_id); > return socket_id; > } >=20 > void * > rte_eth_dev_get_sec_ctx(uint16_t port_id) > { > + void *ctx; > + > RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, NULL); > - return rte_eth_devices[port_id].security_ctx; > + ctx =3D rte_eth_devices[port_id].security_ctx; > + > + rte_ethdev_trace_get_sec_ctx(port_id, ctx); > + > + return ctx; > } >=20 > uint16_t > @@ -591,6 +629,7 @@ rte_eth_dev_count_avail(void) > RTE_ETH_FOREACH_DEV(p) > count++; >=20 > + rte_ethdev_trace_count_avail(count); > return count; > } >=20 > @@ -602,6 +641,7 @@ rte_eth_dev_count_total(void) > RTE_ETH_FOREACH_VALID_DEV(port) > count++; >=20 > + rte_ethdev_trace_count_total(count); > return count; > } >=20 > @@ -622,6 +662,7 @@ rte_eth_dev_get_name_by_port(uint16_t port_id, > char *name) > * because it might be overwritten by VDEV PMD */ > tmp =3D eth_dev_shared_data->data[port_id].name; > strcpy(name, tmp); > + rte_ethdev_trace_get_name_by_port(port_id, name); > return 0; > } >=20 > @@ -644,6 +685,7 @@ rte_eth_dev_get_port_by_name(const char *name, > uint16_t *port_id) > RTE_ETH_FOREACH_VALID_DEV(pid) > if (!strcmp(name, eth_dev_shared_data->data[pid].name)) { > *port_id =3D pid; > + rte_ethdev_trace_get_port_by_name(name, > *port_id); > return 0; > } >=20 > @@ -745,7 +787,11 @@ rte_eth_dev_rx_queue_start(uint16_t port_id, > uint16_t rx_queue_id) > return 0; > } >=20 > - return eth_err(port_id, dev->dev_ops->rx_queue_start(dev, > rx_queue_id)); > + ret =3D eth_err(port_id, dev->dev_ops->rx_queue_start(dev, > rx_queue_id)); > + > + rte_ethdev_trace_rx_queue_start(port_id, rx_queue_id, ret); > + > + return ret; > } >=20 > int > @@ -778,7 +824,11 @@ rte_eth_dev_rx_queue_stop(uint16_t port_id, > uint16_t rx_queue_id) > return 0; > } >=20 > - return eth_err(port_id, dev->dev_ops->rx_queue_stop(dev, > rx_queue_id)); > + ret =3D eth_err(port_id, dev->dev_ops->rx_queue_stop(dev, > rx_queue_id)); > + > + rte_ethdev_trace_rx_queue_stop(port_id, rx_queue_id, ret); > + > + return ret; > } >=20 > int > @@ -818,7 +868,11 @@ rte_eth_dev_tx_queue_start(uint16_t port_id, > uint16_t tx_queue_id) > return 0; > } >=20 > - return eth_err(port_id, dev->dev_ops->tx_queue_start(dev, > tx_queue_id)); > + ret =3D eth_err(port_id, dev->dev_ops->tx_queue_start(dev, > tx_queue_id)); > + > + rte_ethdev_trace_tx_queue_start(port_id, tx_queue_id, ret); > + > + return ret; > } >=20 > int > @@ -851,12 +905,17 @@ rte_eth_dev_tx_queue_stop(uint16_t port_id, > uint16_t tx_queue_id) > return 0; > } >=20 > - return eth_err(port_id, dev->dev_ops->tx_queue_stop(dev, > tx_queue_id)); > + ret =3D eth_err(port_id, dev->dev_ops->tx_queue_stop(dev, > tx_queue_id)); > + > + rte_ethdev_trace_tx_queue_stop(port_id, tx_queue_id, ret); > + > + return ret; > } >=20 > uint32_t > rte_eth_speed_bitflag(uint32_t speed, int duplex) > { > + rte_eth_trace_speed_bitflag(speed, duplex); > switch (speed) { > case RTE_ETH_SPEED_NUM_10M: > return duplex ? RTE_ETH_LINK_SPEED_10M : > RTE_ETH_LINK_SPEED_10M_HD; > @@ -902,6 +961,8 @@ rte_eth_dev_rx_offload_name(uint64_t offload) > } > } >=20 > + rte_ethdev_trace_rx_offload_name(offload, name); > + > return name; > } >=20 > @@ -918,6 +979,8 @@ rte_eth_dev_tx_offload_name(uint64_t offload) > } > } >=20 > + rte_ethdev_trace_tx_offload_name(offload, name); > + > return name; > } >=20 > @@ -934,6 +997,8 @@ rte_eth_dev_capability_name(uint64_t capability) > } > } >=20 > + rte_ethdev_trace_capability_name(capability, name); > + > return name; > } >=20 > @@ -1554,26 +1619,36 @@ int > rte_eth_dev_set_link_up(uint16_t port_id) > { > struct rte_eth_dev *dev; > + int ret; >=20 > RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); > dev =3D &rte_eth_devices[port_id]; >=20 > if (*dev->dev_ops->dev_set_link_up =3D=3D NULL) > return -ENOTSUP; > - return eth_err(port_id, (*dev->dev_ops->dev_set_link_up)(dev)); > + ret =3D eth_err(port_id, (*dev->dev_ops->dev_set_link_up)(dev)); > + > + rte_ethdev_trace_set_link_up(port_id, ret); > + > + return ret; > } >=20 > int > rte_eth_dev_set_link_down(uint16_t port_id) > { > struct rte_eth_dev *dev; > + int ret; >=20 > RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); > dev =3D &rte_eth_devices[port_id]; >=20 > if (*dev->dev_ops->dev_set_link_down =3D=3D NULL) > return -ENOTSUP; > - return eth_err(port_id, (*dev->dev_ops->dev_set_link_down)(dev)); > + ret =3D eth_err(port_id, (*dev->dev_ops->dev_set_link_down)(dev)); > + > + rte_ethdev_trace_set_link_down(port_id, ret); > + > + return ret; > } >=20 > int > @@ -1628,9 +1703,12 @@ rte_eth_dev_reset(uint16_t port_id) > "Failed to stop device (port %u) before reset: %s - > ignore\n", > port_id, rte_strerror(-ret)); > } > - ret =3D dev->dev_ops->dev_reset(dev); >=20 > - return eth_err(port_id, ret); > + ret =3D eth_err(port_id, dev->dev_ops->dev_reset(dev)); > + > + rte_ethdev_trace_reset(port_id, ret); > + > + return ret; > } >=20 > int > @@ -1653,6 +1731,8 @@ rte_eth_dev_is_removed(uint16_t port_id) > /* Device is physically removed. */ > dev->state =3D RTE_ETH_DEV_REMOVED; >=20 > + rte_ethdev_trace_is_removed(port_id, ret); > + > return ret; > } >=20 > @@ -2151,7 +2231,13 @@ rte_eth_rx_hairpin_queue_setup(uint16_t > port_id, uint16_t rx_queue_id, > if (ret =3D=3D 0) > dev->data->rx_queue_state[rx_queue_id] =3D > RTE_ETH_QUEUE_STATE_HAIRPIN; > - return eth_err(port_id, ret); > + > + ret =3D eth_err(port_id, ret); > + > + rte_eth_trace_rx_hairpin_queue_setup(port_id, rx_queue_id, > nb_rx_desc, > + conf, ret); > + > + return ret; > } >=20 > int > @@ -2340,7 +2426,12 @@ rte_eth_tx_hairpin_queue_setup(uint16_t > port_id, uint16_t tx_queue_id, > if (ret =3D=3D 0) > dev->data->tx_queue_state[tx_queue_id] =3D > RTE_ETH_QUEUE_STATE_HAIRPIN; > - return eth_err(port_id, ret); > + > + ret =3D eth_err(port_id, ret); > + > + rte_eth_trace_tx_hairpin_queue_setup(port_id, tx_queue_id, > nb_tx_desc, conf, ret); > + > + return ret; > } >=20 > int > @@ -2365,6 +2456,8 @@ rte_eth_hairpin_bind(uint16_t tx_port, uint16_t > rx_port) > " to Rx %d (%d - all ports)\n", > tx_port, rx_port, RTE_MAX_ETHPORTS); >=20 > + rte_eth_trace_hairpin_bind(tx_port, rx_port, ret); > + > return ret; > } >=20 > @@ -2390,6 +2483,7 @@ rte_eth_hairpin_unbind(uint16_t tx_port, uint16_t > rx_port) > " from Rx %d (%d - all ports)\n", > tx_port, rx_port, RTE_MAX_ETHPORTS); >=20 > + rte_eth_trace_hairpin_unbind(tx_port, rx_port, ret); > return ret; > } >=20 > @@ -2426,6 +2520,8 @@ rte_eth_hairpin_get_peer_ports(uint16_t port_id, > uint16_t *peer_ports, > RTE_ETHDEV_LOG(ERR, "Failed to get %d hairpin peer %s > ports\n", > port_id, direction ? "Rx" : "Tx"); >=20 > + rte_eth_trace_hairpin_get_peer_ports(port_id, peer_ports, len, > direction, ret); > + > return ret; > } >=20 > @@ -2433,6 +2529,7 @@ void > rte_eth_tx_buffer_drop_callback(struct rte_mbuf **pkts, uint16_t unsent, > void *userdata __rte_unused) > { > + rte_eth_trace_tx_buffer_drop_callback(pkts, unsent); > rte_pktmbuf_free_bulk(pkts, unsent); > } >=20 > @@ -2444,6 +2541,7 @@ rte_eth_tx_buffer_count_callback(struct rte_mbuf > **pkts, uint16_t unsent, >=20 > rte_pktmbuf_free_bulk(pkts, unsent); > *count +=3D unsent; > + rte_eth_trace_tx_buffer_count_callback(pkts, unsent, *count); > } >=20 > int > @@ -2458,6 +2556,9 @@ rte_eth_tx_buffer_set_err_callback(struct > rte_eth_dev_tx_buffer *buffer, >=20 > buffer->error_callback =3D cbfn; > buffer->error_userdata =3D userdata; > + > + rte_eth_trace_tx_buffer_set_err_callback(buffer); > + > return 0; > } >=20 > @@ -2477,6 +2578,8 @@ rte_eth_tx_buffer_init(struct > rte_eth_dev_tx_buffer *buffer, uint16_t size) > buffer, rte_eth_tx_buffer_drop_callback, NULL); > } >=20 > + rte_eth_trace_tx_buffer_init(buffer, size, ret); > + > return ret; > } >=20 > @@ -2495,7 +2598,12 @@ rte_eth_tx_done_cleanup(uint16_t port_id, > uint16_t queue_id, uint32_t free_cnt) > /* Call driver to free pending mbufs. */ > ret =3D (*dev->dev_ops->tx_done_cleanup)(dev->data- > >tx_queues[queue_id], > free_cnt); > - return eth_err(port_id, ret); > + > + ret =3D eth_err(port_id, ret); > + > + rte_eth_trace_tx_done_cleanup(port_id, queue_id, free_cnt, ret); > + > + return ret; > } >=20 > int > @@ -2516,7 +2624,11 @@ rte_eth_promiscuous_enable(uint16_t port_id) > diag =3D (*dev->dev_ops->promiscuous_enable)(dev); > dev->data->promiscuous =3D (diag =3D=3D 0) ? 1 : 0; >=20 > - return eth_err(port_id, diag); > + diag =3D eth_err(port_id, diag); > + > + rte_eth_trace_promiscuous_enable(port_id, dev->data- > >promiscuous, diag); > + > + return diag; > } >=20 > int > @@ -2539,7 +2651,11 @@ rte_eth_promiscuous_disable(uint16_t port_id) > if (diag !=3D 0) > dev->data->promiscuous =3D 1; >=20 > - return eth_err(port_id, diag); > + diag =3D eth_err(port_id, diag); > + > + rte_eth_trace_promiscuous_disable(port_id, dev->data- > >promiscuous, diag); > + > + return diag; > } >=20 > int > @@ -2550,6 +2666,8 @@ rte_eth_promiscuous_get(uint16_t port_id) > RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); > dev =3D &rte_eth_devices[port_id]; >=20 > + rte_eth_trace_promiscuous_get(port_id, dev->data->promiscuous); > + > return dev->data->promiscuous; > } >=20 > @@ -2570,7 +2688,11 @@ rte_eth_allmulticast_enable(uint16_t port_id) > diag =3D (*dev->dev_ops->allmulticast_enable)(dev); > dev->data->all_multicast =3D (diag =3D=3D 0) ? 1 : 0; >=20 > - return eth_err(port_id, diag); > + diag =3D eth_err(port_id, diag); > + > + rte_eth_trace_allmulticast_enable(port_id, dev->data->all_multicast, > diag); > + > + return diag; > } >=20 > int > @@ -2592,7 +2714,11 @@ rte_eth_allmulticast_disable(uint16_t port_id) > if (diag !=3D 0) > dev->data->all_multicast =3D 1; >=20 > - return eth_err(port_id, diag); > + diag =3D eth_err(port_id, diag); > + > + rte_eth_trace_allmulticast_disable(port_id, dev->data->all_multicast, > diag); > + > + return diag; > } >=20 > int > @@ -2603,6 +2729,8 @@ rte_eth_allmulticast_get(uint16_t port_id) > RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); > dev =3D &rte_eth_devices[port_id]; >=20 > + rte_eth_trace_allmulticast_get(port_id, dev->data->all_multicast); > + > return dev->data->all_multicast; > } >=20 > @@ -2629,6 +2757,8 @@ rte_eth_link_get(uint16_t port_id, struct > rte_eth_link *eth_link) > *eth_link =3D dev->data->dev_link; > } >=20 > + rte_eth_trace_link_get(port_id, eth_link); > + > return 0; > } >=20 > @@ -2655,12 +2785,16 @@ rte_eth_link_get_nowait(uint16_t port_id, struct > rte_eth_link *eth_link) > *eth_link =3D dev->data->dev_link; > } >=20 > + rte_eth_trace_link_get_nowait(port_id, eth_link); > + > return 0; > } >=20 > const char * > rte_eth_link_speed_to_str(uint32_t link_speed) > { > + rte_eth_trace_link_speed_to_str(link_speed); > + > switch (link_speed) { > case RTE_ETH_SPEED_NUM_NONE: return "None"; > case RTE_ETH_SPEED_NUM_10M: return "10 Mbps"; > @@ -2700,6 +2834,8 @@ rte_eth_link_to_str(char *str, size_t len, const > struct rte_eth_link *eth_link) > return -EINVAL; > } >=20 > + rte_eth_trace_link_to_str(len, eth_link); > + > if (eth_link->link_status =3D=3D RTE_ETH_LINK_DOWN) > return snprintf(str, len, "Link down"); > else > @@ -2715,6 +2851,7 @@ int > rte_eth_stats_get(uint16_t port_id, struct rte_eth_stats *stats) > { > struct rte_eth_dev *dev; > + int ret; >=20 > RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); > dev =3D &rte_eth_devices[port_id]; > @@ -2730,7 +2867,12 @@ rte_eth_stats_get(uint16_t port_id, struct > rte_eth_stats *stats) > if (*dev->dev_ops->stats_get =3D=3D NULL) > return -ENOTSUP; > stats->rx_nombuf =3D dev->data->rx_mbuf_alloc_failed; > - return eth_err(port_id, (*dev->dev_ops->stats_get)(dev, stats)); > + > + ret =3D eth_err(port_id, (*dev->dev_ops->stats_get)(dev, stats)); > + > + rte_eth_trace_stats_get(port_id, stats, ret); > + > + return ret; > } >=20 > int > @@ -2750,6 +2892,8 @@ rte_eth_stats_reset(uint16_t port_id) >=20 > dev->data->rx_mbuf_alloc_failed =3D 0; >=20 > + rte_eth_trace_stats_reset(port_id); > + > return 0; > } >=20 > @@ -2833,6 +2977,7 @@ rte_eth_xstats_get_id_by_name(uint16_t port_id, > const char *xstat_name, > for (idx_xstat =3D 0; idx_xstat < cnt_xstats; idx_xstat++) { > if (!strcmp(xstats_names[idx_xstat].name, xstat_name)) { > *id =3D idx_xstat; > + rte_eth_trace_xstats_get_id_by_name(port_id, > xstat_name, *id); > return 0; > }; > } > @@ -2986,6 +3131,8 @@ rte_eth_xstats_get_names_by_id(uint16_t port_id, > return -1; > } > xstats_names[i] =3D xstats_names_copy[ids[i]]; > + rte_eth_trace_xstats_get_names_by_id(port_id, > &xstats_names[i], > + ids[i]); > } >=20 > free(xstats_names_copy); > @@ -3025,6 +3172,8 @@ rte_eth_xstats_get_names(uint16_t port_id, > cnt_used_entries +=3D cnt_driver_entries; > } >=20 > + rte_eth_trace_xstats_get_names(port_id, xstats_names, size, > cnt_used_entries); > + > return cnt_used_entries; > } >=20 > @@ -3174,6 +3323,9 @@ rte_eth_xstats_get_by_id(uint16_t port_id, const > uint64_t *ids, > } > values[i] =3D xstats[ids[i]].value; > } > + > + rte_eth_trace_xstats_get_by_id(port_id, ids, values, size); > + > return size; > } >=20 > @@ -3221,6 +3373,9 @@ rte_eth_xstats_get(uint16_t port_id, struct > rte_eth_xstat *xstats, > for ( ; i < count + xcount; i++) > xstats[i].id +=3D count; >=20 > + for (i =3D 0; i < n; i++) > + rte_eth_trace_xstats_get(port_id, xstats[i], i); > + > return count + xcount; > } >=20 > @@ -3229,13 +3384,19 @@ int > rte_eth_xstats_reset(uint16_t port_id) > { > struct rte_eth_dev *dev; > + int ret; >=20 > RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); > dev =3D &rte_eth_devices[port_id]; >=20 > /* implemented by the driver */ > - if (dev->dev_ops->xstats_reset !=3D NULL) > - return eth_err(port_id, (*dev->dev_ops->xstats_reset)(dev)); > + if (dev->dev_ops->xstats_reset !=3D NULL) { > + ret =3D eth_err(port_id, (*dev->dev_ops->xstats_reset)(dev)); > + > + rte_eth_trace_xstats_reset(port_id, ret); > + > + return ret; > + } >=20 > /* fallback to default */ > return rte_eth_stats_reset(port_id); > @@ -3268,24 +3429,37 @@ int > rte_eth_dev_set_tx_queue_stats_mapping(uint16_t port_id, uint16_t > tx_queue_id, > uint8_t stat_idx) > { > - return eth_err(port_id, eth_dev_set_queue_stats_mapping(port_id, > + int ret; > + > + ret =3D eth_err(port_id, eth_dev_set_queue_stats_mapping(port_id, > tx_queue_id, > stat_idx, STAT_QMAP_TX)); > + > + rte_ethdev_trace_set_tx_queue_stats_mapping(port_id, > tx_queue_id, stat_idx, ret); > + > + return ret; > } >=20 > int > rte_eth_dev_set_rx_queue_stats_mapping(uint16_t port_id, uint16_t > rx_queue_id, > uint8_t stat_idx) > { > - return eth_err(port_id, eth_dev_set_queue_stats_mapping(port_id, > + int ret; > + ret =3D eth_err(port_id, eth_dev_set_queue_stats_mapping(port_id, > rx_queue_id, > stat_idx, STAT_QMAP_RX)); > + > + rte_ethdev_trace_set_rx_queue_stats_mapping(port_id, > rx_queue_id, > + stat_idx, ret); > + > + return ret; > } >=20 > int > rte_eth_dev_fw_version_get(uint16_t port_id, char *fw_version, size_t > fw_size) > { > struct rte_eth_dev *dev; > + int ret; >=20 > RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); > dev =3D &rte_eth_devices[port_id]; > @@ -3299,8 +3473,13 @@ rte_eth_dev_fw_version_get(uint16_t port_id, > char *fw_version, size_t fw_size) >=20 > if (*dev->dev_ops->fw_version_get =3D=3D NULL) > return -ENOTSUP; > - return eth_err(port_id, (*dev->dev_ops->fw_version_get)(dev, > + > + ret =3D eth_err(port_id, (*dev->dev_ops->fw_version_get)(dev, > fw_version, fw_size)); > + > + rte_ethdev_trace_fw_version_get(port_id, fw_version, fw_size, ret); > + > + return ret; > } >=20 > int > diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h > index 96d0650d0c..6340a84c10 100644 > --- a/lib/ethdev/rte_ethdev.h > +++ b/lib/ethdev/rte_ethdev.h > @@ -172,7 +172,7 @@ extern "C" { > #include > #include >=20 > -#include "rte_ethdev_trace_fp.h" > +#include "rte_ethdev_trace_fp_burst.h" > #include "rte_dev_info.h" >=20 > extern int rte_eth_dev_logtype; > diff --git a/lib/ethdev/rte_ethdev_trace.h b/lib/ethdev/rte_ethdev_trace.= h > index 1491c815c3..bc3b3d2a1b 100644 > --- a/lib/ethdev/rte_ethdev_trace.h > +++ b/lib/ethdev/rte_ethdev_trace.h > @@ -88,6 +88,291 @@ RTE_TRACE_POINT( > rte_trace_point_emit_u16(port_id); > ) >=20 > +RTE_TRACE_POINT( > + rte_eth_trace_iterator_init, > + RTE_TRACE_POINT_ARGS(const char *devargs), > + rte_trace_point_emit_string(devargs); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_iterator_next, > + RTE_TRACE_POINT_ARGS(struct rte_dev_iterator *iter, uint16_t id), > + rte_trace_point_emit_ptr(iter); > + rte_trace_point_emit_string(iter->bus_str); > + rte_trace_point_emit_string(iter->cls_str); > + rte_trace_point_emit_u16(id); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_iterator_cleanup, > + RTE_TRACE_POINT_ARGS(struct rte_dev_iterator *iter), > + rte_trace_point_emit_ptr(iter); > + rte_trace_point_emit_string(iter->bus_str); > + rte_trace_point_emit_string(iter->cls_str); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_owner_new, > + RTE_TRACE_POINT_ARGS(uint64_t owner_id), > + rte_trace_point_emit_u64(owner_id); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_owner_set, > + RTE_TRACE_POINT_ARGS(const uint16_t port_id, > + const struct rte_eth_dev_owner *owner, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u64(owner->id); > + rte_trace_point_emit_string(owner->name); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_owner_unset, > + RTE_TRACE_POINT_ARGS(const uint16_t port_id, > + const uint64_t owner_id, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u64(owner_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_owner_delete, > + RTE_TRACE_POINT_ARGS(const uint64_t owner_id, int ret), > + rte_trace_point_emit_u64(owner_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_socket_id, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int socket_id), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(socket_id); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_rx_queue_start, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t rx_queue_id, int > ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u16(rx_queue_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_rx_queue_stop, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t rx_queue_id, int > ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u16(rx_queue_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_tx_queue_start, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t tx_queue_id, int > ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u16(tx_queue_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_tx_queue_stop, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t tx_queue_id, int > ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u16(tx_queue_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_speed_bitflag, > + RTE_TRACE_POINT_ARGS(uint32_t speed, int duplex), > + rte_trace_point_emit_u32(speed); > + rte_trace_point_emit_int(duplex); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_rx_offload_name, > + RTE_TRACE_POINT_ARGS(uint64_t offload, const char *name), > + rte_trace_point_emit_u64(offload); > + rte_trace_point_emit_string(name); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_tx_offload_name, > + RTE_TRACE_POINT_ARGS(uint64_t offload, const char *name), > + rte_trace_point_emit_u64(offload); > + rte_trace_point_emit_string(name); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_capability_name, > + RTE_TRACE_POINT_ARGS(uint64_t capability, const char *name), > + rte_trace_point_emit_u64(capability); > + rte_trace_point_emit_string(name); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_set_link_up, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_set_link_down, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_reset, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_rx_hairpin_queue_setup, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t rx_queue_id, > + uint16_t nb_rx_desc, const struct rte_eth_hairpin_conf > *conf, > + int ret), > + uint32_t peer_count =3D conf->peer_count; > + uint32_t tx_explicit =3D conf->tx_explicit; > + uint32_t manual_bind =3D conf->manual_bind; > + uint32_t use_locked_device_memory =3D conf- > >use_locked_device_memory; > + uint32_t use_rte_memory =3D conf->use_rte_memory; > + uint32_t force_memory =3D conf->force_memory; > + > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u16(rx_queue_id); > + rte_trace_point_emit_u16(nb_rx_desc); > + rte_trace_point_emit_ptr(conf); > + rte_trace_point_emit_u32(peer_count); > + rte_trace_point_emit_u32(tx_explicit); > + rte_trace_point_emit_u32(manual_bind); > + rte_trace_point_emit_u32(use_locked_device_memory); > + rte_trace_point_emit_u32(use_rte_memory); > + rte_trace_point_emit_u32(force_memory); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_tx_hairpin_queue_setup, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t tx_queue_id, > + uint16_t nb_tx_desc, const struct rte_eth_hairpin_conf > *conf, > + int ret), > + uint32_t peer_count =3D conf->peer_count; > + uint32_t tx_explicit =3D conf->tx_explicit; > + uint32_t manual_bind =3D conf->manual_bind; > + uint32_t use_locked_device_memory =3D conf- > >use_locked_device_memory; > + uint32_t use_rte_memory =3D conf->use_rte_memory; > + uint32_t force_memory =3D conf->force_memory; > + > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u16(tx_queue_id); > + rte_trace_point_emit_u16(nb_tx_desc); > + rte_trace_point_emit_ptr(conf); > + rte_trace_point_emit_u32(peer_count); > + rte_trace_point_emit_u32(tx_explicit); > + rte_trace_point_emit_u32(manual_bind); > + rte_trace_point_emit_u32(use_locked_device_memory); > + rte_trace_point_emit_u32(use_rte_memory); > + rte_trace_point_emit_u32(force_memory); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_hairpin_bind, > + RTE_TRACE_POINT_ARGS(uint16_t tx_port, uint16_t rx_port, int ret), > + rte_trace_point_emit_u16(tx_port); > + rte_trace_point_emit_u16(rx_port); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_hairpin_unbind, > + RTE_TRACE_POINT_ARGS(uint16_t tx_port, uint16_t rx_port, int ret), > + rte_trace_point_emit_u16(tx_port); > + rte_trace_point_emit_u16(rx_port); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_tx_buffer_set_err_callback, > + RTE_TRACE_POINT_ARGS(struct rte_eth_dev_tx_buffer *buffer), > + rte_trace_point_emit_ptr(buffer); > + rte_trace_point_emit_ptr(buffer->error_callback); > + rte_trace_point_emit_ptr(buffer->error_userdata); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_promiscuous_enable, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int promiscuous, int > diag), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(promiscuous); > + rte_trace_point_emit_int(diag); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_promiscuous_disable, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int promiscuous, int > diag), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(promiscuous); > + rte_trace_point_emit_int(diag); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_allmulticast_enable, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int all_multicast, int diag), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(all_multicast); > + rte_trace_point_emit_int(diag); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_allmulticast_disable, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int all_multicast, int diag), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(all_multicast); > + rte_trace_point_emit_int(diag); > +) > + > +RTE_TRACE_POINT( > + rte_eth_trace_link_speed_to_str, > + RTE_TRACE_POINT_ARGS(uint32_t link_speed), > + rte_trace_point_emit_u32(link_speed); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_set_rx_queue_stats_mapping, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t rx_queue_id, > + uint8_t stat_idx, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u16(rx_queue_id); > + rte_trace_point_emit_u8(stat_idx); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_set_tx_queue_stats_mapping, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t tx_queue_id, > + uint8_t stat_idx, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u16(tx_queue_id); > + rte_trace_point_emit_u8(stat_idx); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_ethdev_trace_fw_version_get, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, char *fw_version, size_t > fw_size, > + int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_string(fw_version); > + rte_trace_point_emit_size_t(fw_size); > + rte_trace_point_emit_int(ret); > +) > + > #ifdef __cplusplus > } > #endif > diff --git a/lib/ethdev/rte_ethdev_trace_fp.h > b/lib/ethdev/rte_ethdev_trace_fp.h > index 40084d1929..9f1d3d5a1b 100644 > --- a/lib/ethdev/rte_ethdev_trace_fp.h > +++ b/lib/ethdev/rte_ethdev_trace_fp.h > @@ -17,26 +17,293 @@ extern "C" { >=20 > #include >=20 > +#include "rte_ethdev.h" > + > RTE_TRACE_POINT_FP( > - rte_ethdev_trace_rx_burst, > + rte_eth_trace_call_rx_callbacks, > RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t queue_id, > - void **pkt_tbl, uint16_t nb_rx), > + struct rte_mbuf **rx_pkts, uint16_t nb_rx, > + uint16_t nb_pkts), > rte_trace_point_emit_u16(port_id); > rte_trace_point_emit_u16(queue_id); > - rte_trace_point_emit_ptr(pkt_tbl); > + rte_trace_point_emit_ptr(rx_pkts); > rte_trace_point_emit_u16(nb_rx); > + rte_trace_point_emit_u16(nb_pkts); > ) >=20 > RTE_TRACE_POINT_FP( > - rte_ethdev_trace_tx_burst, > + rte_eth_trace_call_tx_callbacks, > RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t queue_id, > - void **pkts_tbl, uint16_t nb_pkts), > + struct rte_mbuf **tx_pkts, uint16_t nb_pkts), > rte_trace_point_emit_u16(port_id); > rte_trace_point_emit_u16(queue_id); > - rte_trace_point_emit_ptr(pkts_tbl); > + rte_trace_point_emit_ptr(tx_pkts); > rte_trace_point_emit_u16(nb_pkts); > ) >=20 > +RTE_TRACE_POINT_FP( > + rte_eth_trace_find_next, > + RTE_TRACE_POINT_ARGS(uint16_t port_id), > + rte_trace_point_emit_u16(port_id); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_find_next_of, > + RTE_TRACE_POINT_ARGS(uint16_t port_id), > + rte_trace_point_emit_u16(port_id); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_find_next_sibling, > + RTE_TRACE_POINT_ARGS(uint16_t port_id_start, uint16_t > ref_port_id), > + rte_trace_point_emit_u16(port_id_start); > + rte_trace_point_emit_u16(ref_port_id); > +) > + > +RTE_TRACE_POINT_FP( > + rte_ethdev_trace_is_valid_port, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int is_valid), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(is_valid); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_find_next_owned_by, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, > + const uint64_t owner_id), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u64(owner_id); > +) > + > +RTE_TRACE_POINT_FP( > + rte_ethdev_trace_owner_get, > + RTE_TRACE_POINT_ARGS(const uint16_t port_id, > + struct rte_eth_dev_owner *owner), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u64(owner->id); > + rte_trace_point_emit_string(owner->name); > +) > + > +RTE_TRACE_POINT_FP( > + rte_ethdev_trace_get_sec_ctx, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, void *ctx), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_ptr(ctx); > +) > + > +RTE_TRACE_POINT_FP( > + rte_ethdev_trace_count_avail, > + RTE_TRACE_POINT_ARGS(uint16_t count), > + rte_trace_point_emit_u16(count); > +) > + > +RTE_TRACE_POINT_FP( > + rte_ethdev_trace_count_total, > + RTE_TRACE_POINT_ARGS(uint16_t count), > + rte_trace_point_emit_u16(count); > +) > + > +RTE_TRACE_POINT_FP( > + rte_ethdev_trace_get_name_by_port, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, char *name), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_string(name); > +) > + > +RTE_TRACE_POINT_FP( > + rte_ethdev_trace_get_port_by_name, > + RTE_TRACE_POINT_ARGS(const char *name, uint16_t port_id), > + rte_trace_point_emit_string(name); > + rte_trace_point_emit_u16(port_id); > +) > + > +RTE_TRACE_POINT_FP( > + rte_ethdev_trace_is_removed, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_hairpin_get_peer_ports, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t *peer_ports, > + size_t len, uint32_t direction, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_ptr(peer_ports); > + rte_trace_point_emit_size_t(len); > + rte_trace_point_emit_u32(direction); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_tx_buffer_drop_callback, > + RTE_TRACE_POINT_ARGS(struct rte_mbuf **pkts, uint16_t unsent), > + rte_trace_point_emit_ptr(pkts); > + rte_trace_point_emit_u16(unsent); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_tx_buffer_count_callback, > + RTE_TRACE_POINT_ARGS(struct rte_mbuf **pkts, uint16_t unsent, > + uint64_t count), > + rte_trace_point_emit_ptr(pkts); > + rte_trace_point_emit_u16(unsent); > + rte_trace_point_emit_u64(count); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_tx_buffer_init, > + RTE_TRACE_POINT_ARGS(struct rte_eth_dev_tx_buffer *buffer, > uint16_t size, > + int ret), > + rte_trace_point_emit_ptr(buffer); > + rte_trace_point_emit_u16(size); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_tx_done_cleanup, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t queue_id, > uint32_t free_cnt, > + int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u16(queue_id); > + rte_trace_point_emit_u32(free_cnt); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_promiscuous_get, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int promiscuous), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(promiscuous); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_allmulticast_get, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int all_multicast), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(all_multicast); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_link_get, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, struct rte_eth_link *link), > + uint16_t link_duplex =3D link->link_duplex; > + uint16_t link_autoneg =3D link->link_autoneg; > + uint16_t link_status =3D link->link_status; > + > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(link->link_speed); > + rte_trace_point_emit_u16(link_duplex); > + rte_trace_point_emit_u16(link_autoneg); > + rte_trace_point_emit_u16(link_status); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_link_get_nowait, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, struct rte_eth_link *link), > + uint16_t link_duplex =3D link->link_duplex; > + uint16_t link_autoneg =3D link->link_autoneg; > + uint16_t link_status =3D link->link_status; > + > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(link->link_speed); > + rte_trace_point_emit_u16(link_duplex); > + rte_trace_point_emit_u16(link_autoneg); > + rte_trace_point_emit_u16(link_status); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_link_to_str, > + RTE_TRACE_POINT_ARGS(size_t len, const struct rte_eth_link *link), > + uint16_t link_duplex =3D link->link_duplex; > + uint16_t link_autoneg =3D link->link_autoneg; > + uint16_t link_status =3D link->link_status; > + > + rte_trace_point_emit_size_t(len); > + rte_trace_point_emit_u32(link->link_speed); > + rte_trace_point_emit_u16(link_duplex); > + rte_trace_point_emit_u16(link_autoneg); > + rte_trace_point_emit_u16(link_status); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_stats_get, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, struct rte_eth_stats > *stats, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_ptr(stats); > + rte_trace_point_emit_u64(stats->rx_nombuf); > + rte_trace_point_emit_u64(stats->ipackets); > + rte_trace_point_emit_u64(stats->opackets); > + rte_trace_point_emit_u64(stats->ibytes); > + rte_trace_point_emit_u64(stats->obytes); > + rte_trace_point_emit_u64(stats->imissed); > + rte_trace_point_emit_u64(stats->ierrors); > + rte_trace_point_emit_u64(stats->oerrors); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_stats_reset, > + RTE_TRACE_POINT_ARGS(uint16_t port_id), > + rte_trace_point_emit_u16(port_id); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_xstats_get_id_by_name, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, const char *xstat_name, > + uint64_t id), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_string(xstat_name); > + rte_trace_point_emit_u64(id); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_xstats_get_names_by_id, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, > + struct rte_eth_xstat_name *xstats_names, uint64_t ids), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_string(xstats_names->name); > + rte_trace_point_emit_u64(ids); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_xstats_get_names, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, > + struct rte_eth_xstat_name *xstats_names, > + unsigned int size, int cnt_used_entries), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_string(xstats_names->name); > + rte_trace_point_emit_u32(size); > + rte_trace_point_emit_int(cnt_used_entries); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_xstats_get_by_id, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, const uint64_t *ids, > + uint64_t *values, unsigned int size), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_ptr(ids); > + rte_trace_point_emit_ptr(values); > + rte_trace_point_emit_u32(size); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_xstats_get, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, struct rte_eth_xstat > xstats, > + int i), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u64(xstats.id); > + rte_trace_point_emit_u64(xstats.value); > + rte_trace_point_emit_u32(i); > +) > + > +RTE_TRACE_POINT_FP( > + rte_eth_trace_xstats_reset, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(ret); > +) > + > #ifdef __cplusplus > } > #endif > diff --git a/lib/ethdev/rte_ethdev_trace_fp_burst.h > b/lib/ethdev/rte_ethdev_trace_fp_burst.h > new file mode 100644 > index 0000000000..899b4ed070 > --- /dev/null > +++ b/lib/ethdev/rte_ethdev_trace_fp_burst.h > @@ -0,0 +1,44 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(C) 2022 Marvell International Ltd. > + */ > + > +#ifndef _RTE_ETHDEV_TRACE_FP_BURST_H_ > +#define _RTE_ETHDEV_TRACE_FP_BURST_H_ > + > +/** > + * @file > + * > + * API for ethdev burst trace support > + */ > + > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +#include > + > +RTE_TRACE_POINT_FP( > + rte_ethdev_trace_rx_burst, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t queue_id, > + void **pkt_tbl, uint16_t nb_rx), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u16(queue_id); > + rte_trace_point_emit_ptr(pkt_tbl); > + rte_trace_point_emit_u16(nb_rx); > +) > + > +RTE_TRACE_POINT_FP( > + rte_ethdev_trace_tx_burst, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t queue_id, > + void **pkts_tbl, uint16_t nb_pkts), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u16(queue_id); > + rte_trace_point_emit_ptr(pkts_tbl); > + rte_trace_point_emit_u16(nb_pkts); > +) > + > +#ifdef __cplusplus > +} > +#endif > + > +#endif /* _RTE_ETHDEV_TRACE_FP_BURST_H_ */ > diff --git a/lib/ethdev/version.map b/lib/ethdev/version.map > index 17201fbe0f..c7ba2e3dc8 100644 > --- a/lib/ethdev/version.map > +++ b/lib/ethdev/version.map > @@ -298,6 +298,72 @@ EXPERIMENTAL { > rte_flow_get_q_aged_flows; > rte_mtr_meter_policy_get; > rte_mtr_meter_profile_get; > + > + # added in 23.03 > + __rte_eth_trace_allmulticast_disable; > + __rte_eth_trace_allmulticast_enable; > + __rte_eth_trace_allmulticast_get; > + __rte_eth_trace_call_rx_callbacks; > + __rte_eth_trace_call_tx_callbacks; > + __rte_eth_trace_find_next; > + __rte_eth_trace_find_next_of; > + __rte_eth_trace_find_next_owned_by; > + __rte_eth_trace_find_next_sibling; > + __rte_eth_trace_hairpin_bind; > + __rte_eth_trace_hairpin_get_peer_ports; > + __rte_eth_trace_hairpin_unbind; > + __rte_eth_trace_iterator_cleanup; > + __rte_eth_trace_iterator_init; > + __rte_eth_trace_iterator_next; > + __rte_eth_trace_link_get; > + __rte_eth_trace_link_get_nowait; > + __rte_eth_trace_link_speed_to_str; > + __rte_eth_trace_link_to_str; > + __rte_eth_trace_promiscuous_disable; > + __rte_eth_trace_promiscuous_enable; > + __rte_eth_trace_promiscuous_get; > + __rte_eth_trace_rx_hairpin_queue_setup; > + __rte_eth_trace_speed_bitflag; > + __rte_eth_trace_stats_get; > + __rte_eth_trace_stats_reset; > + __rte_eth_trace_tx_buffer_count_callback; > + __rte_eth_trace_tx_buffer_drop_callback; > + __rte_eth_trace_tx_buffer_init; > + __rte_eth_trace_tx_buffer_set_err_callback; > + __rte_eth_trace_tx_done_cleanup; > + __rte_eth_trace_tx_hairpin_queue_setup; > + __rte_eth_trace_xstats_get; > + __rte_eth_trace_xstats_get_by_id; > + __rte_eth_trace_xstats_get_id_by_name; > + __rte_eth_trace_xstats_get_names; > + __rte_eth_trace_xstats_get_names_by_id; > + __rte_eth_trace_xstats_reset; > + __rte_ethdev_trace_capability_name; > + __rte_ethdev_trace_count_avail; > + __rte_ethdev_trace_count_total; > + __rte_ethdev_trace_fw_version_get; > + __rte_ethdev_trace_get_name_by_port; > + __rte_ethdev_trace_get_port_by_name; > + __rte_ethdev_trace_get_sec_ctx; > + __rte_ethdev_trace_is_removed; > + __rte_ethdev_trace_is_valid_port; > + __rte_ethdev_trace_owner_delete; > + __rte_ethdev_trace_owner_get; > + __rte_ethdev_trace_owner_new; > + __rte_ethdev_trace_owner_set; > + __rte_ethdev_trace_owner_unset; > + __rte_ethdev_trace_reset; > + __rte_ethdev_trace_rx_offload_name; > + __rte_ethdev_trace_rx_queue_start; > + __rte_ethdev_trace_rx_queue_stop; > + __rte_ethdev_trace_set_link_down; > + __rte_ethdev_trace_set_link_up; > + __rte_ethdev_trace_set_rx_queue_stats_mapping; > + __rte_ethdev_trace_set_tx_queue_stats_mapping; > + __rte_ethdev_trace_socket_id; > + __rte_ethdev_trace_tx_offload_name; > + __rte_ethdev_trace_tx_queue_start; > + __rte_ethdev_trace_tx_queue_stop; > }; >=20 > INTERNAL { > -- > 2.25.1