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 6EFC6A0C41; Wed, 15 Sep 2021 12:50:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 35C314003F; Wed, 15 Sep 2021 12:50:01 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 2FABD4003C for ; Wed, 15 Sep 2021 12:49:59 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10107"; a="209375241" X-IronPort-AV: E=Sophos;i="5.85,295,1624345200"; d="scan'208";a="209375241" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2021 03:49:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,295,1624345200"; d="scan'208";a="516339166" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga001.jf.intel.com with ESMTP; 15 Sep 2021 03:49:58 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 15 Sep 2021 03:49:57 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 15 Sep 2021 03:49:57 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Wed, 15 Sep 2021 03:49:57 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.108) 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.2242.12; Wed, 15 Sep 2021 03:49:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UtFeS0NNGkzcJoeEKjI4vL+Rc/MRsVKMV0w+rewlQfd66TWW111NPnchGMK2SaKqaK3cb+m3rvjF3LNEOjobe1svh4M1asEB+j9pj4HFnc/TO/0lTKYfL9dnhH+dz+Bghf8/8okbcNjpyizPKOxAcQF6fDGoU09U6/Il0jtF0bm5sroCesMF19ERB4fpeefGWN9vrZdNu/ipcwtYmxt1f/UqKfosIV5bukWKl0x7ifPSjPvo0phrwL+X9EeJpck08Ug4xAPlo5Bszf2ulp1v99VKJ7F9h6eJ1Z8u6Mp93MbTSLy2szWp5WuaX04ocBlfHZEA5g+Vr8GmnC/n4xkRtg== 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; bh=xdLwOgJGulK2FwCRbjSv1eTmnGpCyi45bIhpAjchUEw=; b=kppXRv6C+2Qfztolb4MH+kUXi84oDnuM7Y267ClHkZWJeAWp31Rj/DneiAClnQ29Y0ynEktMCLli9fye3wjEsXdQEFeEVbC1M8Z0vk0LUGBpBBYXOfVpuLWgLhRt9KTe/1ZduuiCMqDcPGKX37/5upEitsEnRjzrm9jI+on676BssvH8D2MapN4FDL+pgXd7fYsE6vxEhLAGhMl2P3IlLwyOSxTHdwbaoUP/CBehZCPI/DIObyMqPPjcn31M7vLymDLbpzL2wAocmvvmIRr4FyQkUIn542vW8p3SXU2O1GYSvcBhiDs55Xl2NiRdyEL+Cfzu2ZmCDVBVkReHlR258Q== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xdLwOgJGulK2FwCRbjSv1eTmnGpCyi45bIhpAjchUEw=; b=aSg+Pmh8YCqdJgruEQ9rOfe2TG9gN291WFVOfa43LHA/yQB37wAf2O8roQa5+4DMfYesct/YOg0Qx1BDqRz+TYlNRdF3mThEXhq+sYhDF7gdssiNZjcpussEZeD1ckF+G1PS7xN+jRWZm1QcAVC/4q2litDAcacvNZEIoBX3LS0= Received: from MN2PR11MB3821.namprd11.prod.outlook.com (2603:10b6:208:f7::24) by MN2PR11MB3999.namprd11.prod.outlook.com (2603:10b6:208:154::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.17; Wed, 15 Sep 2021 10:49:55 +0000 Received: from MN2PR11MB3821.namprd11.prod.outlook.com ([fe80::304c:39f1:9d95:4ba2]) by MN2PR11MB3821.namprd11.prod.outlook.com ([fe80::304c:39f1:9d95:4ba2%6]) with mapi id 15.20.4523.014; Wed, 15 Sep 2021 10:49:55 +0000 From: "Power, Ciara" To: "Richardson, Bruce" , "Hunt, David" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v1] usertools/telemetry: add non-interactive mode Thread-Index: AQHXpZNKuFVJsnvWVk2CFA6jEo4+SauhzTWAgAAC7ICAAyK0gA== Date: Wed, 15 Sep 2021 10:49:54 +0000 Message-ID: References: <20210909155625.24581-1-david.hunt@intel.com> In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.200.16 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0b4f41e1-4ee4-4713-a2aa-08d978368dbf x-ms-traffictypediagnostic: MN2PR11MB3999: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SU3D2fVa1bA4Qw5FHqazF5Kd4ltXQ2OeNoHqkMn+X3sGArHqlURKEU1P4GlSrL/2bOepR03NJILIeZIbQd3kskBH9Ztr9+uElMnLTfbq0txkbOqFixc8/wYqvA7Zq0WNBCBoKobWovQF7ftmmE+tk3NGE1X56r8eAw7UcSoqvhqqOM7FfPUD/oFyvysuS8tL4XquTYFoUTZFkS0bFQjtbdOOo0rAdrR1X2wx72IqWHe0f610H4pHnYKnN0bmCXV+sjaStg1zjf9LD1HWIpO4/pJNot8j7ghMrCZLbCLotusVExpMof6UOus01d0AL7Bfuy0Uud70Gvp6FO7hFtGB1NyfnB3rHpSOVcStTEYS868ZNWRl0U0xOI4nisHUISMDegWfvYs1ON3jkynGkDmrY148ViSoxwfuuxYA+gOZDFylTUb0lACO/EV9R3GaHDZ9j/uZ/Dp9b/+zckwy2/zQWNnHQKcVBjK80IUkcl9KCUHcqdRrvbo5rB691uborDDICe8ZJHaSZdeOcvdB+9eH0KAUA8CaYPV1MTKZ5g464+n3VTh1JMmnITb9TjazuI2pTWgiOmnYbaTRyO0OCASbO1VirQudC6kFBOUf8uyF3vLMQGywlvE7KPde3CsMA2UIJ46D5gGnnqgeb2LR09IIpE1LxZ0Keakq08zr37EVG9mfHulWC4c/9bPV9Ux+UGaZjav2HhKqJyuPnEtA30heCK2uxcVEjcYkR9npGnTt5FlENmEb4h0O/d8fOAmClRB81Ya9g+2WcVX/QMpVWlhpFrRXBfOdPA/dNpsjsD+6E6Y= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB3821.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(376002)(136003)(366004)(346002)(52536014)(8676002)(38070700005)(7696005)(4326008)(6506007)(478600001)(9686003)(66476007)(66556008)(76116006)(71200400001)(66946007)(2906002)(66446008)(83380400001)(966005)(110136005)(122000001)(5660300002)(64756008)(6636002)(38100700002)(186003)(86362001)(55016002)(316002)(33656002)(8936002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TuST6hqZOcXgZiQMpKpwPt2hzNsih4nystX2cynzeZ30hzdBW734tOcw5tmH?= =?us-ascii?Q?yfUZMpYNytKsoQBqNBXixt8R5nkfSeQZybrFzbYo+k0K7dEt5AVpaNgGp35P?= =?us-ascii?Q?/rq3mPVj2uxCsZxkgv6T76ls3HCCJrRe3RJpmEo8rg3cSN+ttepA4XfmJCyT?= =?us-ascii?Q?lI+WD6JSvw/wBffuVhvLvYwGoxsWeuyWvCNB4QZLl08O3IP5Tn79yI2enBZu?= =?us-ascii?Q?dwQxvmWFUo/tO9MBICEm+ajh9iaM6dCAO4XuCsCI+NYgU3V9So9tqzH2fKLF?= =?us-ascii?Q?PfPmLCyZLYeXZq7ZujywwDnpmBLfopi05cMOIBF+cwtnxvKflKaO/3zpd/2D?= =?us-ascii?Q?N4+rbCU9Jo7R4hP2ATET2iYQXe2B4GX7x5wTzSd79I5b4OVE8vHi8MFSd0aF?= =?us-ascii?Q?1miSa5xLFfYDwdxicwWJTM0PqWjxkH504Uix0KBbAgIvDSyza9rhBqmlD8Bj?= =?us-ascii?Q?sf9HX3bjjxmvxPWgggErL9GMuXXbVhRt5pEqzZE/LUBlu/hZkIoTt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AkdLZBB2Ypw?= 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: MN2PR11MB3821.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b4f41e1-4ee4-4713-a2aa-08d978368dbf X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Sep 2021 10:49:55.0399 (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: Q4hSbKADo+pFOHtESpNC1qJ9FsKekVVe/9W8SGUARn/VzEVQnUNpw+VklC9QMAMBfmJUAJGl8WBVHrYci4Fn+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3999 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v1] usertools/telemetry: add non-interactive mode 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 Sender: "dev" Hi Dave, >-----Original Message----- >From: Richardson, Bruce >Sent: Monday 13 September 2021 11:54 >To: Hunt, David >Cc: dev@dpdk.org; Power, Ciara >Subject: Re: [dpdk-dev] [PATCH v1] usertools/telemetry: add non-interactiv= e >mode > >On Mon, Sep 13, 2021 at 11:43:25AM +0100, Bruce Richardson wrote: >> On Thu, Sep 09, 2021 at 04:56:25PM +0100, David Hunt wrote: >> > Add non-interactive mode to dpdk-telemetry.py so that a query string >> > can be supplied on the command line, and script dumps out data and >> > exits. Handing for calling from scripts. >> > >> > Signed-off-by: David Hunt >> > --- >> Hi Dave, >> >> I'm not sure I like the use of "-q" for adding a query mode - it's >> more a shortcut parameter for a "quiet" mode. If I may, I'd suggest an >> alternative approach here might be to improve support for piping the >> input commands to the script instead so that you can do e.g. >> >> "echo /ethdev/stats,0 | dpdk-telemetry.py" >> >> and have that work well in a script. >> >> I'll do up a patchset for improving that and upstream it for feedback. >> > >Now at: http://patches.dpdk.org/project/dpdk/list/?series=3D18867 > >/Bruce Thanks for this, although I do think the improvement to allow for piping is= a better solution. I have acked Bruce's patchset, hopefully that will be suitable for your use= case. Thanks, Ciara