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 6555A42E4D for ; Wed, 12 Jul 2023 04:43:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5A209406BA; Wed, 12 Jul 2023 04:43:40 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 91EDC4068E for ; Wed, 12 Jul 2023 04:43:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689129818; x=1720665818; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Ol4dsrNdOwqJ6ONrHeAjfs2n/ej58AUDykhb0OCNXCA=; b=bSlELLyId2gGgvBXw5y0nAE5fGWi72lPCc8DBhCfDRj42nPOowhkzp7g 3uLcDD1B853GJ36xjnR9NmHEnOhqpzn6OQeuV28j2WONzTtttmRJmeuXj hk50RUfDq60+nP9TNOPFUZwy/e3RtB4R+IJW1S9mbNAJLom06upWbB1nB ZPlWpVtMz7j1yommovXwWWz1bpKkkJwQWUEx2bIHkdoePtDyk0COdbily xYaE2Sv+1TySbHIFT6EzodHvKI31oGXY8ONi71+goPeGgkoMsysCDdgw4 K3wpxNnMmEkGicIrWzS9OvRW/fmkR+wZTmTMGhG/gnCbpi4hKWHq3y8tT A==; X-IronPort-AV: E=McAfee;i="6600,9927,10768"; a="363648479" X-IronPort-AV: E=Sophos;i="6.01,198,1684825200"; d="scan'208";a="363648479" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2023 19:43:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10768"; a="721328497" X-IronPort-AV: E=Sophos;i="6.01,198,1684825200"; d="scan'208";a="721328497" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga002.jf.intel.com with ESMTP; 11 Jul 2023 19:43:35 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX602.amr.corp.intel.com (10.22.229.15) 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:35 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx612.amr.corp.intel.com (10.22.229.25) 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:35 -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 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?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p?B?U2xmTFE4WmcwZHcwZ3gyeDExd2d6WmFSNm03elJDZ2JTS3M4amhpak5J?= =?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==?= arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X5dySeBfnOxtuNxjzd7YWk7JAoSmzvsXyrxAxQj7a+KhdMthEjnL2Oerq5Snq3jL3TxUvlC/wsoJwoZtKQRaOse8sgWn+EPzT4Rce9Tg4jf8T3urJRx2lj6WB2pCjeuUFnRRQhWHtmV0io0aaN6+YTHcUITvyjCTC2EVHljWdInDcduOet+dwkahymf4+Jr8B+EbQEUmBK42xBVwLk32pqakufAmvXf3jKvNE+iWSCrdpGX1m6HcJDzUxNg4swPYP5c+0A4BtaTmwr8cOeSaNFVpCGRKlfCr8ZvXUhzE1omhp09/DJdYQqtSid2gyoWAgQ1FK+d9Dvz2sdv9rcGOMQ== 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=cooGFYlwjcGyTk6oc4j9bbK547lWBPjFsPakm7WGUug=; b=e+VZoICYLoESPFPjtjmXLp1hHoh6Bvu4yOuUKnxwKMd715//EtAa5rCH2qSDaJ8YF51zVlcowYsZdH+BRiaOf/8lkhidjmBar9i865boyvbMqa+Qpz3ZWSL/c5h6Tsiqf43+p9QNlAX14lDOG9wrr8R/Wmlv0VlAnqTPPT9BAFIE35+rw4FTzYoss/DQInzgzrnaQea0TiaWiFHsjheLoVivO5h7IYqJJsPauEz1MvFy6ACgSwX+wcnaM7eiCK1ipP9haQUjQQGKg7FehN8cCp/cZbzzd43Nwn5j7iAD5h0qJpEfFHqQTMMXl2rHIQCrEATJN7xjyL9oi84QMwU/uQ== 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 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 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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 > > 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(). > > Coverity issue: 395458 > Fixes: 674bb3906931 ("app/procinfo: display eventdev xstats") > Cc: stable@dpdk.org > > Signed-off-by: Abdullah Sevincer > --- Tested-by: Dukai Yuan