aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xentrace/Makefile
diff options
context:
space:
mode:
authorIan.Campbell@xensource.com <Ian.Campbell@xensource.com>2005-12-22 14:33:19 +0000
committerIan.Campbell@xensource.com <Ian.Campbell@xensource.com>2005-12-22 14:33:19 +0000
commit40924689a9e86c301ebad2e6394ea359ec47b59f (patch)
treed2e6a25ae5d5c8948d474f5d2e6bd51b5d438515 /tools/xentrace/Makefile
parent4f27f31a471d94f55a39bc9a3eb02ca777112f59 (diff)
downloadxen-40924689a9e86c301ebad2e6394ea359ec47b59f.tar.gz
xen-40924689a9e86c301ebad2e6394ea359ec47b59f.tar.bz2
xen-40924689a9e86c301ebad2e6394ea359ec47b59f.zip
Add support to xenctx for printing stack traces on x86_32 and x86_64.
To support this add xc_translate_foreign_address to libxc. This function walks page tables and translates virtual addresses using a given domain and vcpu page table. Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
Diffstat (limited to 'tools/xentrace/Makefile')
-rw-r--r--tools/xentrace/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/xentrace/Makefile b/tools/xentrace/Makefile
index 5c3a77be83..cbe2d3a600 100644
--- a/tools/xentrace/Makefile
+++ b/tools/xentrace/Makefile
@@ -15,25 +15,29 @@ HDRS = $(wildcard *.h)
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
BIN = xentrace tbctl setsize
+LIBBIN = xenctx
SCRIPTS = xentrace_format
MAN1 = $(wildcard *.1)
MAN8 = $(wildcard *.8)
all: build
-build: $(BIN)
+build: $(BIN) $(LIBBIN)
install: build
[ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
+ [ -d $(DESTDIR)/usr/$(LIBDIR)/xen/bin ] || \
+ $(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
[ -d $(DESTDIR)/usr/share/man/man1 ] || \
$(INSTALL_DIR) $(DESTDIR)/usr/share/man/man1
[ -d $(DESTDIR)/usr/share/man/man8 ] || \
$(INSTALL_DIR) $(DESTDIR)/usr/share/man/man8
$(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)/usr/bin
+ $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
$(INSTALL_DATA) $(MAN1) $(DESTDIR)/usr/share/man/man1
$(INSTALL_DATA) $(MAN8) $(DESTDIR)/usr/share/man/man8
clean:
- $(RM) *.a *.so *.o *.rpm $(BIN)
+ $(RM) *.a *.so *.o *.rpm $(BIN) $(LIBBIN)
%: %.c $(HDRS) Makefile
$(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl