From: "Jan Beulich" Subject: Re: [PATCH v2 04/12] xenctx: Add stack address to dump, switch to 16 bytes per line. Date: Thu, 07 Nov 2013 08:12:44 +0000 Message-ID: <527B598C0200007800100793@nat28.tlf.novell.com> References: <1383768500-4245-1-git-send-email-dslutz@terremark.com> <1383768500-4245-5-git-send-email-dslutz@terremark.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 1VeKhz-00010T-1O for xen-devel@lists.xenproject.org; Thu, 07 Nov 2013 08:12:55 +0000 In-Reply-To: <1383768500-4245-5-git-send-email-dslutz@terremark.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Don Slutz Cc: Ian Campbell , Stefano Stabellini , George Dunlap , Don Slutz , Ian Jackson , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 06.11.13 at 21:08, Don Slutz wrote: Again - why? This makes it just two entries per line for a 64-bit guest. Pretty little I would say. Jan > From: Don Slutz > > Signed-off-by: Don Slutz > --- > tools/xentrace/xenctx.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/tools/xentrace/xenctx.c b/tools/xentrace/xenctx.c > index dabce16..a20281e 100644 > --- a/tools/xentrace/xenctx.c > +++ b/tools/xentrace/xenctx.c > @@ -640,7 +640,7 @@ static int print_code(vcpu_guest_context_any_t *ctx, int > vcpu) > return 0; > } > > -#define BYTES_PER_LINE 32 > +#define BYTES_PER_LINE 16 > > static int print_stack(vcpu_guest_context_any_t *ctx, int vcpu, int width) > { > @@ -663,6 +663,8 @@ static int print_stack(vcpu_guest_context_any_t *ctx, int > vcpu, int width) > int j = 0; > int k; > > + print_stack_word(stack, width); > + printf(":"); > while(stack < stack_limit && stack < stack_pointer(ctx) + > i*BYTES_PER_LINE) { > p = map_page(ctx, vcpu, stack); > if (!p) > -- > 1.7.1