From: Don Slutz <dslutz@verizon.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
George Dunlap <george.dunlap@eu.citrix.com>,
Don Slutz <Don@CloudSwitch.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Don Slutz <dslutz@verizon.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH] Add xentrace/xen_crash.
Date: Tue, 15 Oct 2013 12:26:14 -0400 [thread overview]
Message-ID: <525D6CA6.3050905@terremark.com> (raw)
In-Reply-To: <1381852054.21901.44.camel@kazak.uk.xensource.com>
[-- Attachment #1.1: Type: text/plain, Size: 3474 bytes --]
On 10/15/13 11:47, Ian Campbell wrote:
> On Tue, 2013-10-15 at 11:25 -0400, Don Slutz wrote:
>>> Is this some protocol defined by crash? Can you include a reference to
>>> their specification somewhere please. Is it intended for consumption
>>> externally to the crash tools -- i.e. is it a stable protocol? (it
>>> smells a bit ad-hoc is why I'm asking).
>> So far I have not found a specification. Will keep looking. I had
>> assumed it was, will work with the crash tools person to see.
> Thanks.
>
>>> If it's not intended to be consumed like this perhaps the tool would be
>>> better off living in the crash source base?
>> Maybe. Since this has code that needs the XEN headers and crash is
>> currently one program with extension modules, it does not fit as well there.
> I had it in my mind that crash already had some level of Xen support and
> therefore already dependended on the headers. I don't know why I think
> that so it may be a fantasy.
Crash does have support for XEN crash dumps. I do not think it supports
live access to the hypervisor (crash live on dom0 allows you to look at
dom0, not the hypervisor). Most of the data structures are fetched out
of the debug info in ELF files. So to build crash, xen does not need to
be installed.
For example:
dcs-xen-50:~/dump2>crash vmcore xenrpm/boot/xen-syms-4.2.2
crash 6.1.4
Copyright (C) 2002-2013 Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation
Copyright (C) 1999-2006 Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited
Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011 NEC Corporation
Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.
This program is free software, covered by the GNU General Public
License,
and you are welcome to change it and/or distribute copies of it under
certain conditions. Enter "help copying" to see the conditions.
This program has absolutely no warranty. Enter "help warranty" for
details.
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...
KERNEL: xenrpm/boot/xen-syms-4.2.2
DUMPFILE: vmcore
CPUS: 8
DOMAINS: 5
UPTIME: --:--:--
MACHINE: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz (2400 Mhz)
MEMORY: 32 GB
PCPU-ID: 0
PCPU: ffff82c4802bff18
VCPU-ID: 0
VCPU: ffff8300bf2fa000 (VCPU_RUNNING)
DOMAIN-ID: 0
DOMAIN: ffff830823fb6000 (DOMAIN_RUNNING)
STATE: CRASH
crash> quit
> Don't these extension modules have all sorts of random dependencies? In
> which case adding the Xen ones doesn't seem too horrible, assuming they
> are smart enough to only enable the ones whose dependencies are
> available.
I think that they do, but not sure. The ones I have looked at are ways
to process the data in a dump in a more easy way for a user to use.
Since this is changing the way that crash gets to the data, I know of no
way to do it as an extension module.
> Ian.
>
-Don Slutz
[-- Attachment #1.2: Type: text/html, Size: 5685 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-10-15 16:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-14 14:07 [PATCH] Add xentrace/xen_crash Don Slutz
2013-10-14 14:11 ` Don Slutz
2013-10-14 15:03 ` Andrew Cooper
2013-10-15 14:53 ` Don Slutz
2013-10-14 15:13 ` Ian Campbell
2013-10-15 15:25 ` Don Slutz
2013-10-15 15:47 ` Ian Campbell
2013-10-15 16:26 ` Don Slutz [this message]
2013-10-14 16:56 ` David Vrabel
2013-10-15 14:50 ` Don Slutz
2013-10-23 17:24 ` Konrad Rzeszutek Wilk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=525D6CA6.3050905@terremark.com \
--to=dslutz@verizon.com \
--cc=Don@CloudSwitch.com \
--cc=Ian.Campbell@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).