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 E568D427F6; Tue, 21 Mar 2023 11:20:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A09040A7F; Tue, 21 Mar 2023 11:20:08 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id ADE2440A7A for ; Tue, 21 Mar 2023 11:20:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679394007; x=1710930007; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=0qFsB8we0iALHQ6LW69wlcEa8R0hBxcZEU0D2VcF8DE=; b=c8quZwa88pUtYnfyPUIH047CbxuoVE8GGzWDhrihBQMd2fR6nt34cyr3 6MlUselEarhMlzqtqfB2v3kHYZ7fXAzAPAC4b+0dzS7jkHP7H57qsRgeZ +sV6GzAdU8tn+uwS0XxCORUK4lCkCypohazgBnEU9vjDXDhZyQv6ChOg+ Aau8rZkGRI0jibNpUivoGsxttjevDSjYAAe2OWhQyWRQirpK1/seXQiwX pK1Jzr9rlYBmrSlEcUUbxyD5V9jdrlT1THY3UwqCGN59On5TZ3jmoZLMj N2Q0elX7CKcr2unLUdVHS9A+nRl/tu/P9+TAZtogadXSn9HoHzKiv+V1y g==; X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="336408880" X-IronPort-AV: E=Sophos;i="5.98,278,1673942400"; d="scan'208";a="336408880" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2023 03:20:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="681440045" X-IronPort-AV: E=Sophos;i="5.98,278,1673942400"; d="scan'208";a="681440045" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga002.jf.intel.com with ESMTP; 21 Mar 2023 03:20:05 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.21; Tue, 21 Mar 2023 03:20:05 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Tue, 21 Mar 2023 03:20:05 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.172) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Tue, 21 Mar 2023 03:20:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PUcjVgeRKLf/YuiH/1x7x90zZFdB3dm4YJigVeQA11ZcPoey+P1gtmNr+HccXlcUp9AVbQ+UlRblpSuDIE8iLoLwndweUV5bcn4MOhkS5OUsNe3sOVdMH7MWwd1hWGh/1xmv1+3g8jMuYKopdsooExhpTbFFsYP/4Bfa8knCRUN7SO9MWuwnNiJYRXEEs9eoMkK6zAkiu9JCpMrCPBIxahEsDLFPCHON6LtmL63OcdMRWgFMqXYkpf+gaFchnEHtIkeFv8f6WnvoMRVFxm+vGY6UUdfxoEM23QBI4tiiV1Ncv1b0tfsWnJQsjkqTbbdCtlGLFq1xLd5DkcNbKvHmog== 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=0qFsB8we0iALHQ6LW69wlcEa8R0hBxcZEU0D2VcF8DE=; b=h1Ij7nZFtvTWFcbWHp3AdOAYPKcW6PqK4LuPOpRkNM+YxVhj8SUuzjrv1x7zZAvciRMjTYKTddhddrLmvq7k7TTn2EDmIt/5gSKhZHW+vj91FXYayGJ4gc/Afa+sauMS4dvYUJz9yT0NHiVDLNyJ0kMIoTKmF/phdJGkLd+PcXz3dTutL5q7G2n6XhaQ+/1VDD1hH8pC+75vsX/nT0p9CFJ/WaKfsfk+FwzImb09ztJIbUDZUNkWGwQj+Rv0unoExATy/o9iUInyv/D6amh2PQQUPQur+O2Ggq1LR9WH+w8qmJHpjueq9ZlDMt1Qdz5rMPr7tY/eSTcJFihmwxn7JA== 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 BYAPR11MB3158.namprd11.prod.outlook.com (2603:10b6:a03:1c::29) by PH0PR11MB5808.namprd11.prod.outlook.com (2603:10b6:510:129::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 10:20:02 +0000 Received: from BYAPR11MB3158.namprd11.prod.outlook.com ([fe80::2f9c:a84e:88c9:e857]) by BYAPR11MB3158.namprd11.prod.outlook.com ([fe80::2f9c:a84e:88c9:e857%4]) with mapi id 15.20.6178.037; Tue, 21 Mar 2023 10:20:02 +0000 From: "Sevincer, Abdullah" To: "Pattan, Reshma" , "dev@dpdk.org" CC: "jerinj@marvell.com" Subject: RE: [PATCH v12] app/procinfo: display eventdev xstats Thread-Topic: [PATCH v12] app/procinfo: display eventdev xstats Thread-Index: AQHZWtL0DsVppEDyx0Go98FTxcCryK8D7V4AgAAP66CAAP6CgIAAChVg Date: Tue, 21 Mar 2023 10:20:02 +0000 Message-ID: References: <20230309185143.1006949-1-abdullah.sevincer@intel.com> <20230320022316.2298874-1-abdullah.sevincer@intel.com> In-Reply-To: Accept-Language: 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: BYAPR11MB3158:EE_|PH0PR11MB5808:EE_ x-ms-office365-filtering-correlation-id: a4746a21-7aad-4ef9-e179-08db29f5d544 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MQBhHy6fBQ8ODk3HMOMWXjTLxcd/yNcAm920UnXeClCyi4YuR58O7uDKTE+p5kymygwqFwZm9r0UQsIybogazBYQ1jjUjz8zt5Ylr+RLhQeTuAlHE4D2RbQ2BesR3OC1/4xUmbug12cgaJc6Pt+OptLZLo1fjP5/PBCEVKQaW2Uwcuzq5SxHuElq6ADb9RLTbfJksH4I9k3I5CxCQJHS77mhZU/07NYwt3qqVbg8iUiwCx6NgPiTaOXjidxuAoLps0kiRX6XTIZE/JbqLQdPp53EHwO6KGvjBbtjRghdyPBUhn2/KPugABdyNIqICIHMvHfiJDXhNA38pZp3ZfwejJ/LJG+6ZOYHa5l2QTG4yS5j6pJIVMiMkoXKHDDezhEfR0i/AIIf2nGQPCakeRajq1SW3IN9Voi+SXPeunIsF4n6TGW0TIYBg8OtkPB0TY7fjSNIi83B5d27u0Szx0Xbp2N34VH/ihTbhdkQTdYZutQ9yXcK3plwL58M/IfJAhheOXXD5PRZIvlK5+W4ybRE9b7TVgNAapljZ94ZSHhpeuwJ7pJ9tMtSBgPs4X3ALnagxxgvLuCgUc/tuIuIjolpwzvjgHcewMmjdxGPkLEtcajbFUz1jbdCZRrynWKUPDr5eM2LlT9E3PGwvaQjO05fa04m4/c0EvOUPX2X1CvAzI3gZsaSrQ/GIlWp9jGXC/f8uh4FGgW1nd6mbKDEABoQXg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3158.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(39860400002)(366004)(376002)(346002)(396003)(136003)(451199018)(41300700001)(4326008)(8676002)(66476007)(64756008)(66556008)(66946007)(76116006)(66446008)(2906002)(82960400001)(122000001)(55016003)(38070700005)(38100700002)(5660300002)(8936002)(52536014)(26005)(6506007)(7696005)(71200400001)(33656002)(9686003)(186003)(86362001)(110136005)(83380400001)(316002)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?tTls8F/dxI2EAVVMaUw3MqhfuEGbgl3dMIxWdMaLINb0+gfS0OeC97pLyQJj?= =?us-ascii?Q?kct0CEuK5ipq+MmqDvjf2CV4uvMwc/1Dxf92uhUCt3zugmo/Qzk8lclgy8XH?= =?us-ascii?Q?M329an6zuW+zgcL4JvNSLuzF/Jbu6BdSSk/xbj1Y4pXNQvGZ7Wg1AohfVloJ?= =?us-ascii?Q?HRftUQokxE3y3bnbJQ9Gl3JpuhcvV5KZA1gJUK1vEhMD/SRIhwbOKf/s+hl0?= =?us-ascii?Q?KZYRLVXHFuxJBdJfDKnzYSrN6NjV3AK1cYnJcfI3rylJdpR/Ga9u+pvaojdz?= =?us-ascii?Q?5LfJkU2lTwNNHEzL82M1Ly9NHEVrIWhAlNbz3sV5HlxXQcpaL7QGJsr9Uijx?= =?us-ascii?Q?8jY9IEnUIszSzRSQ/5bkjikPymayYnKiAua/XUeuK7MZA8KySzyPc65TiQGU?= =?us-ascii?Q?r21Mj1zlZrdk8M/L8XjGf1oWQmonv63cd7fKDrCmQSIuU5CG1w6vQn0UqDS5?= =?us-ascii?Q?BjqLDiBqVvx/+USfGToY6b6PhqVBIiMOSjPE7s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zI7K9cR3tIWVMS6NjHFtCjFqFrX8OGnQ6f+qadR+hS55z?= =?us-ascii?Q?t7MTjg6cn4pPYbL3PN2RsNX+s5VBe/Lq8hhLMSasBMYEyMmvC4GArZ7ocj9o?= =?us-ascii?Q?NDgLt8T8qqsQKR0bM6yWi6E8dMiSc5LWbD8nCvThODHCLlfwomHGGw2Db7oP?= =?us-ascii?Q?VHD1mvwoax7oE38VOvOMgdeEegjjAOyLFOeJpRA8YJoa8uBqRvMpS0U1RvqS?= =?us-ascii?Q?wg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3158.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4746a21-7aad-4ef9-e179-08db29f5d544 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Mar 2023 10:20:02.4688 (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: NIHHxrDhFB3j+QuvEe7o1qELtdJUrDlXfRqYv5etHCVdVj305RYhkeJkSGPtXVoQ1BWwN4uwJYBJ1n9psfoPpozcpk7ikCtjJgKDR4CJYc0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5808 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 >+Having structure like suggested not only help-s simple data handling but = also would help for the cases like below , where you need to maintain diffe= rent event ids in the code.=20 >+With the current patch version the below scenario is not possible as you = have only one global variable for the eventdev id which always holds the la= test evet id in the command , from below example evetdev id 2. >+Ex 1: Where you want to show queue 0 xstats of eventdev 2 and port0 xstat= s of eventdev 1 ./proc --show-evendev-port-xtstas=3D0:1 --show-evendev-queu= e-xsats=3D0:2 >+Thanks. >+Reshma Thanks Reshma, now I understood the point. The intent is only display one e= vent dev data with the same eventdev id being passed. Therefore I can chang= e the patch Passing another command line parameter --eventid and instead of taking two = parameters from --show-evendev-port-xtstas=3D0:1 just take the port number = (same for other command types). If no eventid is passed Eventid defaults to 0. If you want your approach of maintaining and displaying mix of more eventde= vs with different ids, your suggestion is the way to go. Let me know.