diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-12-17 06:27:55 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-12-17 06:27:55 +0000 |
commit | 287d07f6a7b84d9caf6e734f987a02ef5de7561c (patch) | |
tree | 9621123f10a616f72073e5706d1e4fffa17d1889 /tools/xenpaging/Makefile | |
parent | c0c8c01d6776b3cb2c42a6a3c82e484992dc9265 (diff) | |
download | xen-287d07f6a7b84d9caf6e734f987a02ef5de7561c.tar.gz xen-287d07f6a7b84d9caf6e734f987a02ef5de7561c.tar.bz2 xen-287d07f6a7b84d9caf6e734f987a02ef5de7561c.zip |
User-land tool for memory paging.
This tool will page out the specified number of pages from the specified
domain. When a paged out page is accessed, Xen will issue a request and
notify the tool over an event channel. The tool will process ther request,
page the page in, and notify Xen.
The current (default) policy tracks the 1024 most recently paged in pages
and will not choose to evict any of those. This is done with the assumption
that if a page is accessed, it is likely to be accessed again soon.
Signed-off-by: Patrick Colp <Patrick.Colp@citrix.com>
Diffstat (limited to 'tools/xenpaging/Makefile')
-rw-r--r-- | tools/xenpaging/Makefile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tools/xenpaging/Makefile b/tools/xenpaging/Makefile new file mode 100644 index 0000000000..279c73697e --- /dev/null +++ b/tools/xenpaging/Makefile @@ -0,0 +1,45 @@ +XEN_ROOT=../.. +include $(XEN_ROOT)/tools/Rules.mk + +CFLAGS += -I $(XEN_XC) +CFLAGS += -I ./ +CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenstore) +LDFLAGS += $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) + +POLICY = default + +SRC := +SRCS += file_ops.c xc.c xenpaging.c policy_$(POLICY).c + +CFLAGS += -Werror +CFLAGS += -Wno-unused +CFLAGS += -g + +#CFLAGS += -Wl,-rpath,.. +CFLAGS += -Wp,-MD,.$(@F).d +DEPS = .*.d + +#LDFLAGS += $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenguest) + +OBJS = $(SRCS:.c=.o) +IBINS = xenpaging + +all: $(IBINS) + +xenpaging: $(OBJS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + +install: all + $(INSTALL_DIR) $(DESTDIR)$(SBINDIR) + $(INSTALL_PROG) $(IBINS) $(DESTDIR)$(SBINDIR) + +clean: + rm -f *.o *~ $(DEPS) xen TAGS $(IBINS) $(LIB) + +.PHONY: clean install + +.PHONY: TAGS +TAGS: + etags -t $(SRCS) *.h + +-include $(DEPS) |