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 A40E242E4D; Wed, 12 Jul 2023 04:44:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 950D0406BA; Wed, 12 Jul 2023 04:44:11 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 559E84068E for ; Wed, 12 Jul 2023 04:44:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689129849; x=1720665849; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=iFwMaEOVONEuJ1evZDGLnleGtze6/Ul6nG8ZGpwlUPA=; b=kcJfji2tuAgU7tC5QCVVQerKSIO0zBYTZZMTuepQ4Ogwbdea+k5RuToU 2+zJM3OvMs+9kkCjje3FQW4357jedRWj7q7X3aGVruqYHtWnoLJiAMJbk maA8u79UHXkE/igmGCs8UKYhkfmiKnqvV8d98F0U1M6SXbYdSRu7PIZpw 9zCBBgjTZtzmogu8dJdeaUCXxFA0oUUcMbrqLPW/dNKPNv2ISNtd6968H okoCnbNV6RwHYeqiywwpBhJh+b91uQt9HyoTmw+oocDOGDxgoEu9BI8Tb ZHKUVL25cWXUu+TEpBVVnuIXq21ITrqQhealxxTIwYUPGuAjYgid0+H91 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10768"; a="451149400" X-IronPort-AV: E=Sophos;i="6.01,198,1684825200"; d="scan'208";a="451149400" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2023 19:43:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10768"; a="786866399" X-IronPort-AV: E=Sophos;i="6.01,198,1684825200"; d="scan'208";a="786866399" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga008.fm.intel.com with ESMTP; 11 Jul 2023 19:43:36 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 11 Jul 2023 19:43:36 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Tue, 11 Jul 2023 19:43:36 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.48) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Tue, 11 Jul 2023 19:43:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jsH2eNGlAUbKvFDFraq8ldnlikGRFQ15S7OtycMmXtG2naV3G33ziotsIesnKhNfv+wMo6woLj6OeirHeWM/E8kB/cFVNQdF6JwmvlGlz4YS2+VyB6b8cHULaPKBcachV2mzYpKpAp+LyIiXOYcBlj4KOrByBTZ9qxc17mlnQ1t8nhV6F/XGPuNtiWTz8wjpvN/+B7PWecCphqAX2B37xKCAysiUrB3d8u22/adU3I5OASFsCfVpfbLjXYSr5ilwUNuXAq/sX0EYvfV+AOZ0gQPkN5Da/lDhB1xIrXCwKEfrrxMG0iHissfWKDCrFFyF0AzciWTMbcbksKqHokVyjw== 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=iFwMaEOVONEuJ1evZDGLnleGtze6/Ul6nG8ZGpwlUPA=; b=Jj1R8fvU49i8+ofCsRo9VF0xZhRmF176Tsw7SUVJbAL/yT2mP0TG3d0czfxGpvy44FewLmx9sLwamIO7HMuPgknqRe1W3d1Pw7bD1d5ECroq/9nQe/mTkMCSoOhT4Ggd2qE824yzDDTBcRECv9M9hARdHoA7YyBRYuoTpCrM9IWmxIu0kgchYkqIb/4MwYLcLqyxcZGinRv4O1I/hl6eEPkMNvWDF7Fk+DbVktMiAKerVTcfetCD+JceShj2XAPsIKwQhhaI83BdhRt2K2B+Bnca+45IjLOBFNhS4nJoWXz8sKWzOJpbySTr2CmD2P+tkH54s3XWiIY0j9OFY4BoEA== 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 PH0PR11MB5879.namprd11.prod.outlook.com (2603:10b6:510:142::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Wed, 12 Jul 2023 02:43:31 +0000 Received: from CH2PR11MB4487.namprd11.prod.outlook.com ([fe80::3375:ea12:f504:cad6]) by CH2PR11MB4487.namprd11.prod.outlook.com ([fe80::3375:ea12:f504:cad6%7]) with mapi id 15.20.6588.017; Wed, 12 Jul 2023 02:43:31 +0000 From: "Yuan, DukaiX" To: "Sevincer, Abdullah" , "dev@dpdk.org" CC: "Pattan, Reshma" , "stephen@networkplumber.org" , "Sevincer, Abdullah" , "stable@dpdk.org" Subject: RE: [PATCH v1] app/procinfo: revise display eventdev xstats Thread-Topic: [PATCH v1] app/procinfo: revise display eventdev xstats Thread-Index: AQHZsbipchCXWL0S0EeUx0hNGNB9KK+1cZaQ Date: Wed, 12 Jul 2023 02:43:30 +0000 Message-ID: References: <20230708162356.2961843-1-abdullah.sevincer@intel.com> In-Reply-To: <20230708162356.2961843-1-abdullah.sevincer@intel.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_|PH0PR11MB5879:EE_ x-ms-office365-filtering-correlation-id: ccfaf0f0-ccb3-43f6-994b-08db8281c733 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mLw1SUW+NurK7zMXeypCH0gTYRMXWXqkoys6NyDGlsmjw0z3YSY19m2CaAXmatVJZQe5LexkaSuO8tiXn38IKd4Sn7SwpuSPE//3vypP058nr6cVFHY7H9QrD768MfnpyuqyMDS2UKwzOLlt7WItgI3ccTwPOle5XQjm38yIqzqCN+mG2FScGmHsKgAHjCfjS+wBzNRK6VSVRKEdNH7cdvPpzJ3Xt9old2KgKVHPvWuK/f0pf/E4ly/k/iWfPb+f39cxoj/nQuBJbJKHzkb5OFABsHdvFQkPEK/klh2Mn4y6ZgghSR5dUQ+IeXJjVwH3UpM94tpY4aQl2jf89QeG3hmYrNAYhvPcnE8t0Uy3R3VAS4xEBgsx/XNLjrP9Jm6uKlg8gmVMEA68utlVIjhouOFX5negZL1wA0XdJ2LBTxEXYbCtFlsDF9R0hrroU2dCvIkZ1cljaAzNxc1YCkmpv2H5VlFHrOGj3JK9U2nFXbMsbdI/MBBVIyRVQt25WTvL4c5d6uRfgFWvEONMAKlxMAHzaG5SFHkgPQRxf07RUEj31Re9kUneohojVAPH12Z16Rjw2H3W0bKkgNuH012ETEe7ctYrwq9husqidmHOIBIvKzvDWjKfSUluRRsWPwzQ 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:(13230028)(396003)(346002)(39860400002)(366004)(376002)(136003)(451199021)(71200400001)(186003)(9686003)(316002)(478600001)(110136005)(66946007)(76116006)(54906003)(7696005)(66556008)(66476007)(66446008)(64756008)(4326008)(41300700001)(8936002)(8676002)(53546011)(55016003)(86362001)(6506007)(52536014)(26005)(5660300002)(83380400001)(33656002)(122000001)(38070700005)(2906002)(4744005)(82960400001)(38100700002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?YWxtUVZlc2FTL0pwcVZHUkFla3N6ZDRrUi8wcVI1eGJVR3ZBUGF6aUZq?= =?iso-2022-jp?B?a2NQNElSS2dIeW1abnhueldvWEJVOGM3c0cyeDhhVzErWUJaMTlLUXdq?= =?iso-2022-jp?B?d1pTeW5naUJJenpWMWgyVGhuTEp0bUgzdXIrZXNVbUx3VE8ybWZQcUlh?= =?iso-2022-jp?B?RjRVWTd5V2l1MjZVYndwYXJaenRIckNhWEYrNEVXdTY2YzdhT3lPR3Fs?= =?iso-2022-jp?B?cW40T3NKbi9UUDBocVdYZ3BLTElzbElPVUNTVm5SVWp4OVF3c2NkeXFk?= =?iso-2022-jp?B?TkFrNTF3bTI2K0VVVkhVMTBDa3J6YWRqOXE1RWJjejVud0RoeUN4ZUI3?= =?iso-2022-jp?B?Mk1pWHptU25IQ2hRRkRVOU9URGlTdU81S1ZnN3IzeVVrVzdHSWllRnRT?= =?iso-2022-jp?B?dy9uQUtjM0NYSTgwRTlodlhoWC95U0pMMGtWZWEvUzdHdzRLaWdlRlhU?= =?iso-2022-jp?B?RlEzaHBKTFErbjJaZDBTQ1JPb0xiN1BlVFNGMVZLTGl3RGJIbzk5WFVK?= =?iso-2022-jp?B?ZVdMQk9BN1IzKzByWjE2VDV5eDN5MitPU004MWEx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SNm03elJDZ2JTS3M4amhpak5J?= =?iso-2022-jp?B?Q2VBSGMyUGVnQkk1bVdPQTVONDNVNEhWR1JuVjd2QlhJeWpDZU1ibWYz?= =?iso-2022-jp?B?Uk1FK3p1MDBoakoyUjl1dXNvRkpmU2FLWnRFTVZhMDBnQnZ3cm4rUnBY?= =?iso-2022-jp?B?am0xT3l3Vy9KQkE4cWNqL3hlSFl2M0tWVFFHN0V3OG0vUjl6RjdFN0th?= =?iso-2022-jp?B?b0hXeU1HTTk4U2o5b0duNms0clJWQnVsZkRseEcvM05CdThySG5YQ050?= =?iso-2022-jp?B?NndzanFET2FPaS9QT0ZwYUN5d3FxeDRVVlozeWhjZHJTUnUyRjcxU1A1?= =?iso-2022-jp?B?WUE1SEpvMmM0dnQyUXU4Z1Q4MStNVnRMd0s4dHJHVkorZzkxbm41dUxI?= =?iso-2022-jp?B?YkxJbkVJMk1xamk5cytza1lwS0ppQURRa3dCQS9sUzhCbS9xTkxKUWIx?= =?iso-2022-jp?B?QnErclNoUmNubG9VVEhYR3FKS0l2aHVZdUlLY2lZL3hOblFYeE9pakw0?= =?iso-2022-jp?B?NVdBZGxKUE5QU3B3TXRUSlZ0c0VwWktDQm92MG9rcEdpT1ljaEM1dDhw?= =?iso-2022-jp?B?c2RTUTE0b3UrdlU1WVN1dUY2VlZlb20yU0lucWx2RG1VbXh2RUpnVW9t?= =?iso-2022-jp?B?YmlzNzd2VHBuSlNEMEVzeGIycitjTC9OQmN1dHN5ZExDRmdyd05kdTFK?= =?iso-2022-jp?B?a1dvZlBYSWZ6Nm1tdC9vTWVMdTVnZkwrUG56L3dtQ3VFN0VpQ2Q3OTRm?= =?iso-2022-jp?B?djFMM0luaHhNTWZQNVVzSkQ3OUhOSTVMOXRTdVZ2TWN1NGU4dzk2WlBr?= =?iso-2022-jp?B?RW1lQQ==?= 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: ccfaf0f0-ccb3-43f6-994b-08db8281c733 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jul 2023 02:43:30.7401 (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: 3pmKu1m8g6QPmYl6/7HoztQue/JF+OK5YRALHHW+XJagfdoxipgr14RvoZi5u58OMfJ1/ZOjiUGpt8wtLysMqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5879 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 > -----Original Message----- > From: Abdullah Sevincer > Sent: 2023=1B$BG/=1B(B7=1B$B7n=1B(B9=1B$BF|=1B(B 0:24 > To: dev@dpdk.org > Cc: Pattan, Reshma ; > stephen@networkplumber.org; Sevincer, Abdullah > ; stable@dpdk.org > Subject: [PATCH v1] app/procinfo: revise display eventdev xstats >=20 > process_eventdev_xstats() function was iterating over eventdev_var[] > structure even if there is no eventdev present. > Revised the code to check to iterate and only look for the number of > eventdevs present in the system. Also, shortened function name to > eventdev_xstats(). >=20 > Coverity issue: 395458 > Fixes: 674bb3906931 ("app/procinfo: display eventdev xstats") > Cc: stable@dpdk.org >=20 > Signed-off-by: Abdullah Sevincer > --- Tested-by: Dukai Yuan