[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Patch][RFC] Support "xm dump" (is Re:[Xen-devel]Re:[Patch]Enable"sysrq c" handler for domU coredump)


  • To: "Akio Takebe" <takebe_akio@xxxxxxxxxxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Graham, Simon" <Simon.Graham@xxxxxxxxxxx>
  • Date: Fri, 4 Aug 2006 09:58:25 -0400
  • Delivery-date: Fri, 04 Aug 2006 06:59:14 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Aca3rP2tdjG93quxQ5qZc0ws/0qA1QAH492g
  • Thread-topic: [Patch][RFC] Support "xm dump" (is Re:[Xen-devel]Re:[Patch]Enable"sysrq c" handler for domU coredump)

> BTW, I try to make your xendump.c, but cannot compile it.
> Could you post the Makefile?
> I'd like to use your xendump.

I actually build this out of tree along with some other utilities so the
Makefile wont be a lot of use to you. However, the
relevant sections (mostly taken from tools/console/Makefile btw) are
attached.

Having said that, if you are going to add an 'xm dump' command, I think
it should be done by modifying the xend Python code
rather than building an external C program (I wish I'd thought of this!)

Simon

------Makefile extract------

XEN_ROOT=<path to top of xen tree>

include $(XEN_ROOT)/tools/Rules.mk

CFLAGS  += -Werror -g
CFLAGS  += -I $(XEN_XC)
CFLAGS  += -I $(XEN_LIBXC)
CFLAGS  += -I $(XEN_XENSTORE)
LDFLAGS += -L $(XEN_LIBXC)
LDFLAGS += -L $(XEN_XENSTORE)

BIN = xendump

.PHONY: build

build: $(BIN)

%: %.c
        $(CC) $(CFLAGS) $(LDFLAGS) -lxenctrl -l xenstore -o $@ $<

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.