ia64/xen-unstable

changeset 14527:fd0b109501af

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@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Fri Mar 23 10:46:39 2007 +0000 (2007-03-23)
parents 2cecfa20ffa9
children 8b0be0ddc223
files tools/misc/Makefile tools/misc/xc_shadow.c
line diff
     1.1 --- a/tools/misc/Makefile	Fri Mar 23 10:11:58 2007 +0000
     1.2 +++ b/tools/misc/Makefile	Fri Mar 23 10:46:39 2007 +0000
     1.3 @@ -9,7 +9,7 @@ CFLAGS   += $(INCLUDES)
     1.4  
     1.5  HDRS     = $(wildcard *.h)
     1.6  
     1.7 -TARGETS-y := xenperf xc_shadow
     1.8 +TARGETS-y := xenperf
     1.9  TARGETS-$(CONFIG_X86) += xen-detect
    1.10  TARGETS := $(TARGETS-y)
    1.11  
    1.12 @@ -43,5 +43,5 @@ clean:
    1.13  %.o: %.c $(HDRS) Makefile
    1.14  	$(CC) -c $(CFLAGS) -o $@ $<
    1.15  
    1.16 -xenperf xc_shadow: %: %.o Makefile
    1.17 +xenperf: %: %.o Makefile
    1.18  	$(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl
     2.1 --- a/tools/misc/xc_shadow.c	Fri Mar 23 10:11:58 2007 +0000
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,72 +0,0 @@
     2.4 -/* -*-  Mode:C; c-basic-offset:4; tab-width:4 -*-
     2.5 - ****************************************************************************
     2.6 - * (C) 2005 - Rolf Neugebauer - Intel Research Cambridge
     2.7 - ****************************************************************************
     2.8 - *
     2.9 - *        File: xc_shadow.c
    2.10 - *      Author: Rolf Neugebauer (rolf.neugebauer@intel.com)
    2.11 - *        Date: Mar 2005
    2.12 - * 
    2.13 - * Description: 
    2.14 - */
    2.15 -
    2.16 -
    2.17 -#include <xenctrl.h>
    2.18 -#include <stdio.h>
    2.19 -#include <stdlib.h>
    2.20 -#include <sys/mman.h>
    2.21 -#include <errno.h>
    2.22 -#include <string.h>
    2.23 -
    2.24 -void usage(void)
    2.25 -{
    2.26 -    printf("xc_shadow: -[0|1|2]\n");
    2.27 -    printf("    set shadow mode\n");
    2.28 -    exit(0);
    2.29 -}
    2.30 -
    2.31 -int main(int argc, char *argv[])
    2.32 -{
    2.33 -    int xc_handle;
    2.34 -    int mode = 0;
    2.35 -
    2.36 -    if ( argc > 1 )
    2.37 -    {
    2.38 -        char *p = argv[1];
    2.39 -        if (*p++ == '-') {
    2.40 -            if (*p == '1')
    2.41 -                mode = 1;
    2.42 -            else if (*p == '2')
    2.43 -                mode = 2;
    2.44 -            else if (*p == '0')
    2.45 -                mode = 0;
    2.46 -            else
    2.47 -                usage();
    2.48 -        } else
    2.49 -            usage();
    2.50 -    } 
    2.51 -    else
    2.52 -        usage();
    2.53 -
    2.54 -    if ( (xc_handle = xc_interface_open()) == -1 )
    2.55 -    {
    2.56 -        fprintf(stderr, "Error opening xc interface: %d (%s)\n",
    2.57 -                errno, strerror(errno));
    2.58 -        return 1;
    2.59 -    }
    2.60 -
    2.61 -    if ( xc_shadow_control(xc_handle,
    2.62 -                           0,
    2.63 -                           mode, 
    2.64 -                           NULL,
    2.65 -                           0,
    2.66 -                           NULL,
    2.67 -                           0,
    2.68 -                           NULL) < 0 )
    2.69 -    {    
    2.70 -        fprintf(stderr, "Error reseting performance counters: %d (%s)\n",
    2.71 -                errno, strerror(errno));
    2.72 -        return 1;
    2.73 -    }
    2.74 -    return 0;
    2.75 -}