From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v4 3/3] xentrace: Implement cpu mask range parsing of human values (-c). Date: Wed, 15 Apr 2015 13:26:45 +0100 Message-ID: <1429100805.15516.252.camel@citrix.com> References: <1428108183-28538-1-git-send-email-konrad.wilk@oracle.com> <1428108183-28538-4-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YiMP3-0008Je-39 for xen-devel@lists.xenproject.org; Wed, 15 Apr 2015 12:26:49 +0000 In-Reply-To: <1428108183-28538-4-git-send-email-konrad.wilk@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: george.dunlap@eu.citrix.com, ian.jackson@citrix.com, wei.liu2@citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Fri, 2015-04-03 at 20:43 -0400, Konrad Rzeszutek Wilk wrote: > Instead of just using -c 0x we can > also use: -c -, -c ,, or a > combination of them, or 'all' for all cpus. > > This new format can include just singular CPUs: -c , > or ranges without an start or end (and xentrace will figure out > the values), such as: -c - (which will include cpu0, cpu1, > and cpu2) or -c - (which will include cpu2 and up to MAX_CPUS). > > That should make it easier to trace the right CPU if > using this along with 'xl vcpu-list'. > > The code has been lifted from the Linux kernel, see file > lib/bitmap.c, function __bitmap_parselist. > > To make the old behavior and the new function work, we check > to see if the arguments have '0x' in them. If they do > we use the old style parsing (limited to 32 CPUs). If that > does not exist we use the new parsing. > > Signed-off-by: Konrad Rzeszutek Wilk > --- > [v4: Fix per George's review] > [v5: Redo per George's review] I'll leave final word on this one to George. (But, v5? title says v4, I'd say title was correct?)