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 8C84641E9B; Wed, 15 Mar 2023 08:15:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 240FB40A7A; Wed, 15 Mar 2023 08:15:11 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 5E539400EF for ; Wed, 15 Mar 2023 08:15:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678864508; x=1710400508; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=BxuYTb0GNIy1MxVm/P0tk9z+bjq7yOJZpuRzX4KaWjs=; b=eZVvUQhdB8Sk4dT2LXEG6Btib9BQGjI3c7QsKDBPIX0HqBbTLBYN9CK3 nhzVcZMAWd2H7AnHjIeiZgwzdpyPg2mAjPPZfKFTyx9Oa43H4GjdyNwb7 muuSTYhxHNGk2kdTwTQCR3Fx89PMFExS2ElrgGL8Ejc6qAJHMT87fAb3L tc9I8L0T9Mx/BEXOXTaMZ84epgoXKd6C+m8QZlcr5r5ecgCG6nd7/YUv0 3nt60y+mGWLoEzqcQFvov84PF79cpA/XlRQqqPIpgHDCBB17UUi+sVXkR SjlxMmsDGor1II8Og7QnCrhb3SB7GmTGTaOdhUM2iXq5wgRJqnfJuh6vC Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="336321321" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="336321321" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2023 00:15:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="789685401" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="789685401" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga002.fm.intel.com with ESMTP; 15 Mar 2023 00:15:05 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 15 Mar 2023 00:15:05 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Wed, 15 Mar 2023 00:15:03 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Wed, 15 Mar 2023 00:15:03 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lvpitloQea2G53+s247qIB1BmZORImFQx6L3YnoxNbhmWJLSAigY9J0xxDpo0ayZJ2c0+iZw44MWtNNY8h4qhGbpCQlZg1VUn7q/OAtLA/W+DzhSo95rO00PpGf+le3DpV01uuk0/70mFGOMJmLvY7UpApOszICrVr8voVqBwwhxm98IKEKw0WCBVT2f33nRrLwIKxGQbGGOsKU7m3E9heIxW8uPTCWvgtCrOLg4S+xxUkqmeQnncxCVW+vsVjNLIteXHJWPqqV983Ozf8dVV9l0x3BEovEHmNSCW6eA8o4qPXQ4ZmoQg9Q2uIDF+Zbm/eymaQ+3vLYo0g7aZfupaw== 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=kX/qhDHjaDsqYXSQpqiH1ZY1oV2iYdxLQc+d0hSuCvU=; b=Snz10jmFUVYCR/5u+/aeaIc07AcKrqdL66eAQI+ghSPnwbSUcb+Zp6JHitTu25K44M395d8pUeadC29bw9Ce3qclSeaxoIE/EpeMp/oPpOZBlbBQ4QxjwmAtRn8MAbJROGPCjjdhya+aLP9k/Xxq+cQFn1SWzyCz1Bb1oANH7VlBdSr7M2SPQDL8HAULboK6M6uK6SoPqX0+yQ6sSNkzucbUC2vlpHWQVH1a5X1VQNSYmzdmNkUiO6oudnAynQltRZSnAzgEUYtfRp5V0vIQp26FA0hobfuroxApm2/ukwkXy993Cw3aUPj9rnV804HPC8AGX0MMswKpwEOnVktm8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from CH2PR11MB4487.namprd11.prod.outlook.com (2603:10b6:610:44::18) by DM6PR11MB4721.namprd11.prod.outlook.com (2603:10b6:5:2a3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.26; Wed, 15 Mar 2023 07:14:59 +0000 Received: from CH2PR11MB4487.namprd11.prod.outlook.com ([fe80::a05d:d32f:5361:f729]) by CH2PR11MB4487.namprd11.prod.outlook.com ([fe80::a05d:d32f:5361:f729%3]) with mapi id 15.20.6178.026; Wed, 15 Mar 2023 07:14:59 +0000 From: "Yuan, DukaiX" 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" , "Loftus, Ciara" , "Zhang, Qi Z" , "mw@semihalf.com" , "mk@semihalf.com" , "shaibran@amazon.com" , "evgenys@amazon.com" , "igorch@amazon.com" , "chandu@amd.com" , "irusskikh@marvell.com" , Shepard Siegel , "Czeck, Ed" , "john.miller@atomicrules.com" , "ajit.khaparde@broadcom.com" , "somnath.kotur@broadcom.com" , "jerinj@marvell.com" , "mczekaj@marvell.com" , "sthotton@marvell.com" , "srinivasan@marvell.com" , "hkalra@marvell.com" , "rahul.lakkireddy@chelsio.com" , "Daley, John" , "hyonkim@cisco.com" , "liudongdong3@huawei.com" , "yisen.zhuang@huawei.com" , "xuanziyang2@huawei.com" , "cloud.wangxiaoyun@huawei.com" , "zhouguoyang@huawei.com" , "Su, Simei" , "Wu, Wenjun1" , "Yang, Qiming" , "Zhang, Yuying" , "Xing, Beilei" , "Wang, Xiao W" , "Wu, Jingjing" , "Guo, Junfeng" , "Xu, Rosen" , "ndabilpuram@marvell.com" , "kirankumark@marvell.com" , "skori@marvell.com" , "skoteshwar@marvell.com" , "lironh@marvell.com" , "zr@semihalf.com" , "radhac@marvell.com" , "vburru@marvell.com" , "sedara@marvell.com" , "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" , "rmody@marvell.com" , "shshaikh@marvell.com" , "dsinghrawat@marvell.com" , "andrew.rybchenko@oktetlabs.ru" , "jiawenwu@trustnetic.com" , "jianwang@trustnetic.com" , "Behrens, Jochen" , "maxime.coquelin@redhat.com" , "Xia, Chenbo" , "Webster, Steven" , "Peters, Matt" , "Richardson, Bruce" , "mtetsuyah@gmail.com" , "grive@u256.net" , "Singh, Jasvinder" , "Dumitrescu, Cristian" , "jgrajcia@cisco.com" , "mb@smartsharesystems.com" Subject: RE: [PATCH v10 6/6] ethdev: add trace points for tm Thread-Topic: [PATCH v10 6/6] ethdev: add trace points for tm Thread-Index: AQHZO8IRzvgR4TlnBkOZNxHh1f4t5K77oiXA Date: Wed, 15 Mar 2023 07:14:59 +0000 Message-ID: References: <20230207063254.401538-1-adwivedi@marvell.com> <20230208132824.775985-1-adwivedi@marvell.com> <20230208132824.775985-7-adwivedi@marvell.com> In-Reply-To: <20230208132824.775985-7-adwivedi@marvell.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH2PR11MB4487:EE_|DM6PR11MB4721:EE_ x-ms-office365-filtering-correlation-id: 41fae0f2-b4a4-4887-bd12-08db2524fcaa x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: YVsrxDnOsDjFxITfSyVmyZ/oaVX7iJuvYlwbyj3o8ad87ViRbzO1qmrkvwpQEN1ux+u4q0FcHDkGSwrn2JlFGSjZ2EWv8vGGKkKixfBQXeT8mTh/o6ePvifVIfgRp8LAXrkHT6Dq4MUS/POGN2mElRVci5wpI3K/gOjSerIqTLMnwu0q4CVBXKoN79+mA2adTqYtnTNzp+VqNEt3yOszSmq75xoUM0+PnWydbWaWyMLO+meAu1gC2I3Q+aqT/EmaBNHPhlaxZT94fKOjeWE382PnJfnXNSQF2E8jptnCJG8fRz83oQAAIkzEg8sQlljthAeJPZ9nSzSptTlQY5N+PMByTq2ihcOC3jw+oKcNfjIRTTe6sb3AW1NPOGxvmbI0Pd6jbtfIHcqnfjVF4m+5FWiWaXeeVcCLGXjGiyCNitxKi6Gw2xtJRIbxvuZCpnccPJAIU5xZYUvsXdPNbNcGSB6OKtnbZWULNYK8EPH4BW7Hvlh4VHuvO2GLHHqePEp7iRT4IDTnwXHYr1U3f2VyBIV38hTx53ODAYqgCkYubgy8LAxCwANZTgyRVlyDgVti/WVnVdjCrE0GMw8Q9UKY2SV/eAV2UMhzOhzv8PhoAgz/gNbxX/wtAsKy4pVHsBeruR3FTJaBJWyanbSNt1r3ppCG1FM/PNsN5upNhYKKVE8Q77cMEQGh9z7nk/9jPQDS x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR11MB4487.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(39860400002)(136003)(366004)(346002)(396003)(376002)(84040400005)(451199018)(5660300002)(71200400001)(33656002)(6506007)(26005)(7696005)(966005)(9686003)(66446008)(76116006)(66556008)(66476007)(66946007)(122000001)(478600001)(64756008)(82960400001)(8676002)(4326008)(83380400001)(52536014)(38100700002)(86362001)(110136005)(54906003)(30864003)(2906002)(53546011)(316002)(186003)(7416002)(41300700001)(55016003)(7406005)(38070700005)(7366002)(8936002)(45080400002)(559001)(579004); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?SWFwRktYeS90OTRBUjhSN1EyNXI2SmkzMUp3b2t1SVcxRjJWVCtmRjNp?= =?iso-2022-jp?B?em9vaWNlWnhtMGJHTmg0NGhXYzVhMmVWMW5YYjJpcy9wWWw2Nmc3cXpX?= =?iso-2022-jp?B?S3dDVElNN01jQXVma2pHbEhyL25HejVMcGlvQ1lwTFVaUmxCUGdKR0Vo?= =?iso-2022-jp?B?MVVuaGFrelF2c2xYRTdiNVBkSzU0YWxaM0ZlWmQwMjMyQnppU095eXBu?= =?iso-2022-jp?B?KzhBQ08vLzFVMHF3azVFY3ltQzFQVFBqNzk3VGFLZ1J0SHVvQzFyRWRr?= =?iso-2022-jp?B?aTJwTVdvN0pSalhTTGVOS2ZYenlnRUdoVmloczdPUWRwY3BJVThzQTQz?= =?iso-2022-jp?B?VjlNbm15Q0EwZlpUUXcwSFFjQ1hpMkx4dmxPZG9TMW83ZHlpbkJabXg2?= =?iso-2022-jp?B?VTgvRXJzQ3U4SUdWZmlOZmF4bmlHbDZMK0FUaUF3WXlmVzJLYUNoRG4v?= =?iso-2022-jp?B?ajJZKzllVVZGRXAvTXA2U0ovbkJVSnJjN0hEenVPUGRpUmpOcVB6ZGMv?= =?iso-2022-jp?B?QVl5VGI1ODM1ZlZ4U2lOM1hLZWU4bWE1aW5MdzdSL0ZPa1FuUHF3UnVx?= =?iso-2022-jp?B?QUpVWDFvTWRGQTAraFEzWUNJZXpLWndYNVh3NkF0RjlQTk9NbmJwSlBL?= =?iso-2022-jp?B?TEk2RmJIVisvblpGaGs1UEZkTHhNZ3prbGcrRjJlOXJGSnJlR3BDaUlk?= =?iso-2022-jp?B?emRxNTJSaGkwZGlqdHlUVVIvZlhKanA3VElGRXROYkVJcVorUFFFS3JU?= =?iso-2022-jp?B?dGJTblZqMjNMaDlMbmloT0hJazdBblVBblV0VmNST1k2TlhlVmxKNkdq?= =?iso-2022-jp?B?MTFncm5TczJ4OXVydnJTZUpXK3E5NlgwbTlKZ2Jpb0NqN1M3NlIyVCtC?= =?iso-2022-jp?B?ellCODU4Mk45RFVKODBqbnNweU8yRWNOSTcxYXpZajJVVVJlOW8vSHFI?= =?iso-2022-jp?B?OG9oWk1pcGRoNXVNak1zZEloc3ZibTJ2anhMMEdLT1BVUlNxRkZkbUxT?= =?iso-2022-jp?B?YU05cmlkYlQzTUhUbXpkQUZOR3ZDK1ptUndsS1EweGpmSHcvdHUxVVNM?= =?iso-2022-jp?B?WXpOVi9IZTFSdldnOU1Pczcwbi9NemVuaHlTZEVJaHhwV0lxeG1JeFZE?= =?iso-2022-jp?B?b3NkYitOSm93bGE0SWYxcjdaSlNWS2diNVY0S2gva1BRQUtRaHJ4WG94?= =?iso-2022-jp?B?MUVsSU5mR080ZHp3Mm5sOUpQNi81SFFOZXMycG9rNHk3VTJ0VGxEd1l1?= =?iso-2022-jp?B?a3A3a1BvcERCTEh4d1BsQjBQMjZtSnR4ckxnOXdNSCttK2lWaVdLZ3hm?= =?iso-2022-jp?B?VHRHWUdKZGxEeFhnN1lUVlJNd092K2ZLVWw5T0lNblpkRUdZcW5KbUVL?= =?iso-2022-jp?B?eG9HQ0NUZjlpSStoUHhmdjA1dkxoa3FwSit3eEdNWm9hUFcyM0RMWEVF?= =?iso-2022-jp?B?MGNjcGsrUi9EUEVLZStNN0FjN3U2NUZQWWxlYURFaTFXS1NwdGV5RTB4?= =?iso-2022-jp?B?WmxuSlVtbjNWeXFPRlZlR1V3U2krbHl2M3gwOUI2QUlPcFVPNTlSVmxS?= =?iso-2022-jp?B?dTVSUlRKZ1RjWE1LOFNuRFdYMjRjanZRWjlyaUZLajN1dzRUN1hOeUE2?= =?iso-2022-jp?B?T0V5cm5DV2RycmxjYTBRbE9PUGlvUHNYVWpVNVBMR0NKT1EveGtUcEdE?= =?iso-2022-jp?B?VDEvQUMxQ0pwaXhyYTFFNlUvTzBmYzZ1SEtkbnQwVjJadGJFS3R5YldN?= =?iso-2022-jp?B?Um9kVzRjTkUrNHRQZVZ1TmdyY2NobEVuZ1NZeWdIa2dOR1FDa0Y1bFdE?= =?iso-2022-jp?B?MmJmRThlMERwZHg1QjBJVTBkc2xtQkp2MGdGM2hVZTJlNGxBcXNvRXVi?= =?iso-2022-jp?B?SWlhZHZZZ2xFRjIrYk9RQUZmMVZMbmFTbDQxMTE0RmR4NElnWFdTQ0VD?= =?iso-2022-jp?B?MWxqaE1lQ1FGWm9JOFRwdko5c2lJREtXSkhURDBaeHMzUUQyV3VOM0dM?= =?iso-2022-jp?B?U3BwdUkrbmJERUczeGxpb1QrajZwVS9PUzNtMUlLUWg2V3J0Yk1GeVI4?= =?iso-2022-jp?B?di9KZ1ZKUnVUVlE1L0syZ2l5cUQwY1RvTkEwS3JWcWMyS2k4RFN0TVY2?= =?iso-2022-jp?B?K3Rad055VWNFbitJckdiSTlkTE9RK2FlWmJFZTljK1RQRmsvMk14bXQ1?= =?iso-2022-jp?B?cllLZVc3NG95cHlZNVhXaWJtTlpHZkowUVhHZnRVSUIwa0pSTjBKRW1a?= =?iso-2022-jp?B?WEtEeWZpNjJaRUJaNERSdDhIUWg4OU5IWlpnMVRkQzArOFErdzZ0Z2xH?= =?iso-2022-jp?B?Q283Mw==?= Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH2PR11MB4487.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41fae0f2-b4a4-4887-bd12-08db2524fcaa X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2023 07:14:59.0842 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: h2yTJzGGJRi2m6tAVlz4QQS1WKC2a2KdmVUZVi1l5q2f8kbqbRnY+nEmq9aa0Sn8q/n90My6oq52c1a3RvAl+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4721 X-OriginatorOrg: intel.com 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 Hi Ankur, I get an error message when I launch testpmd with Asan, I need your help to= confirm this issue. For more information please refer to https://bugs.dpdk.org/show_bug.cgi?id= =3D1184. Waiting for your reply. Best regards, Dukai,Yuan > -----Original Message----- > From: Ankur Dwivedi > Sent: 2023=1B$BG/=1B(B2=1B$B7n=1B(B8=1B$BF|=1B(B 21:28 > 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; Loftus, Ciara > ; Zhang, Qi Z ; > mw@semihalf.com; mk@semihalf.com; shaibran@amazon.com; > evgenys@amazon.com; igorch@amazon.com; chandu@amd.com; > irusskikh@marvell.com; Shepard Siegel ; > Czeck, Ed ; john.miller@atomicrules.com; > ajit.khaparde@broadcom.com; somnath.kotur@broadcom.com; > jerinj@marvell.com; mczekaj@marvell.com; sthotton@marvell.com; > srinivasan@marvell.com; hkalra@marvell.com; rahul.lakkireddy@chelsio.com; > Daley, John ; hyonkim@cisco.com; > liudongdong3@huawei.com; yisen.zhuang@huawei.com; > xuanziyang2@huawei.com; cloud.wangxiaoyun@huawei.com; > zhouguoyang@huawei.com; Su, Simei ; Wu, Wenjun1 > ; Yang, Qiming ; Zhang, > Yuying ; Xing, Beilei ; > Wang, Xiao W ; Wu, Jingjing > ; Guo, Junfeng ; Xu, > Rosen ; ndabilpuram@marvell.com; > kirankumark@marvell.com; skori@marvell.com; skoteshwar@marvell.com; > lironh@marvell.com; zr@semihalf.com; radhac@marvell.com; > vburru@marvell.com; sedara@marvell.com; 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; > rmody@marvell.com; shshaikh@marvell.com; dsinghrawat@marvell.com; > andrew.rybchenko@oktetlabs.ru; jiawenwu@trustnetic.com; > jianwang@trustnetic.com; Behrens, Jochen ; > maxime.coquelin@redhat.com; Xia, Chenbo ; > Webster, Steven ; Peters, Matt > ; Richardson, Bruce > ; mtetsuyah@gmail.com; grive@u256.net; > Singh, Jasvinder ; Dumitrescu, Cristian > ; jgrajcia@cisco.com; > mb@smartsharesystems.com; Ankur Dwivedi > Subject: [PATCH v10 6/6] ethdev: add trace points for tm >=20 > Adds trace points for rte_tm specific functions in ethdev lib. >=20 > Signed-off-by: Ankur Dwivedi > --- > lib/ethdev/ethdev_trace.h | 304 > +++++++++++++++++++++++++++++++ > lib/ethdev/ethdev_trace_points.c | 90 +++++++++ > lib/ethdev/rte_tm.c | 225 ++++++++++++++++++++--- > 3 files changed, 590 insertions(+), 29 deletions(-) >=20 > diff --git a/lib/ethdev/ethdev_trace.h b/lib/ethdev/ethdev_trace.h index > 973e2ac6d4..0b0a791aeb 100644 > --- a/lib/ethdev/ethdev_trace.h > +++ b/lib/ethdev/ethdev_trace.h > @@ -20,6 +20,7 @@ extern "C" { >=20 > #include "rte_ethdev.h" > #include "rte_mtr.h" > +#include "rte_tm.h" >=20 > RTE_TRACE_POINT( > rte_ethdev_trace_configure, > @@ -1831,6 +1832,309 @@ RTE_TRACE_POINT( > rte_trace_point_emit_int(ret); > ) >=20 > +RTE_TRACE_POINT( > + rte_tm_trace_get_number_of_leaf_nodes, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t n_leaf_nodes), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(n_leaf_nodes); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_type_get, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, int > is_leaf, > + int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_int(is_leaf); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_capabilities_get, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, > + const struct rte_tm_capabilities *cap, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_ptr(cap); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_level_capabilities_get, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t level_id, > + const struct rte_tm_level_capabilities *cap, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(level_id); > + rte_trace_point_emit_ptr(cap); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_capabilities_get, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, > + const struct rte_tm_node_capabilities *cap, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_ptr(cap); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_wred_profile_add, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t wred_profile_id, > + const struct rte_tm_wred_params *profile, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(wred_profile_id); > + rte_trace_point_emit_ptr(profile); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_wred_profile_delete, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t wred_profile_id, > + int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(wred_profile_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_shared_wred_context_add_update, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t > shared_wred_context_id, > + uint32_t wred_profile_id, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(shared_wred_context_id); > + rte_trace_point_emit_u32(wred_profile_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_shared_wred_context_delete, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t > shared_wred_context_id, > + int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(shared_wred_context_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_shaper_profile_add, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t > shaper_profile_id, > + const struct rte_tm_shaper_params *profile, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(shaper_profile_id); > + rte_trace_point_emit_ptr(profile); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_shaper_profile_delete, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t > shaper_profile_id, > + int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(shaper_profile_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_shared_shaper_add_update, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t > shared_shaper_id, > + uint32_t shaper_profile_id, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(shared_shaper_id); > + rte_trace_point_emit_u32(shaper_profile_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_shared_shaper_delete, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t > shared_shaper_id, > + int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(shared_shaper_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_add, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, > + uint32_t parent_node_id, uint32_t priority, > + uint32_t weight, uint32_t level_id, > + const struct rte_tm_node_params *params, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_u32(parent_node_id); > + rte_trace_point_emit_u32(priority); > + rte_trace_point_emit_u32(weight); > + rte_trace_point_emit_u32(level_id); > + rte_trace_point_emit_ptr(params); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_delete, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, int > ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_suspend, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, int > ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_resume, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, int > ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_hierarchy_commit, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int clear_on_fail, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(clear_on_fail); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_parent_update, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, > + uint32_t parent_node_id, uint32_t priority, > + uint32_t weight, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_u32(parent_node_id); > + rte_trace_point_emit_u32(priority); > + rte_trace_point_emit_u32(weight); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_shaper_update, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, > + uint32_t shaper_profile_id, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_u32(shaper_profile_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_shared_shaper_update, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, > + uint32_t shared_shaper_id, int add, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_u32(shared_shaper_id); > + rte_trace_point_emit_int(add); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_stats_update, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, > + uint64_t stats_mask, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_u64(stats_mask); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_wfq_weight_mode_update, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, > + const int *wfq_weight_mode, uint32_t n_sp_priorities, > + int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_ptr(wfq_weight_mode); > + rte_trace_point_emit_u32(n_sp_priorities); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_cman_update, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, > + enum rte_tm_cman_mode cman, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_int(cman); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_wred_context_update, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, > + uint32_t wred_profile_id, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_u32(wred_profile_id); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_shared_wred_context_update, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, > + uint32_t shared_wred_context_id, int add, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_u32(shared_wred_context_id); > + rte_trace_point_emit_int(add); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_node_stats_read, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, uint32_t node_id, > + const struct rte_tm_node_stats *stats, > + uint64_t stats_mask, int clear, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_u32(node_id); > + rte_trace_point_emit_ptr(stats); > + rte_trace_point_emit_u64(stats_mask); > + rte_trace_point_emit_int(clear); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_mark_vlan_dei, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int mark_green, > + int mark_yellow, int mark_red, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(mark_green); > + rte_trace_point_emit_int(mark_yellow); > + rte_trace_point_emit_int(mark_red); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_mark_ip_ecn, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int mark_green, > + int mark_yellow, int mark_red, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(mark_green); > + rte_trace_point_emit_int(mark_yellow); > + rte_trace_point_emit_int(mark_red); > + rte_trace_point_emit_int(ret); > +) > + > +RTE_TRACE_POINT( > + rte_tm_trace_mark_ip_dscp, > + RTE_TRACE_POINT_ARGS(uint16_t port_id, int mark_green, > + int mark_yellow, int mark_red, int ret), > + rte_trace_point_emit_u16(port_id); > + rte_trace_point_emit_int(mark_green); > + rte_trace_point_emit_int(mark_yellow); > + rte_trace_point_emit_int(mark_red); > + rte_trace_point_emit_int(ret); > +) > + > /* Fast path trace points */ >=20 > /* Called in loop in examples/qos_sched and examples/distributor */ diff= -- > git a/lib/ethdev/ethdev_trace_points.c b/lib/ethdev/ethdev_trace_points.c > index c34c06941c..34d12e2859 100644 > --- a/lib/ethdev/ethdev_trace_points.c > +++ b/lib/ethdev/ethdev_trace_points.c > @@ -654,3 +654,93 @@ > RTE_TRACE_POINT_REGISTER(rte_mtr_trace_color_in_protocol_priority_get, >=20 > RTE_TRACE_POINT_REGISTER(rte_mtr_trace_color_in_protocol_set, > lib.ethdev.mtr.color_in_protocol_set) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_capabilities_get, > + lib.ethdev.tm.capabilities_get) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_get_number_of_leaf_nodes, > + lib.ethdev.tm.get_number_of_leaf_nodes) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_hierarchy_commit, > + lib.ethdev.tm.hierarchy_commit) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_level_capabilities_get, > + lib.ethdev.tm.level_capabilities_get) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_mark_ip_dscp, > + lib.ethdev.tm.mark_ip_dscp) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_mark_ip_ecn, > + lib.ethdev.tm.mark_ip_ecn) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_mark_vlan_dei, > + lib.ethdev.tm.mark_vlan_dei) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_add, > + lib.ethdev.tm.node_add) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_capabilities_get, > + lib.ethdev.tm.node_capabilities_get) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_cman_update, > + lib.ethdev.tm.node_cman_update) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_delete, > + lib.ethdev.tm.node_delete) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_parent_update, > + lib.ethdev.tm.node_parent_update) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_resume, > + lib.ethdev.tm.node_resume) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_shaper_update, > + lib.ethdev.tm.node_shaper_update) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_shared_shaper_update, > + lib.ethdev.tm.node_shared_shaper_update) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_shared_wred_context_ > update, > + lib.ethdev.tm.node_shared_wred_context_update) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_stats_read, > + lib.ethdev.tm.node_stats_read) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_stats_update, > + lib.ethdev.tm.node_stats_update) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_suspend, > + lib.ethdev.tm.node_suspend) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_type_get, > + lib.ethdev.tm.node_type_get) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_wfq_weight_mode_up > date, > + lib.ethdev.tm.node_wfq_weight_mode_update) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_node_wred_context_update, > + lib.ethdev.tm.node_wred_context_update) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_shaper_profile_add, > + lib.ethdev.tm.shaper_profile_add) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_shaper_profile_delete, > + lib.ethdev.tm.shaper_profile_delete) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_shared_shaper_add_update, > + lib.ethdev.tm.shared_shaper_add_update) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_shared_shaper_delete, > + lib.ethdev.tm.shared_shaper_delete) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_shared_wred_context_add_u > pdate, > + lib.ethdev.tm.shared_wred_context_add_update) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_shared_wred_context_delete, > + lib.ethdev.tm.shared_wred_context_delete) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_wred_profile_add, > + lib.ethdev.tm.wred_profile_add) > + > +RTE_TRACE_POINT_REGISTER(rte_tm_trace_wred_profile_delete, > + lib.ethdev.tm.wred_profile_delete) > diff --git a/lib/ethdev/rte_tm.c b/lib/ethdev/rte_tm.c index > 9709454f35..2d08141133 100644 > --- a/lib/ethdev/rte_tm.c > +++ b/lib/ethdev/rte_tm.c > @@ -5,6 +5,7 @@ > #include >=20 > #include > +#include "ethdev_trace.h" > #include "rte_ethdev.h" > #include "rte_tm_driver.h" > #include "rte_tm.h" > @@ -79,6 +80,9 @@ rte_tm_get_number_of_leaf_nodes(uint16_t port_id, > } >=20 > *n_leaf_nodes =3D dev->data->nb_tx_queues; > + > + rte_tm_trace_get_number_of_leaf_nodes(port_id, *n_leaf_nodes); > + > return 0; > } >=20 > @@ -90,8 +94,13 @@ rte_tm_node_type_get(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_type_get)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_type_get)(dev, > node_id, is_leaf, error); > + > + rte_tm_trace_node_type_get(port_id, node_id, *is_leaf, ret); > + > + return ret; > } >=20 > /* Get capabilities */ > @@ -100,8 +109,13 @@ int rte_tm_capabilities_get(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, capabilities_get)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, capabilities_get)(dev, > cap, error); > + > + rte_tm_trace_capabilities_get(port_id, cap, ret); > + > + return ret; > } >=20 > /* Get level capabilities */ > @@ -111,8 +125,13 @@ int rte_tm_level_capabilities_get(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, level_capabilities_get)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, level_capabilities_get)(dev, > level_id, cap, error); > + > + rte_tm_trace_level_capabilities_get(port_id, level_id, cap, ret); > + > + return ret; > } >=20 > /* Get node capabilities */ > @@ -122,8 +141,13 @@ int rte_tm_node_capabilities_get(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_capabilities_get)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_capabilities_get)(dev, > node_id, cap, error); > + > + rte_tm_trace_node_capabilities_get(port_id, node_id, cap, ret); > + > + return ret; > } >=20 > /* Add WRED profile */ > @@ -133,8 +157,13 @@ int rte_tm_wred_profile_add(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, wred_profile_add)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, wred_profile_add)(dev, > wred_profile_id, profile, error); > + > + rte_tm_trace_wred_profile_add(port_id, wred_profile_id, profile, > ret); > + > + return ret; > } >=20 > /* Delete WRED profile */ > @@ -143,8 +172,13 @@ int rte_tm_wred_profile_delete(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, wred_profile_delete)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, wred_profile_delete)(dev, > wred_profile_id, error); > + > + rte_tm_trace_wred_profile_delete(port_id, wred_profile_id, ret); > + > + return ret; > } >=20 > /* Add/update shared WRED context */ > @@ -154,8 +188,15 @@ int > rte_tm_shared_wred_context_add_update(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, > shared_wred_context_add_update)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, > shared_wred_context_add_update)(dev, > shared_wred_context_id, wred_profile_id, error); > + > + rte_tm_trace_shared_wred_context_add_update(port_id, > + shared_wred_context_id, > + wred_profile_id, ret); > + > + return ret; > } >=20 > /* Delete shared WRED context */ > @@ -164,8 +205,14 @@ int rte_tm_shared_wred_context_delete(uint16_t > port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, shared_wred_context_delete)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, shared_wred_context_delete)(dev, > shared_wred_context_id, error); > + > + rte_tm_trace_shared_wred_context_delete(port_id, > + shared_wred_context_id, > ret); > + > + return ret; > } >=20 > /* Add shaper profile */ > @@ -175,8 +222,14 @@ int rte_tm_shaper_profile_add(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, shaper_profile_add)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, shaper_profile_add)(dev, > shaper_profile_id, profile, error); > + > + rte_tm_trace_shaper_profile_add(port_id, shaper_profile_id, > profile, > + ret); > + > + return ret; > } >=20 > /* Delete WRED profile */ > @@ -185,8 +238,13 @@ int rte_tm_shaper_profile_delete(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, shaper_profile_delete)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, shaper_profile_delete)(dev, > shaper_profile_id, error); > + > + rte_tm_trace_shaper_profile_delete(port_id, shaper_profile_id, > ret); > + > + return ret; > } >=20 > /* Add shared shaper */ > @@ -196,8 +254,14 @@ int rte_tm_shared_shaper_add_update(uint16_t > port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, shared_shaper_add_update)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, shared_shaper_add_update)(dev, > shared_shaper_id, shaper_profile_id, error); > + > + rte_tm_trace_shared_shaper_add_update(port_id, > shared_shaper_id, > + shaper_profile_id, ret); > + > + return ret; > } >=20 > /* Delete shared shaper */ > @@ -206,8 +270,13 @@ int rte_tm_shared_shaper_delete(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, shared_shaper_delete)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, shared_shaper_delete)(dev, > shared_shaper_id, error); > + > + rte_tm_trace_shared_shaper_delete(port_id, shared_shaper_id, > ret); > + > + return ret; > } >=20 > /* Add node to port traffic manager hierarchy */ @@ -221,9 +290,15 @@ in= t > rte_tm_node_add(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_add)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_add)(dev, > node_id, parent_node_id, priority, weight, level_id, > params, error); > + > + rte_tm_trace_node_add(port_id, node_id, parent_node_id, priority, > + weight, level_id, params, ret); > + > + return ret; > } >=20 > /* Delete node from traffic manager hierarchy */ @@ -232,8 +307,13 @@ in= t > rte_tm_node_delete(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_delete)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_delete)(dev, > node_id, error); > + > + rte_tm_trace_node_delete(port_id, node_id, ret); > + > + return ret; > } >=20 > /* Suspend node */ > @@ -242,8 +322,13 @@ int rte_tm_node_suspend(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_suspend)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_suspend)(dev, > node_id, error); > + > + rte_tm_trace_node_suspend(port_id, node_id, ret); > + > + return ret; > } >=20 > /* Resume node */ > @@ -252,8 +337,13 @@ int rte_tm_node_resume(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_resume)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_resume)(dev, > node_id, error); > + > + rte_tm_trace_node_resume(port_id, node_id, ret); > + > + return ret; > } >=20 > /* Commit the initial port traffic manager hierarchy */ @@ -262,8 +352,1= 3 > @@ int rte_tm_hierarchy_commit(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, hierarchy_commit)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, hierarchy_commit)(dev, > clear_on_fail, error); > + > + rte_tm_trace_hierarchy_commit(port_id, clear_on_fail, ret); > + > + return ret; > } >=20 > /* Update node parent */ > @@ -275,8 +370,14 @@ int rte_tm_node_parent_update(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_parent_update)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_parent_update)(dev, > node_id, parent_node_id, priority, weight, error); > + > + rte_tm_trace_node_parent_update(port_id, node_id, > parent_node_id, > + priority, weight, ret); > + > + return ret; > } >=20 > /* Update node private shaper */ > @@ -286,8 +387,14 @@ int rte_tm_node_shaper_update(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_shaper_update)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_shaper_update)(dev, > node_id, shaper_profile_id, error); > + > + rte_tm_trace_node_shaper_update(port_id, node_id, > shaper_profile_id, > + ret); > + > + return ret; > } >=20 > /* Update node shared shapers */ > @@ -298,8 +405,14 @@ int rte_tm_node_shared_shaper_update(uint16_t > port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_shared_shaper_update)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_shared_shaper_update)(dev, > node_id, shared_shaper_id, add, error); > + > + rte_tm_trace_node_shared_shaper_update(port_id, node_id, > + shared_shaper_id, add, ret); > + > + return ret; > } >=20 > /* Update node stats */ > @@ -309,8 +422,13 @@ int rte_tm_node_stats_update(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_stats_update)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_stats_update)(dev, > node_id, stats_mask, error); > + > + rte_tm_trace_node_stats_update(port_id, node_id, stats_mask, > ret); > + > + return ret; > } >=20 > /* Update WFQ weight mode */ > @@ -321,8 +439,15 @@ int > rte_tm_node_wfq_weight_mode_update(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, > node_wfq_weight_mode_update)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, > node_wfq_weight_mode_update)(dev, > node_id, wfq_weight_mode, n_sp_priorities, error); > + > + rte_tm_trace_node_wfq_weight_mode_update(port_id, node_id, > + wfq_weight_mode, > + n_sp_priorities, ret); > + > + return ret; > } >=20 > /* Update node congestion management mode */ @@ -332,8 +457,13 @@ > int rte_tm_node_cman_update(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_cman_update)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_cman_update)(dev, > node_id, cman, error); > + > + rte_tm_trace_node_cman_update(port_id, node_id, cman, ret); > + > + return ret; > } >=20 > /* Update node private WRED context */ > @@ -343,8 +473,14 @@ int rte_tm_node_wred_context_update(uint16_t > port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_wred_context_update)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_wred_context_update)(dev, > node_id, wred_profile_id, error); > + > + rte_tm_trace_node_wred_context_update(port_id, node_id, > wred_profile_id, > + ret); > + > + return ret; > } >=20 > /* Update node shared WRED context */ > @@ -355,8 +491,15 @@ int > rte_tm_node_shared_wred_context_update(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, > node_shared_wred_context_update)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, > node_shared_wred_context_update)(dev, > node_id, shared_wred_context_id, add, error); > + > + rte_tm_trace_node_shared_wred_context_update(port_id, > node_id, > + shared_wred_context_id, > + add, ret); > + > + return ret; > } >=20 > /* Read and/or clear stats counters for specific node */ @@ -368,8 +511,= 14 > @@ int rte_tm_node_stats_read(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, node_stats_read)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, node_stats_read)(dev, > node_id, stats, stats_mask, clear, error); > + > + rte_tm_trace_node_stats_read(port_id, node_id, stats, > *stats_mask, > + clear, ret); > + > + return ret; > } >=20 > /* Packet marking - VLAN DEI */ > @@ -380,8 +529,14 @@ int rte_tm_mark_vlan_dei(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, mark_vlan_dei)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, mark_vlan_dei)(dev, > mark_green, mark_yellow, mark_red, error); > + > + rte_tm_trace_mark_vlan_dei(port_id, mark_green, mark_yellow, > mark_red, > + ret); > + > + return ret; > } >=20 > /* Packet marking - IPv4/IPv6 ECN */ > @@ -392,8 +547,14 @@ int rte_tm_mark_ip_ecn(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, mark_ip_ecn)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, mark_ip_ecn)(dev, > mark_green, mark_yellow, mark_red, error); > + > + rte_tm_trace_mark_ip_ecn(port_id, mark_green, mark_yellow, > mark_red, > + ret); > + > + return ret; > } >=20 > /* Packet marking - IPv4/IPv6 DSCP */ > @@ -404,6 +565,12 @@ int rte_tm_mark_ip_dscp(uint16_t port_id, > struct rte_tm_error *error) > { > struct rte_eth_dev *dev =3D &rte_eth_devices[port_id]; > - return RTE_TM_FUNC(port_id, mark_ip_dscp)(dev, > + int ret; > + ret =3D RTE_TM_FUNC(port_id, mark_ip_dscp)(dev, > mark_green, mark_yellow, mark_red, error); > + > + rte_tm_trace_mark_ip_dscp(port_id, mark_green, mark_yellow, > mark_red, > + ret); > + > + return ret; > } > -- > 2.25.1