PATCH: Rename setsize and setmask
As requested, a simple renaming to make it obvious that setmask and setsize are xen related.
# HG changeset patch
# User [email protected]
# Node ID e9d5879c89f07ef692cf55037556cb8739acc582 # Parent 6dcd85ea232e0de5445f325abd0829a0ed6d56a1
Renamed setmask and setsize to reflect their association with xen
tools/xenmon/Makefile Tue Aug 15 21:23:46 2006 renamed from tools/xenmon/Makefile Tue Aug 15 12:54:09 2006 +0 -0
@@ -25,7 +25,7 @@
CFLAGS += -I $(XEN_LIBXC)
LDFLAGS += -L $(XEN_LIBXC)
-BIN = setmask xenbaked
+BIN = xentrace_setmask xenbaked
SCRIPTS = xenmon.py
.PHONY: all
@@ -35,10 +35,10 @@
build: $(BIN)
.PHONY: install
-install: xenbaked setmask
+install: xenbaked xentrace_setmask
[ -d $(DESTDIR)$(sbindir) ] || $(INSTALL_DIR) $(DESTDIR)$(sbindir)
$(INSTALL_PROG) xenbaked $(DESTDIR)$(sbindir)/xenbaked
- $(INSTALL_PROG) setmask $(DESTDIR)$(sbindir)/setmask
+ $(INSTALL_PROG) xentrace_setmask $(DESTDIR)$(sbindir)/xentrace_setmask
$(INSTALL_PROG) xenmon.py $(DESTDIR)$(sbindir)/xenmon.py.PHONY: clean
tools/xentrace/Makefile Tue Aug 15 21:23:46 2006 renamed from tools/xentrace/Makefile Tue Aug 15 12:54:09 2006 +0 -0
@@ -14,7 +14,7 @@
HDRS = $(wildcard *.h)
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
-BIN = xentrace setsize
+BIN = xentrace xentrace_setsize
LIBBIN = SCRIPTS = xentrace_format MAN1 = $(wildcard *.1)
tools/xenmon/xentrace_setmask.c Tue Aug 15 21:23:46 2006 renamed from dev/null Tue Aug 15 12:54:09 2006 +90 -0
90 lines not on this page · raw message
tools/xentrace/xentrace_setsize.c Tue Aug 15 21:23:46 2006 renamed from dev/null Tue Aug 15 12:54:09 2006 +38 -0
@@ -0,0 +1,41 @@ +#include <stdlib.h> +#include <stdio.h> +#include <errno.h> +#include <xenctrl.h> + +int main(int argc, char * argv[]) +{ + unsigned long size; + int xc_handle = xc_interface_open(); + + if ( xc_tbuf_get_size(xc_handle, &size) != 0 ) + { + perror("Failure to get tbuf info from Xen. Guess size is 0"); + printf("This may mean that tracing is not enabled in xen.\n"); + } + else + { + printf("Current tbuf size: 0x%lx\n", size); + } + + if (argc < 2) + exit(0); + + size = atol(argv[1]); + + if ( xc_tbuf_set_size(xc_handle, size) != 0 ) + { + perror("set_size Hypercall failure"); + exit(1); + } + printf("set_size succeeded.\n"); + + if (xc_tbuf_get_size(xc_handle, &size) != 0) + perror("Failure to get tbuf info from Xen." + " Tracing must be enabled first"); + else + printf("New tbuf size: 0x%lx\n", size); + + xc_interface_close(xc_handle); + return 0; +}
dev/null Tue Aug 15 21:23:46 2006 renamed from tools/xenmon/setmask.c Tue Aug 15 12:54:09 2006 +0 -90
90 lines not on this page · raw message
dev/null Tue Aug 15 21:23:46 2006 renamed from tools/xentrace/setsize.c Tue Aug 15 12:54:09 2006 +0 -38
@@ -1,41 +0,0 @@ -#include <stdlib.h> -#include <stdio.h> -#include <errno.h> -#include <xenctrl.h> - -int main(int argc, char * argv[]) -{ - unsigned long size; - int xc_handle = xc_interface_open(); - - if ( xc_tbuf_get_size(xc_handle, &size) != 0 ) - { - perror("Failure to get tbuf info from Xen. Guess size is 0"); - printf("This may mean that tracing is not enabled in xen.\n"); - } - else - { - printf("Current tbuf size: 0x%lx\n", size); - } - - if (argc < 2) - exit(0); - - size = atol(argv[1]); - - if ( xc_tbuf_set_size(xc_handle, size) != 0 ) - { - perror("set_size Hypercall failure"); - exit(1); - } - printf("set_size succeeded.\n"); - - if (xc_tbuf_get_size(xc_handle, &size) != 0) - perror("Failure to get tbuf info from Xen." - " Tracing must be enabled first"); - else - printf("New tbuf size: 0x%lx\n", size); - - xc_interface_close(xc_handle); - return 0; -}
# HG changeset patch
# User [email protected]
# Node ID e9d5879c89f07ef692cf55037556cb8739acc582 # Parent 6dcd85ea232e0de5445f325abd0829a0ed6d56a1
Renamed setmask and setsize to reflect their association with xen
tools/xenmon/Makefile +3 -3
@@ -25,7 +25,7 @@ CFLAGS += -I $(XEN_LIBXC) LDFLAGS += -L $(XEN_LIBXC) -BIN = setmask xenbaked +BIN = xentrace_setmask xenbaked SCRIPTS = xenmon.py .PHONY: all
@@ -35,10 +35,10 @@ build: $(BIN) .PHONY: install -install: xenbaked setmask +install: xenbaked xentrace_setmask [ -d $(DESTDIR)$(sbindir) ] || $(INSTALL_DIR) $(DESTDIR)$(sbindir) $(INSTALL_PROG) xenbaked $(DESTDIR)$(sbindir)/xenbaked - $(INSTALL_PROG) setmask $(DESTDIR)$(sbindir)/setmask + $(INSTALL_PROG) xentrace_setmask $(DESTDIR)$(sbindir)/xentrace_setmask $(INSTALL_PROG) xenmon.py $(DESTDIR)$(sbindir)/xenmon.py .PHONY: clean
tools/xentrace/Makefile +1 -1
@@ -14,7 +14,7 @@ HDRS = $(wildcard *.h) OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) -BIN = xentrace setsize +BIN = xentrace xentrace_setsize LIBBIN = SCRIPTS = xentrace_format MAN1 = $(wildcard *.1)
tools/xenmon/xentrace_setmask.c new file +90 -0
90 lines not on this page · raw message
tools/xentrace/xentrace_setsize.c new file +41 -0
41 lines not on this page · raw message
tools/xenmon/setmask.c deleted +0 -90
90 lines not on this page · raw message
tools/xentrace/setsize.c deleted +0 -41
41 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel