mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
This tool reads the CPU save records, overwrites RIP with a bogus value, and then restores them. This is, of course, not guaranteed to crash the guest (since the CPUs may not be executing in kernel at the time) but it's good for breaking into some tight loops that would be hard to debug otherwise. Signed-off-by: Paul Durrant <paul.durrant@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
61 lines
1.7 KiB
Makefile
61 lines
1.7 KiB
Makefile
XEN_ROOT=../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
CFLAGS += -Werror
|
|
|
|
INCLUDES += -I $(XEN_XC)
|
|
INCLUDES += -I $(XEN_LIBXC)
|
|
INCLUDES += -I $(XEN_INCLUDE)
|
|
CFLAGS += $(INCLUDES)
|
|
|
|
HDRS = $(wildcard *.h)
|
|
|
|
TARGETS-y := xenperf xenpm xen-tmem-list-parse gtraceview gtracestat xenlockprof xenwatchdogd
|
|
TARGETS-$(CONFIG_X86) += xen-detect xen-hvmctx xen-hvmcrash
|
|
TARGETS-$(CONFIG_MIGRATE) += xen-hptool
|
|
TARGETS := $(TARGETS-y)
|
|
|
|
SUBDIRS-$(CONFIG_LOMOUNT) += lomount
|
|
SUBDIRS-$(CONFIG_MINITERM) += miniterm
|
|
SUBDIRS := $(SUBDIRS-y)
|
|
|
|
INSTALL_BIN-y := xencons
|
|
INSTALL_BIN-$(CONFIG_X86) += xen-detect
|
|
INSTALL_BIN := $(INSTALL_BIN-y)
|
|
|
|
INSTALL_SBIN-y := xm xen-bugtool xen-python-path xend xenperf xsview xenpm xen-tmem-list-parse gtraceview gtracestat xenlockprof xenwatchdogd
|
|
INSTALL_SBIN-$(CONFIG_X86) += xen-hvmctx xen-hvmcrash
|
|
INSTALL_SBIN-$(CONFIG_MIGRATE) += xen-hptool
|
|
INSTALL_SBIN := $(INSTALL_SBIN-y)
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
.PHONY: build
|
|
build: $(TARGETS)
|
|
set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d; done
|
|
|
|
.PHONY: install
|
|
install: build
|
|
$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
|
|
$(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
|
|
$(INSTALL_PYTHON_PROG) $(INSTALL_BIN) $(DESTDIR)$(BINDIR)
|
|
$(INSTALL_PYTHON_PROG) $(INSTALL_SBIN) $(DESTDIR)$(SBINDIR)
|
|
set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d install-recurse; done
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) *.o $(TARGETS) *~ $(DEPS)
|
|
set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
|
|
|
|
%.o: %.c $(HDRS) Makefile
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
xen-hvmctx xen-hvmcrash xenperf xenpm gtracestat xenlockprof xen-hptool xenwatchdogd: %: %.o Makefile
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenguest) $(LDFLAGS_libxenstore)
|
|
|
|
gtraceview: %: %.o Makefile
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CURSES_LIBS)
|
|
|
|
-include $(DEPS)
|