WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Crash-utility] Re: [Xen-devel] crash can't analyze memory dumpfile

To: "Discussion list for crash utility usage, maintenance and development" <crash-utility@xxxxxxxxxx>
Subject: Re: [Crash-utility] Re: [Xen-devel] crash can't analyze memory dumpfile of Xen
From: Itsuro ODA <oda@xxxxxxxxxxxxx>
Date: Mon, 06 Oct 2008 12:08:32 +0900
Cc: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 05 Oct 2008 20:08:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <48E61460.5090404@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20081003143824.21CA.ODA@xxxxxxxxxxxxx> <48E61460.5090404@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

It is a good point. 
Thank you for your suggestion.

Itsuro Oda

On Fri, 03 Oct 2008 08:47:28 -0400
Dave Anderson <anderson@xxxxxxxxxx> wrote:

> Itsuro ODA wrote:
> > Hi,
> > 
> > I found the root cause of this problem is that the value of "PERCPU_SHIFT"
> > was changed to 13 from 12.
> > 
> > The quick workaround is to apply the following patch to the crash command:
> > ----------------------------------------------------------------------
> > --- xen_hyper_defs.h.org        2008-10-03 14:46:28.000000000 +0900
> > +++ xen_hyper_defs.h    2008-10-03 14:46:50.000000000 +0900
> > @@ -134,7 +134,7 @@
> >  #endif
> > 
> >  #if defined(X86) || defined(X86_64)
> > -#define XEN_HYPER_PERCPU_SHIFT 12
> > +#define XEN_HYPER_PERCPU_SHIFT 13
> >  #define xen_hyper_per_cpu(var, cpu)  \
> >         ((ulong)(var) + (((ulong)(cpu))<<XEN_HYPER_PERCPU_SHIFT))
> >  #elif defined(IA64)
> > ------------------------------------------------------------------------
> > 
> > I need to think the backword compatibility. I wonder how to determine
> > the value of "PERCPU_SHIFT". The change of "PERCPU_SHIFT" was made at
> > a certain point of xen-unstable before xen-3.3 release. The xen version
> > number (3.3) can't use as key... I will consider more...
> 
>  From the crash utility perspective, and looking at the RHEL5 xen sources
> where these hypervisor definitions exist:
> 
>    #define PERCPU_SIZE (1UL << PERCPU_SHIFT)
> 
>    static void __init percpu_init_areas(void)
>    {
>        unsigned int i, data_size = __per_cpu_data_end - __per_cpu_start;
>        unsigned int first_unused;
> 
>        BUG_ON(data_size > PERCPU_SIZE);
> 
> during initialization you could calculate the difference between the
> __per_cpu_data_end and __per_cpu_start symbol values, and if it's more
> than the original 4k size (12), then it must be 13.
> 
> Dave
> 
> --
> Crash-utility mailing list
> Crash-utility@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/crash-utility

-- 
Itsuro ODA <oda@xxxxxxxxxxxxx>


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>