WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Remove xc_shadow tool

# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
# Date 1174646799 0
# Node ID fd0b109501afdbb14dd862ee1cb944689ac5f8c3
# Parent  2cecfa20ffa9928f8c18d1e24123fb587406154a
Remove xc_shadow tool
It predates the current shadow architecture and only performs an explicitly
invalid shadow operation (on itself).
Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
---
 tools/misc/xc_shadow.c |   72 -------------------------------------------------
 tools/misc/Makefile    |    4 +-
 2 files changed, 2 insertions(+), 74 deletions(-)

diff -r 2cecfa20ffa9 -r fd0b109501af tools/misc/Makefile
--- a/tools/misc/Makefile       Fri Mar 23 10:11:58 2007 +0000
+++ b/tools/misc/Makefile       Fri Mar 23 10:46:39 2007 +0000
@@ -9,7 +9,7 @@ CFLAGS   += $(INCLUDES)
 
 HDRS     = $(wildcard *.h)
 
-TARGETS-y := xenperf xc_shadow
+TARGETS-y := xenperf
 TARGETS-$(CONFIG_X86) += xen-detect
 TARGETS := $(TARGETS-y)
 
@@ -43,5 +43,5 @@ clean:
 %.o: %.c $(HDRS) Makefile
        $(CC) -c $(CFLAGS) -o $@ $<
 
-xenperf xc_shadow: %: %.o Makefile
+xenperf: %: %.o Makefile
        $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl
diff -r 2cecfa20ffa9 -r fd0b109501af tools/misc/xc_shadow.c
--- a/tools/misc/xc_shadow.c    Fri Mar 23 10:11:58 2007 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,72 +0,0 @@
-/* -*-  Mode:C; c-basic-offset:4; tab-width:4 -*-
- ****************************************************************************
- * (C) 2005 - Rolf Neugebauer - Intel Research Cambridge
- ****************************************************************************
- *
- *        File: xc_shadow.c
- *      Author: Rolf Neugebauer (rolf.neugebauer@xxxxxxxxx)
- *        Date: Mar 2005
- * 
- * Description: 
- */
-
-
-#include <xenctrl.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/mman.h>
-#include <errno.h>
-#include <string.h>
-
-void usage(void)
-{
-    printf("xc_shadow: -[0|1|2]\n");
-    printf("    set shadow mode\n");
-    exit(0);
-}
-
-int main(int argc, char *argv[])
-{
-    int xc_handle;
-    int mode = 0;
-
-    if ( argc > 1 )
-    {
-        char *p = argv[1];
-        if (*p++ == '-') {
-            if (*p == '1')
-                mode = 1;
-            else if (*p == '2')
-                mode = 2;
-            else if (*p == '0')
-                mode = 0;
-            else
-                usage();
-        } else
-            usage();
-    } 
-    else
-        usage();
-
-    if ( (xc_handle = xc_interface_open()) == -1 )
-    {
-        fprintf(stderr, "Error opening xc interface: %d (%s)\n",
-                errno, strerror(errno));
-        return 1;
-    }
-
-    if ( xc_shadow_control(xc_handle,
-                           0,
-                           mode, 
-                           NULL,
-                           0,
-                           NULL,
-                           0,
-                           NULL) < 0 )
-    {    
-        fprintf(stderr, "Error reseting performance counters: %d (%s)\n",
-                errno, strerror(errno));
-        return 1;
-    }
-    return 0;
-}

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Remove xc_shadow tool, Xen patchbot-unstable <=