4/4 "nemesis" scheduling domains for Xen
PATCH 1/1 4/4 "nemesis" scheduling domains for Xen
C program to create and destroy scheduling domains.
Signed-off-by Mike D. Day <[email protected]>
--
Makefile | 38 ++++++++++++++++++++++++++ nemesis.c | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--
tools/nemesis/Makefile new file +38 -0
@@ -0,0 +1,38 @@ +XEN_ROOT=../.. +include $(XEN_ROOT)/tools/Rules.mk + +CFLAGS += -Werror + +INCLUDES += -I $(XEN_XC) +INCLUDES += -I $(XEN_LIBXC) +CFLAGS += $(INCLUDES) + +HDRS = $(wildcard *.h) + +TARGETS := nemesis + +INSTALL_BIN = $(TARGETS) +INSTALL_SBIN = + +.PHONY: all +all: build + +.PHONY: build +build: $(TARGETS) + +.PHONY: install +install: build + [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin + [ -d $(DESTDIR)/usr/sbin ] || $(INSTALL_DIR) $(DESTDIR)/usr/sbin + $(INSTALL_PROG) $(INSTALL_BIN) $(DESTDIR)/usr/bin + $(INSTALL_PROG) $(INSTALL_SBIN) $(DESTDIR)/usr/sbin + +.PHONY: clean +clean: + $(RM) *.o $(TARGETS) *~ + +%.o: %.c $(HDRS) Makefile + $(CC) -c $(CFLAGS) -o $@ $< + +nemesis: %: %.o Makefile + $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl
tools/nemesis/nemesis.c new file +88 -0
88 lines not on this page · raw message
Signature · 5 lines
Mike D. Day IBM LTC Cell: 919 412-3900 Sametime: [email protected] AIM: ncmikeday Yahoo: ultra.runner PGP key: http://www.ncultra.org/ncmike/pubkey.asc