From: Wei Liu Subject: Re: [PATCH 5/7] xenalyze: disable sched_switch_process Date: Tue, 28 Apr 2015 04:16:16 +0100 Message-ID: <20150428031616.GA23012@zion.uk.xensource.com> References: <1430140936-31279-1-git-send-email-olaf@aepfle.de> <1430140936-31279-6-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1430140936-31279-6-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Wei Liu , Ian Campbell , Stefano Stabellini , George Dunlap , Ian Jackson , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, Apr 27, 2015 at 01:22:14PM +0000, Olaf Hering wrote: > It causes a crash, dump data and return early > > Signed-off-by: Olaf Hering > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Ian Campbell > Cc: Wei Liu > --- > tools/misc/xenalyze.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/misc/xenalyze.c b/tools/misc/xenalyze.c > index 0566d00..67b44b5 100644 > --- a/tools/misc/xenalyze.c > +++ b/tools/misc/xenalyze.c > @@ -7449,6 +7449,10 @@ void sched_switch_process(struct pcpu_info *p) > unsigned int prev_dom, prev_vcpu, next_dom, next_vcpu; > } * r = (typeof(r))ri->d; > > + printf(" %s __enter_scheduler prev d%uv%u new d%uv%u\n" > + ri->dump_header, ri->d[0], ri->d[1], ri->d[2], ri->d[3]); > + return; > + This doesn't look right. You skip all things below. Wei. > if(opt.dump_all) > printf("%s sched_switch prev d%uv%u next d%uv%u\n", > ri->dump_header,