mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
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>
46 lines
846 B
Makefile
46 lines
846 B
Makefile
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)
|