ia64/linux-2.6.18-xen.hg

changeset 658:2dc7ebf488b9

xen: make xenoprof local variables static

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Sep 05 11:12:55 2008 +0100 (2008-09-05)
parents 7ec0d9030d8a
children ad374a7a9f3e
files drivers/xen/xenoprof/xenoprofile.c
line diff
     1.1 --- a/drivers/xen/xenoprof/xenoprofile.c	Thu Sep 04 15:10:11 2008 +0100
     1.2 +++ b/drivers/xen/xenoprof/xenoprofile.c	Fri Sep 05 11:12:55 2008 +0100
     1.3 @@ -35,14 +35,14 @@
     1.4  #define MAX_XENOPROF_SAMPLES 16
     1.5  
     1.6  /* sample buffers shared with Xen */
     1.7 -xenoprof_buf_t * xenoprof_buf[MAX_VIRT_CPUS];
     1.8 +static xenoprof_buf_t *xenoprof_buf[MAX_VIRT_CPUS];
     1.9  /* Shared buffer area */
    1.10 -struct xenoprof_shared_buffer shared_buffer;
    1.11 +static struct xenoprof_shared_buffer shared_buffer;
    1.12  
    1.13  /* Passive sample buffers shared with Xen */
    1.14 -xenoprof_buf_t *p_xenoprof_buf[MAX_OPROF_DOMAINS][MAX_VIRT_CPUS];
    1.15 +static xenoprof_buf_t *p_xenoprof_buf[MAX_OPROF_DOMAINS][MAX_VIRT_CPUS];
    1.16  /* Passive shared buffer area */
    1.17 -struct xenoprof_shared_buffer p_shared_buffer[MAX_OPROF_DOMAINS];
    1.18 +static struct xenoprof_shared_buffer p_shared_buffer[MAX_OPROF_DOMAINS];
    1.19  
    1.20  static int xenoprof_start(void);
    1.21  static void xenoprof_stop(void);
    1.22 @@ -54,11 +54,11 @@ static int active_defined;
    1.23  extern unsigned long backtrace_depth;
    1.24  
    1.25  /* Number of buffers in shared area (one per VCPU) */
    1.26 -int nbuf;
    1.27 +static int nbuf;
    1.28  /* Mappings of VIRQ_XENOPROF to irq number (per cpu) */
    1.29 -int ovf_irq[NR_CPUS];
    1.30 +static int ovf_irq[NR_CPUS];
    1.31  /* cpu model type string - copied from Xen on XENOPROF_init command */
    1.32 -char cpu_type[XENOPROF_CPU_TYPE_SIZE];
    1.33 +static char cpu_type[XENOPROF_CPU_TYPE_SIZE];
    1.34  
    1.35  #ifdef CONFIG_PM
    1.36  
    1.37 @@ -111,11 +111,11 @@ static void exit_driverfs(void)
    1.38  #define exit_driverfs() do { } while (0)
    1.39  #endif /* CONFIG_PM */
    1.40  
    1.41 -unsigned long long oprofile_samples = 0;
    1.42 -unsigned long long p_oprofile_samples = 0;
    1.43 +static unsigned long long oprofile_samples;
    1.44 +static unsigned long long p_oprofile_samples;
    1.45  
    1.46 -unsigned int pdomains;
    1.47 -struct xenoprof_passive passive_domains[MAX_OPROF_DOMAINS];
    1.48 +static unsigned int pdomains;
    1.49 +static struct xenoprof_passive passive_domains[MAX_OPROF_DOMAINS];
    1.50  
    1.51  /* Check whether the given entry is an escape code */
    1.52  static int xenoprof_is_escape(xenoprof_buf_t * buf, int tail)
    1.53 @@ -483,8 +483,7 @@ static void xenoprof_dummy_backtrace(str
    1.54  }
    1.55  
    1.56  
    1.57 -
    1.58 -struct oprofile_operations xenoprof_ops = {
    1.59 +static struct oprofile_operations xenoprof_ops = {
    1.60  #ifdef HAVE_XENOPROF_CREATE_FILES
    1.61  	.create_files 	= xenoprof_create_files,
    1.62  #endif