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 9CABEA0C41; Wed, 15 Sep 2021 12:58:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 61D334003F; Wed, 15 Sep 2021 12:58:29 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id CAE134003C for ; Wed, 15 Sep 2021 12:58:27 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10107"; a="222326324" X-IronPort-AV: E=Sophos;i="5.85,295,1624345200"; d="scan'208";a="222326324" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2021 03:58:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,295,1624345200"; d="scan'208";a="452488089" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga002.jf.intel.com with ESMTP; 15 Sep 2021 03:58:26 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx604.amr.corp.intel.com (10.18.126.84) 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:58:26 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx608.amr.corp.intel.com (10.18.126.88) 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:58:26 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx604.amr.corp.intel.com (10.18.126.84) 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:58:26 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.171) 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:58:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ha2M0UNbkzGcxJzY3wG4iO3T5T5UTAgBvIkdc0mJlP5xaF3GPu0cCTCuVj1AV6/CVLXuVkiWr1WH9KTP4CW68rFgX2riUD+0qkpmzs4OAyIEWzWlDxxDYRBPGk2Ahd7ldNpVJRCxRKZ8KKnm2ZexgIsoexnPCMmVK7tW/dhAps2pzbuXo2TiMEPeA8n0DZN+8efuNj+4ouzOk6OSLfpYsMMbS29j/WfEXJgZDhA5xpJCF820ZtlSm6aysWH0VX3ijde+Mbq18p7MFX8vhOIJJvTh/NnLkGa8pLuW1esFh+nJffl9mZXR4qr3Bs3guH9Sjqr7DBRilCw9YO9mtdIOmA== 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=ttIgGu+xu/TXcAq5l76GDZo1z5P+aO9V5Yi3PhUHKno=; b=HaykVuO2XQ0wku5S2IbAtaS/MaP9gzqHUsbS8vUerxYScEgANpYnCQdL0yTV/mCBXCPlJkX55dKkwmfLT6wmP9A+C+hWGZTbsm6SuiaemprhVsLRpkonsgmHx3w7Zd0NlZYLZ6F3kKI71GFSN0MrsOP+R8b4V16pK/tAW4cRsIDmHBwTsMZHdJLapBIE65cdX4f0bQbyGFiinxEDk1C/q6cBURu7ZoOb1iIYW5A2RFOL8xYdOA/SdaT2yVnh1808O1BwyuMkKm+Giwwr1IfVkRwj5nYlM4i672AEF2MTR5amjo6uAihkgceVXtjCs4RDHqoM0uz8lmyxhrHaAHeqeA== 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=ttIgGu+xu/TXcAq5l76GDZo1z5P+aO9V5Yi3PhUHKno=; b=jwLG+9JNMluzGgtZvMWDKgMnbJ5aww83fQOJW+bx+T8xWEz9Y6yPXLIV5WjHY8XlzDYC47Nlm/RS0GC3mXAUQDvK93Fzlv2rblk2LnZGDm+VbE6uoVg5XNvl217tT8E4F+p1Q0804mc8QfPC50QjPl2UMneaTgSEiYmOOo4aKWw= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5047.namprd11.prod.outlook.com (2603:10b6:510:3c::18) by PH0PR11MB5144.namprd11.prod.outlook.com (2603:10b6:510:3e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Wed, 15 Sep 2021 10:58:23 +0000 Received: from PH0PR11MB5047.namprd11.prod.outlook.com ([fe80::a495:76aa:e576:1281]) by PH0PR11MB5047.namprd11.prod.outlook.com ([fe80::a495:76aa:e576:1281%4]) with mapi id 15.20.4523.014; Wed, 15 Sep 2021 10:58:23 +0000 To: "Power, Ciara" , "Richardson, Bruce" CC: "dev@dpdk.org" References: <20210909155625.24581-1-david.hunt@intel.com> From: David Hunt Message-ID: <9aec8f74-27c4-7bdb-9244-99ddc2b84fd3@intel.com> Date: Wed, 15 Sep 2021 11:58:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.14.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-ClientProxiedBy: DB6P193CA0002.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::12) To PH0PR11MB5047.namprd11.prod.outlook.com (2603:10b6:510:3c::18) MIME-Version: 1.0 Received: from [10.4.11.161] (95.45.23.115) by DB6P193CA0002.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14 via Frontend Transport; Wed, 15 Sep 2021 10:58:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9d7ae820-0b8e-4975-a8be-08d97837bccf X-MS-TrafficTypeDiagnostic: PH0PR11MB5144: 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:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ycPEpqCI+D8oEbP4psu/1zjbsG+QN6/H6vgkbl5LVGIFKaoE4DmLaLV0dhVAMlJ0/MSgUbkNpooWwfifEb+aVCqnDWh90xTJ39h0PqTrNKxPrhFK8Ulx2SenSiNfH54X43azxbIqS8+EaakdQtHvqHO8zgSXr3aZDjP6kWMUYgxXLT5z/RQtcZTj6KqLivkiMsMN3pIUsUcyvv/hDlUvwhsM+hFRv0Ms9KXNy9OvkTtLzjMPxUY2mIre7MyqiTQ6EmNq2LlU4r+i/5FruzfZ7r9rhur/ErmkOZrxzx00/Kf/2tZBDu9v//cRsq1KPUc1a4Zbemyvo4HZ5LYP8bQT2cbG6EYQMKLX4AhUFmgruXSG05PWIqF4bQWPmXCuR+WwMOTGMzf64mwW4THVETeH8ZSu0N7Qw++usggsF2jWT49vmiI2e2ZeXFE/n+FUYGJSuFbNpkUgdoD19X/guyoiBklbw2A2IR30fjxyCqODSNHpxaf5F79YCKyEXXSj+mXjy9TdrlQpFKRDUpe73m5Bjvp06muuBKc5FakkRJAXWODtd/p/cLyAOhfX61fDm0wOeABVyKgsCKvxktsWu5YOKCXO9iHt8fSABTyRjDCz3qtl3SWATOA6tUUftCefBT4X8gQfYzxhHR1SKL4FZtrUP9cCRsrws+986p/l5/NdCujt6kf+1Me9oAiKa+MgrdiuCUPqJLN3m75tadgTwJ+OSwVC/TXM2feXjOLPvNieEbFdwj9VqCxhTdHtONj8cM8DcAL0QDj3/jreEFZ/7LsmQIg7KehTWZr8+rdaKtAJfpDlGEg2SM7Jk1GUVSOrsr+7 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5047.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(316002)(6486002)(16576012)(66556008)(186003)(66476007)(44832011)(31686004)(966005)(4326008)(8676002)(86362001)(83380400001)(110136005)(53546011)(508600001)(66946007)(26005)(36756003)(2906002)(8936002)(6636002)(956004)(2616005)(38100700002)(5660300002)(31696002)(6666004)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MUlnQ3E2b1VjcGxjTHo3cVluOTcwdTJIaHkwN1pRYjR2RWs0TTh6SDN6dEZr?= =?utf-8?B?RW13cWRNV0tOMFBlMzVjalNzY2ZzT3ZXUEplM0l2U2JwVnUyVVZjc2RBZXI5?= =?utf-8?B?WUpDWFNjS012N0l3NUlRd01wSDR2bWZYY3FWVlRpZW1vc2V4NFNHZ0F2L2dC?= =?utf-8?B?UVVKVGd0SjhzUHZFZUE4Sy9hNXJpUkw0WVg3Z0FyNmhzOWJPUjBNcmFQbEN3?= =?utf-8?B?cFErRDFIbnFDU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?T051dTJ0c25zTmE5eVRVeklhcXZITmVGOXhINTNYS2pWSGNtMXpqUWJVTnVz?= =?utf-8?B?dEhNb1dQSXpFaVg1bE5hTVNFdVlxUTdzeWNPbmVSajRPSDhOM2R5VFVua2dE?= =?utf-8?B?TzdlNFU5d2VLMmMveFh2QXN6VDF4MU1zUDl2WnZseVVmaDBHZmRTRGxwNUVQ?= =?utf-8?B?emMzcm1LSURLZkxoeTVHRWF2d2NTKzY4TXpUdTBWemF5RkpvMW5pWVNzdEQr?= =?utf-8?B?RXNwR2hpZFZVSkpWN0pVdnNxdExycXFQTFVDMnhvR3NKRDVJRkwxM1NWa09L?= =?utf-8?B?bnFtT29JZm5JWWxMSm5oNzFsNE94WUtkMEFnT1IwNkY1QVJkOW4yUnR2TURR?= =?utf-8?B?WVdab1NDVTdxbGlhL3NEbFNoaFNFUTZtUlllbk1ZYkswVmQ5aXlWOExVL2Zh?= =?utf-8?B?ZnduMi85TXBJZUFIWFJSMXkwR1FwVnJsckNKUmdxU0NrY3lMQ2N5NTYwQUZX?= =?utf-8?B?Rnl4cHo3QWNJbWl2S2Zwa3lMaVFpaytJT2djcUl0TWhGekJOZG9aWU5VeDNZ?= =?utf-8?B?SFBvUk4vOFJQVVF0a1NCa1ZIMHF2T3dBeCs1dGx4a01ISnErYkora0VramtT?= =?utf-8?Q?5jnDXQqoEK8tps4WPT5jUSEStrJT7ea/jJXsdYp?= X-MS-Exchange-CrossTenant-Network-Message-Id: 9d7ae820-0b8e-4975-a8be-08d97837bccf X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5047.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2021 10:58:23.7279 (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: LwBB2id+pEjnS/6LJ+jzwFHhkNJ+sn+1iiXwy3Y2F1oJrhM4LkRLvgaqRYHHetVWQRY5nQYmdG+lOENPk6jwkw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5144 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" On 15/9/2021 11:49 AM, Power, Ciara wrote: > 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-interactive >> 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=18867 >> >> /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 +1 I'll mark my patchset as superceeded. Rgds, Dave.