From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH v4 3/3] xentrace: Implement cpu mask range parsing of human values (-c). Date: Thu, 23 Apr 2015 09:31:24 -0400 Message-ID: <20150423133124.GA2569@l.oracle.com> References: <1428108183-28538-1-git-send-email-konrad.wilk@oracle.com> <1428108183-28538-4-git-send-email-konrad.wilk@oracle.com> <1429100805.15516.252.camel@citrix.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 1YlHE4-0005aH-Ul for xen-devel@lists.xenproject.org; Thu, 23 Apr 2015 13:31:33 +0000 Content-Disposition: inline In-Reply-To: <1429100805.15516.252.camel@citrix.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: Ian Campbell 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 Wed, Apr 15, 2015 at 01:26:45PM +0100, Ian Campbell wrote: > 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. OK. George, I just reposted this one under v4.1 without any changes (see http://lists.xen.org/archives/html/xen-devel/2015-04/msg02702.html). Please review this one or the other one. > > (But, v5? title says v4, I'd say title was correct?) > >