Add xen-crashd.
v2 cover Add xen-crashd.
From: Don Slutz <[email protected]>
Subject was: Add xentrace/xen_crash
Changes from v1 to v2:
Rework to be closer to Xen "codeing standard".
Add a change to MAINTAINERS to list me as maintainer of xen-crashd.
Andrew Cooper:
Move out of xentrace, rename to xen-crashd.
Konrad Rzeszutek Wilk & David Vrabel:
Rework Copyright
Ian Campbell:
Add 1st pass on some documention on crash's remote protocol.
Don Slutz (2):
xen-crashd: Connect crash with domain
MAINTAINERS: Add xen-crashd maintainer
.gitignore | 1 + MAINTAINERS | 5 + docs/misc/crash-remote.txt | 190 ++++++++++ tools/Makefile | 1 + tools/xen-crashd/Makefile | 29 ++ tools/xen-crashd/xen-crashd.8 | 48 +++ tools/xen-crashd/xen-crashd.c | 833 ++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 1107 insertions(+) create mode 100644 docs/misc/crash-remote.txt create mode 100644 tools/xen-crashd/Makefile create mode 100644 tools/xen-crashd/xen-crashd.8 create mode 100644 tools/xen-crashd/xen-crashd.c
Signature · 1 line
1.8.4
PATCH v2 1/2 xen-crashd: Connect crash with domain
From: Don Slutz <[email protected]>
This allows crash to connect to a domU. Usage:
usage: /usr/lib/xen/bin/xen-crashd <domid> [<optional port>]
xen-crashd 1&
crash localhost:5001 /usr/lib/debug/lib/modules/3.8.11-100.fc17.x86_64/vmlinux
The domU will be paused while crash is connected. Currently the code exits when crash disconnects.
Important: The domain running crash must be the same architecture as the domU. Like both x86_64. Also the crash version must be new enough to understand the domU's kernel. If the kernel version are different, additional arguments maybe need to get crash to work. Best results will be had using the same version of linux while running crash as the domU is running.
--- .gitignore | 1 + docs/misc/crash-remote.txt | 190 ++++++++++ tools/Makefile | 1 + tools/xen-crashd/Makefile | 29 ++ tools/xen-crashd/xen-crashd.8 | 48 +++ tools/xen-crashd/xen-crashd.c | 833 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 1102 insertions(+) create mode 100644 docs/misc/crash-remote.txt create mode 100644 tools/xen-crashd/Makefile create mode 100644 tools/xen-crashd/xen-crashd.8 create mode 100644 tools/xen-crashd/xen-crashd.c
.gitignore +1 -0
@@ -279,6 +279,7 @@ tools/xentrace/xentrace_setsize tools/xentrace/tbctl tools/xentrace/xenctx tools/xentrace/xentrace +tools/xen-crashd/xen-crashd tools/xm-test/ramdisk/buildroot tools/xm-test/aclocal.m4 tools/xm-test/autom4te
docs/misc/crash-remote.txt new file +190 -0
190 lines not on this page · raw message
tools/Makefile +1 -0
@@ -25,6 +25,7 @@ SUBDIRS-$(CONFIG_NetBSD) += xenbackendd SUBDIRS-y += libfsimage SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen SUBDIRS-$(CONFIG_Linux) += libvchan +SUBDIRS-$(CONFIG_Linux) += xen-crashd # do not recurse in to a dir we are about to delete ifneq "$(MAKECMDGOALS)" "distclean"
tools/xen-crashd/Makefile new file +29 -0
@@ -0,0 +1,29 @@ +XEN_ROOT=$(CURDIR)/../.. +include $(XEN_ROOT)/tools/Rules.mk + +CFLAGS += -Werror -g -O0 + +CFLAGS += $(CFLAGS_libxenctrl) +LDLIBS += $(LDLIBS_libxenctrl) + +LIBBIN = xen-crashd + +.PHONY: all +all: build + +.PHONY: build +build: $(BIN) $(LIBBIN) + +.PHONY: install +install: build + [ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR) + [ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)$(PRIVATE_BINDIR) + +.PHONY: clean +clean: + $(RM) *.a *.so *.o *.rpm $(BIN) $(LIBBIN) $(DEPS) + +xen-crashd: xen-crashd.o + $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) $(APPEND_LDFLAGS) + +-include $(DEPS)
tools/xen-crashd/xen-crashd.8 new file +48 -0
48 lines not on this page · raw message
tools/xen-crashd/xen-crashd.c new file +833 -0
833 lines not on this page · raw message
Signature · 1 line
1.8.4
PATCH v2 2/2 MAINTAINERS: Add xen-crashd maintainer
In reply to Don SlutzFrom: Don Slutz <[email protected]>
--- MAINTAINERS | 5 +++++ 1 file changed, 5 insertions(+)
MAINTAINERS +5 -0
@@ -345,6 +345,11 @@ F: xen/include/xsm/ F: xen/xsm/ F: docs/misc/xsm-flask.txt +XEN CRASHD +M: Don Slutz <[email protected] +S: Supported +F: tools/xen-crashd/ + THE REST M: Keir Fraser <[email protected]> L: [email protected]
Signature · 1 line
1.8.4
While testing the my new changes to crash (soon to be posted), I found some bugs with v2 of the code. I have attached the v3 of patch #1. Also a patch to convert v2 to v3.
-Don Slutz
Quoted 26 lines · Don Slutz
From: Don Slutz <[email protected]>
Subject was: Add xentrace/xen_crash
Changes from v1 to v2:
Rework to be closer to Xen "codeing standard".
Add a change toMAINTAINERSto list me as maintainer of xen-crashd.
Andrew Cooper:
Move out of xentrace, rename to xen-crashd.
Konrad Rzeszutek Wilk & David Vrabel:
Rework Copyright
Ian Campbell:
Add 1st pass on some documention on crash's remote protocol.Don Slutz (2):
xen-crashd: Connect crash with domain
MAINTAINERS: Add xen-crashd maintainer.gitignore | 1 + MAINTAINERS | 5 + docs/misc/crash-remote.txt | 190 ++++++++++ tools/Makefile | 1 + tools/xen-crashd/Makefile | 29 ++ tools/xen-crashd/xen-crashd.8 | 48 +++ tools/xen-crashd/xen-crashd.c | 833 ++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 1107 insertions(+)
Quoted 7 lines
create mode 100644
docs/misc/crash-remote.txtcreate mode 100644tools/xen-crashd/Makefilecreate mode 100644tools/xen-crashd/xen-crashd.8create mode 100644tools/xen-crashd/xen-crashd.cFrom
b8e95de2cf06f3aff67a46d4675d4b818ef8741cMon Sep 17 00:00:00 2001
From: Don Slutz <[email protected]>
Date: Mon, 18 Nov 2013 17:31:20 -0500
Subject: [PATCH v3 0/2] Add xen-crashd.
Changes from v2 to v3:
Fixup NIL handling.
FAILMSG has errno not just an error code. convert_to_phys should return 0 on error, not 0-4095 Add support for TYPE and /dev/xenmem.
Add support "PAGESIZE NIL" (new crash feature, may change). Update doc.
Subject was: Add xentrace/xen_crash
Changes from v1 to v2:
Rework to be closer to Xen "codeing standard".
Add a change to MAINTAINERS to list me as maintainer of xen-crashd.
Andrew Cooper:
Move out of xentrace, rename to xen-crashd.
Konrad Rzeszutek Wilk & David Vrabel:
Rework Copyright
Ian Campbell:
Add 1st pass on some documention on crash's remote protocol.
Don Slutz (2):
xen-crashd: Connect crash with domain
MAINTAINERS: Add xen-crashd maintainer
.gitignore | 1 + MAINTAINERS | 5 + docs/misc/crash-remote.txt | 190 +++++++++ tools/Makefile | 1 + tools/xen-crashd/Makefile | 32 ++ tools/xen-crashd/xen-crashd.8 | 48 +++ tools/xen-crashd/xen-crashd.c | 891 ++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 1168 insertions(+) create mode 100644 docs/misc/crash-remote.txt create mode 100644 tools/xen-crashd/Makefile create mode 100644 tools/xen-crashd/xen-crashd.8 create mode 100644 tools/xen-crashd/xen-crashd.c
Signature · 1 line
1.7.11.7
Quoted 1 line
From
2edef80bf562bfb3ae098dad313a8814d173d525Mon Sep 17 00:00:00 2001
From: Don Slutz <[email protected]>
Date: Thu, 14 Nov 2013 17:20:28 -0500
Subject: [PATCH v3 1/2] xen-crashd: Connect crash with domain
This allows crash to connect to a domU. Usage:
usage: /usr/lib/xen/bin/xen-crashd <domid> [<optional port>]
xen-crashd 1&
crash localhost:5001 /usr/lib/debug/lib/modules/3.8.11-100.fc17.x86_64/vmlinux
Note: "crash localhost:5001,/dev/mem" and
"crash localhost:5001,/dev/xenmem" are now supported, the 2nd version needs a newer version of crash to work. This 2nd is to change crash from live mode to pasued (almost crashed) mode.
The domU will be paused while crash is connected. Currently the code exits when crash disconnects.
Important: The domain running crash must be the same architecture as the domU. Like both x86_64. Also the crash version must be new enough to understand the domU's kernel. If the kernel version are different, additional arguments maybe need to get crash to work. Best results will be had using the same version of linux while running crash as the domU is running.
--- .gitignore | 1 + docs/misc/crash-remote.txt | 190 +++++++++ tools/Makefile | 1 + tools/xen-crashd/Makefile | 32 ++ tools/xen-crashd/xen-crashd.8 | 48 +++ tools/xen-crashd/xen-crashd.c | 891 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 1163 insertions(+) create mode 100644 docs/misc/crash-remote.txt create mode 100644 tools/xen-crashd/Makefile create mode 100644 tools/xen-crashd/xen-crashd.8 create mode 100644 tools/xen-crashd/xen-crashd.c
.gitignore +1 -0
@@ -279,6 +279,7 @@ tools/xentrace/xentrace_setsize tools/xentrace/tbctl tools/xentrace/xenctx tools/xentrace/xentrace +tools/xen-crashd/xen-crashd tools/xm-test/ramdisk/buildroot tools/xm-test/aclocal.m4 tools/xm-test/autom4te
docs/misc/crash-remote.txt new file +190 -0
190 lines not on this page · raw message
tools/Makefile +1 -0
@@ -25,6 +25,7 @@ SUBDIRS-$(CONFIG_NetBSD) += xenbackendd SUBDIRS-y += libfsimage SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen SUBDIRS-$(CONFIG_Linux) += libvchan +SUBDIRS-$(CONFIG_Linux) += xen-crashd # do not recurse in to a dir we are about to delete ifneq "$(MAKECMDGOALS)" "distclean"
tools/xen-crashd/Makefile new file +32 -0
@@ -0,0 +1,32 @@ +XEN_ROOT=$(CURDIR)/../.. +include $(XEN_ROOT)/tools/Rules.mk + +CFLAGS += -Werror -g -O0 + +CFLAGS += $(CFLAGS_libxenctrl) +LDLIBS += $(LDLIBS_libxenctrl) + +LIBBIN = xen-crashd +MAN8 = $(wildcard *.8) + +.PHONY: all +all: build + +.PHONY: build +build: $(BIN) $(LIBBIN) + +.PHONY: install +install: build + [ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR) + $(INSTALL_DIR) $(DESTDIR)$(MAN8DIR) + [ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)$(PRIVATE_BINDIR) + $(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR) + +.PHONY: clean +clean: + $(RM) *.a *.so *.o *.rpm $(BIN) $(LIBBIN) $(DEPS) + +xen-crashd: xen-crashd.o + $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) $(APPEND_LDFLAGS) + +-include $(DEPS)
tools/xen-crashd/xen-crashd.8 new file +48 -0
48 lines not on this page · raw message
tools/xen-crashd/xen-crashd.c new file +891 -0
891 lines not on this page · raw message
Signature · 1 line
1.7.11.7
Quoted 1 line
From
2539676df46f7a9297e1ebd781f9bb0b51afb0c5Mon Sep 17 00:00:00 2001
From: Don Slutz <[email protected]>
Date: Sat, 16 Nov 2013 18:28:02 -0500
Subject: [PATCH 3/3] xen-crashd: v2 to v3 bug fixes
Fixup NIL handling.
FAILMSG has errno not just an error code. convert_to_phys should return 0 on error, not 0-4095 Add support for TYPE and /dev/xenmem.
Add support "PAGESIZE NIL" (new crash feature, may change). Update doc.
--- docs/misc/crash-remote.txt | 14 +++---- tools/xen-crashd/Makefile | 3 ++ tools/xen-crashd/xen-crashd.8 | 48 ++++++++++++++++++++++ tools/xen-crashd/xen-crashd.c | 94 ++++++++++++++++++++++++++++++++++--------- 4 files changed, 134 insertions(+), 25 deletions(-) create mode 100644 tools/xen-crashd/xen-crashd.8
docs/misc/crash-remote.txt +7 -7
@@ -59,12 +59,16 @@ Command notes: MACHINE_PID: Return the <MACHINE_TYPE> that crash understands and <server_pid>. + For Xen the server_pid is returned as 0. OPEN: - Currently only /dev/mem, /dev/kmem, and /dev/vmem are supported. The return is: + Currently only /dev/mem, /dev/kmem, and /dev/vmem are supported. + The return is: OPEN filename fid O_RDONLY filesize + Note: only read access is supported. + CLOSE: Not currently supported.
@@ -78,17 +82,13 @@ READ_LIVE: physical one. The return is also special in that it starts with either FAIL or - DONE, a space and a 7 digit error code (fail) or a 7 digit length + DONE, a space and a 7 digit errno (fail) or a 7 digit length of data. Since the max size is one page the 7 digit number should not overflow. For DONE, right after the 7 digit number the raw data starts for <length> bytes. If any part of the data is not mappable, the whole request fails. - The defined error code are: - 1: Transfer too big. - 2: Failed to map starting address. - 3: Failed to map ending address. - 4: Failed to convert virtual address to physical address. + errno is from #include <errno.h> PROC_VERSION:
tools/xen-crashd/Makefile +3 -0
@@ -7,6 +7,7 @@ CFLAGS += $(CFLAGS_libxenctrl) LDLIBS += $(LDLIBS_libxenctrl) LIBBIN = xen-crashd +MAN8 = $(wildcard *.8) .PHONY: all all: build
@@ -17,7 +18,9 @@ build: $(BIN) $(LIBBIN) .PHONY: install install: build [ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR) + $(INSTALL_DIR) $(DESTDIR)$(MAN8DIR) [ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)$(PRIVATE_BINDIR) + $(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR) .PHONY: clean clean:
tools/xen-crashd/xen-crashd.8 new file +48 -0
48 lines not on this page · raw message
tools/xen-crashd/xen-crashd.c +76 -18
191 lines not on this page · raw message
Signature · 1 line
1.7.11.7
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 2 lines · Don Slutz
Ian Campbell:
Add 1st pass on some documention on crash's remote protocol.
My concern with this was that we were using some sort of internal crash protocol which has no ABI stability guarantees etc. Documenting it in the Xen tree doesn't really do anything to alleviate that concern. It should be a protocol which is published by the crash folks not us. Ideally they would agree to some sort of protocol stability level, or maybe you can show that the protocol had inbuilt backward and forward compatibility capabilities already?
Even more concerning is [0] where one of the crash maintainers says:
Quoted 3 lines
It's been deprecated for almost 10 years now. I don't understand how you have been able to even get it to build, never mind work as the mail thread indicates?
We surely don't want to be adding code which relies on a protocol which has been deprecated for 10 years!
Daniel K asked about gdbsx -- can that not speak to crash somehow? Or run on /proc/vmcore directly, or be extended to do so?
Ian.
[0]
http://thread.gmane.org/gmane.linux.kernel.crash-dump.crash-utility/4714/focus=4736
Quoted 8 lines · Ian Campbell
Quoted 2 lines · Don Slutz
Ian Campbell:
Add 1st pass on some documention on crash's remote protocol.My concern with this was that we were using some sort of internal crash protocol which has no ABI stability guarantees etc. Documenting it in the Xen tree doesn't really do anything to alleviate that concern. It should be a protocol which is published by the crash folks not us.
I have no issues with this. The only documentation I can find is:
http://people.redhat.com/anderson/crash_whitepaper/
Quoted 3 lines
Ideally they would agree to some sort of protocol stability level, or maybe you can show that the protocol had inbuilt backward and forward compatibility capabilities already?
It may not have the best backwards and forwards compatibility that could be designed. However so far I have been able to add features to a newer crash that have no issues with older "crashd" servers. And older crash code works fine with the newer "crashd" servers. This is not the 1st one of these I have coded, just the 1st that I can release.
Quoted 6 lines
Even more concerning is [0] where one of the crash maintainers says:
Quoted 3 lines
It's been deprecated for almost 10 years now. I don't understand how you have been able to even get it to build, never mind work as the mail thread indicates?
We surely don't want to be adding code which relies on a protocol which has been deprecated for 10 years!
The main reason that I know of is that crash in active mode (i.e. running live on machine A), is just so much simpler to use that using a remote crash on machine B talking to a crashd on machine A. This is because the crashd on machine A is in "live" mode. This means that slow or unresponsive systems cannot be examined using the remote protocol. And keeping the right kernel versions on machine B that you need is just overhead.
With all this in mind, I was not surprised that it had been deprecated for 10 years. However with Xen in the mix, the machine A no longer needs to be active to run "crashd", in fact it can be paused, or running, or crashed, or shutdown, etc.
Quoted 1 line
Daniel K asked about gdbsx -- can that not speak to crash somehow?
It is clearly possible to write a remote crash to remote gdb server, but needing to run 2 servers to connect up crash is to me too complex. I could also embed the xen-crashd code in gdbsx by adding command line options. However very little code would be shared. Since I based xen-crashd off of xenctx, it currently uses libxc calls. gdbsx uses ioctl() directly to do the hyper calls. It does not appear to support physical addresses. It does not appear to support virtual address to physical address conversion. Quoteing from the crash whitepaper:
Furthermore, to examine the contents of a live system's kernel internals from user space, the only readily available option has been to use gdb on /proc/kcore. While gdb is an incredibly powerful tool, it is designed to debug user programs, and is not at all "kernel-aware". Consequently, using gdb alone has limited usefulness when looking at kernel memory, essentially constrained to the printing of kernel data structures */if/* the vmlinux file was built with the -g C flag, the disassembly of kernel text, and raw data dumps.
Quoted 2 lines
Or
run on/proc/vmcoredirectly, or be extended to do so?
There is no /proc/vmcore in this case. Extending dom0 linux to provide /proc/1/vmcore, /proc/2/vmcore, etc. (I.E. /proc/<domid>/vmcore) would be a big change and designing a security model for these would also not be quick.
Maybe this will help:
[root@dcs-xen-54 tmp]# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 2048 8 r----- 3928.9 P-1-0 1 3080 1 -b---- 18.0
[root@dcs-xen-54 tmp]# /usr/lib/xen/bin/xen-crashd 1&
[1] 1447
[root@dcs-xen-54 tmp]# 2 Dec 13 11:38:01.042 socket ready on port 5001 after 1 bind call
[root@dcs-xen-54 tmp]# crash --machdep phys_base=0x200000 localhost:5001 /usr/lib/debug/lib/modules/2.6.18-128.el5/vmlinux
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.
2 Dec 13 11:38:08.917 Accepted a connection.
WARNING: daemon cannot access /proc/version
NOTE: setting phys_base to: 0x200000
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: /usr/lib/debug/lib/modules/2.6.18-128.el5/vmlinux
DUMPFILE: /dev/mem@localhost (remote live system)
CPUS: 1
DATE: Mon Dec 2 11:37:02 2013
UPTIME: 00:33:11
LOAD AVERAGE: 0.01, 0.00, 0.00
TASKS: 81
NODENAME: P-1-0.TC5.CloudSwitch.com
RELEASE: 2.6.18-128.el5
VERSION: #1 SMP Wed Jan 21 10:41:14 EST 2009
MACHINE: x86_64 (2400 Mhz)
MEMORY: 3 GB
PID: 0
COMMAND: "swapper"
TASK: ffffffff802eeae0 [THREAD_INFO: ffffffff803dc000]
CPU: 0
STATE: TASK_RUNNING (ACTIVE) crash> net
NET_DEVICE NAME IP ADDRESS(ES)
ffffffff80321e80 lo 127.0.0.1 ffff8100babd9000 eth1 172.16.64.65 ffff8100b6c96000 sit0
crash> q
[1]+ Done /usr/lib/xen/bin/xen-crashd 1
Is almost the same as:
[root@dcs-xen-54 tmp]# xl dump-core 1 p-1-0.vmore
[root@dcs-xen-54 tmp]# crash p-1-0.vmore /usr/lib/debug/lib/modules/2.6.18-128.el5/vmlinux
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: /usr/lib/debug/lib/modules/2.6.18-128.el5/vmlinux
DUMPFILE: p-1-0.vmore
CPUS: 1
DATE: Mon Dec 2 11:05:09 2013
UPTIME: 00:01:18
LOAD AVERAGE: 2.00, 0.70, 0.24
TASKS: 81
NODENAME: P-1-0.TC5.CloudSwitch.com
RELEASE: 2.6.18-128.el5
VERSION: #1 SMP Wed Jan 21 10:41:14 EST 2009
MACHINE: x86_64 (2400 Mhz)
MEMORY: 3 GB
PANIC: ""
PID: 0
COMMAND: "swapper"
TASK: ffffffff802eeae0 [THREAD_INFO: ffffffff803dc000]
CPU: 0
STATE: TASK_RUNNING (ACTIVE)
WARNING: panic task not found crash> net
NET_DEVICE NAME IP ADDRESS(ES)
ffffffff80321e80 lo 127.0.0.1 ffff8100babd9000 eth1 172.16.64.65 ffff8100b6c96000 sit0
crash> quit
With the changes in crash 7.0.4 (yet to be released), crash can be invoked in a remote "not live" mode, which is how it runs on a vmcore file.
So if a DomU is paused, "xl dump-core;crash" and"xen-crashd;crash" will give the exact same answers in a lot less real time (xen-crashd case).
-Don Slutz
Quoted 6 lines
Ian.
[0]
http://thread.gmane.org/gmane.linux.kernel.crash-dump.crash-utility/4714/focus=4736
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 18 lines · Ian Campbell
Quoted 2 lines · Don Slutz
Ian Campbell:
Add 1st pass on some documention on crash's remote protocol.My concern with this was that we were using some sort of internal crash protocol which has no ABI stability guarantees etc. Documenting it in the Xen tree doesn't really do anything to alleviate that concern. It should be a protocol which is published by the crash folks not us. Ideally they would agree to some sort of protocol stability level, or maybe you can show that the protocol had inbuilt backward and forward compatibility capabilities already?
Even more concerning is [0] where one of the crash maintainers says:
Quoted 3 lines
It's been deprecated for almost 10 years now. I don't understand how you have been able to even get it to build, never mind work as the mail thread indicates?
Quoted 5 lines
We surely don't want to be adding code which relies on a protocol which has been deprecated for 10 years!
Daniel K asked about gdbsx -- can that not speak to crash somehow? Or run on
/proc/vmcoredirectly, or be extended to do so?
Based on the interface concerns, I'm taking it you think this is probably not 4.4 material at this point?
-George