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 8AF9C439B6; Wed, 24 Jan 2024 14:31:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 03E87402A8; Wed, 24 Jan 2024 14:31:13 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 758484026F for ; Wed, 24 Jan 2024 14:31:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706103071; x=1737639071; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=8YG4FCIRUaCqQZxiauHM4s71xn+nY4hiTb2ntqNWa8A=; b=UESDO9rKMelix8pED2qseHIOI3yIoGxGH0arRhoOZolLBxdfhIrSMoFe 8QxyQICdspfVD+czUQGEFlk+frAUWQHIRYkjVX6NvS3up2I1OHeZnmGik HQKmswyOlOlRQnLEviPsxPANEupfG3hqmRDufljqg9EtPRwokbVH6a/TN qVwHoLoxVnq0iHvB4h8E44fMtGuELYweRgzHVj18HsD+lHB03pm/NAct6 9D1YkGFjkL/WeHGSKm9d0uOTUdkyR1BFUO+MFGtyx78GRLdIJRxgSSCxx Xe0yMK0Ll8TgCap0jNYKFs75vH9QdzGvU2PbwbTGQJOhe/LojF+SBZnZn A==; X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="20397140" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="20397140" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2024 05:31:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="1117619468" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="1117619468" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga005.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 24 Jan 2024 05:31:09 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 24 Jan 2024 05:31:09 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 24 Jan 2024 05:31:09 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Wed, 24 Jan 2024 05:31:09 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.100) 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.2507.35; Wed, 24 Jan 2024 05:31:09 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CPkJ3YaaA3blgygsnTXxCNtjksvvC+KYwpTcKuw/+0Ke/WR/VQ987SB4wY7KmEj15bdktfc8KOwKnqcc99Uh+eUouOGyOB+iVh7cBUcEzeupK5RQqr2iPPCMnbdso708iHIdUSyzPU09KTC9rvF32E9oQbAKtGYDJi1tcAjC28/AeE2M+rDB1rNkNEeCzBqAbFOdY4s0ZBoKnc7JyihmnApbI7qGNa/8fUI2HrlpItVhGiyriAqCECD1BxkWrW2q7T3HJ3jg7FXDWtrvqxMlRTqcLaj/d/VPpdKSMXBocqe+RcJUjwqm/fMZ81aZ0PxYDOGySLDYEW1dwEYQ5T+ApQ== 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=H6eU17EawstV8XznnLVy/8dvO7vsCCQYM9WJMPkadTQ=; b=NuDcR4HGniv5H2CQHSjAg84/icGNas0MQaCOP4uNCIiBFKEe81sXwkw5+ThGvPxvjW0Vwhp+cU2y+Jj4XcNcNf3PjWaeP5Mi+NUgLuhGAuL5LTT5D7z+C5zwHK4O+uHYf9xtLy6lIEsUxSulRqe74MIm8caAYHOhMScN9yVL87y0sVkD6AKft5YH0FeQnCmgKZSq9Y5Gq3Tl0Ob+kTGejgrAgoWWS5zcQrh7++XPLzVhmR7FSLdqYz+2i6bR/MSF61DYMNx9tF/7OALVbeVQ5jI2TAPFq+rYj3GHVUk1e/rNL/EgCBXOAjYC5Q8xcHFyffnwzx/tGgN+roX/hnFP1g== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by SN7PR11MB7067.namprd11.prod.outlook.com (2603:10b6:806:29a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.24; Wed, 24 Jan 2024 13:31:07 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::df88:b743:97f8:516c]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::df88:b743:97f8:516c%5]) with mapi id 15.20.7202.035; Wed, 24 Jan 2024 13:31:07 +0000 Date: Wed, 24 Jan 2024 13:31:02 +0000 From: Bruce Richardson To: Morten =?iso-8859-1?Q?Br=F8rup?= CC: , Thomas Monjalon Subject: Re: [PATCH v4 1/8] arg_parser: new library for command line parsing Message-ID: References: <20231215172632.3102502-1-euan.bourke@intel.com> <20231215172632.3102502-2-euan.bourke@intel.com> <98CBD80474FA8B44BF855DF32C47DC35E9F190@smartserver.smartshare.dk> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35E9F190@smartserver.smartshare.dk> X-ClientProxiedBy: DU2PR04CA0182.eurprd04.prod.outlook.com (2603:10a6:10:28d::7) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|SN7PR11MB7067:EE_ X-MS-Office365-Filtering-Correlation-Id: 12050f11-827d-4a35-731d-08dc1ce0b89b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AiR8E8rw5QFEzGFpb+sCmw6Naa4BOz2YnUO/d3GEdZHiefQiXxPrk+yi0IVof+nZaI2fZyiMTZtq2L36KFJvqqmNre1CAWXd4/9wm1vnj+666+CJSp+fd9e5zfDe8w85g8So8eP3ViaYhghy3tj+rihv8Dvivs3yF/heJBgUe/kMqdgnx6aHD3NWkZ6SyOjlIoQNxkSCwazB2xUMnpN/eUpZcHsc8Tdg+0A35qtYdIzjIitFvu345vYIbev4zpjDlStKCcVfak0dsdNVrD3qZa8YdnVYRNZGYHCGYJ6tfVAeIHUV8w9uabcd1+xuNZpdID7KUB+gOiB2/Fx423tLwuSC6b4SdoItU9xwJliJRuOF11kkT1Kxmz/AhwKEmHKX2MgMavfmtuXQOkwIvXj8H7m02KsYx2xfEXyPJ2lGi11Zgw/Mm1MIEjmRfe8sCa35SyJbmXg0q/XV78q5jWgA91/hViIe6PvaS06nsItkn9hOhqSeZ0XFwdjUG2+VR6uTmBpiar06MipckmwnA6vbpJWW7HV3/xQGdWmSgqgEqEwOk8jyzHllG2P7Fy9O88V6 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(346002)(136003)(376002)(366004)(396003)(230922051799003)(451199024)(64100799003)(186009)(1800799012)(6512007)(26005)(38100700002)(6486002)(4326008)(44832011)(8676002)(5660300002)(8936002)(2906002)(478600001)(4744005)(6506007)(66556008)(66476007)(6666004)(6916009)(66946007)(316002)(41300700001)(82960400001)(86362001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?mZo5fTEEIqJnL5S8Ews+f2QmtiJC0tdWQF5a9iZEHTtoUinuUYf01TXpKI?= =?iso-8859-1?Q?5YJI4CM6f4gdEPcsG7KfkDap5wjayZDFse+6seR/8QkG4vlTdkwkZIzpW7?= =?iso-8859-1?Q?Rt5FgMHoOYUk+2zcnw++LCnTSz4SUwN91YQ5wx70/OCbOvd6BdLtNf6z+u?= =?iso-8859-1?Q?knvjbNBXgTdIDMZV+ol8kxPPbLzzidOS7h7lC0t9RySBE3aBAgfnbnY4aH?= =?iso-8859-1?Q?8iYFXxQMWFb3Kjaytymk+P0RzPLId16O7x9YyoIbaUNfMG/qExuce6kUao?= =?iso-8859-1?Q?wWLZGVivST1ppp6y7HW06mWi4hsiWXEYdHYX+4sQ64FBFEVOGwcRYBYpYP?= =?iso-8859-1?Q?QrP+1aQgQzdqa0yhTBOmw+g3XvhI0bh5kjt0uog5ULCkAK759B7sFoENDU?= =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C7TVfuuBKPjhAfSxUDVtafDvhQ19F?= =?iso-8859-1?Q?eTG9mx4+lTldKZQEy1y/DrgssZMxmLqrWIw32apNKw+EmnbZ+VjgY9ETpR?= =?iso-8859-1?Q?0l5VjV2X3gf0A5ZjE+Day4acBszey4RLuTbu0LdbRO2P58gDjWdfouinM+?= =?iso-8859-1?Q?6ym+ImE6fkTi8ITAQ+8Mwpmmu++7N1VGJ1befbrPyj87okSk5PelarONJc?= =?iso-8859-1?Q?rSBjeElllKYX4+rb9VY/p2SA+mw7n8abo2AEcrSjUZFavsBbYLFcSCdOwV?= =?iso-8859-1?Q?sjiJ3GUSjgqRl+ZQQ2jUIc+rP6FyZAV6pnr6lPUxp3dH47ltAjeHb2MINy?= =?iso-8859-1?Q?3z3LUb0h4gJ8llI8Xdb54HtZtoE/bRyCkIfxCl/JQjRhJ9J6p9w57N7Q?= =?iso-8859-1?Q?=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 12050f11-827d-4a35-731d-08dc1ce0b89b X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2024 13:31:07.6042 (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: 5+09GdmxqltOUVNtq78jN7OPRHQrnZvukAmZfTq6Gta0PSOpnzUZ5F6jCVBXc0Fnjb+0g0HsJGkWH8EI+JdXco/sZQtqd9Ec4ZHoiWjC2kU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB7067 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 On Wed, Jan 24, 2024 at 02:16:13PM +0100, Morten Brørup wrote: > > From: Euan Bourke [mailto:euan.bourke@intel.com] > > Sent: Friday, 15 December 2023 18.26 > > > > Add a new library to make it easier for eal and other libraries to > > parse > > command line arguments. > > > > The first function in this library is one to parse a corelist string > > into an array of individual core ids. The function will then return the > > total number of cores described in the corelist. > > > > Signed-off-by: Euan Bourke > > --- > > It would be nice if the library supported open-ended ranges, i.e. "-3" meaning all available cores up to and including 3, and "3-" meaning all available cores from 3 and up. > Yes, that could be a useful enhancement. For now these functions are just based off what is already implemented in EAL, with minimal enhancements. /Bruce