ia64/xen-unstable

changeset 12584:5e70a5184746

[XENOPROFILE] removed unused gmaddr argument.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author kfraser@localhost.localdomain
date Mon Nov 27 10:24:41 2006 +0000 (2006-11-27)
parents d9c8a18624fb
children 63786d35bc48
files xen/common/xenoprof.c
line diff
     1.1 --- a/xen/common/xenoprof.c	Mon Nov 27 10:23:19 2006 +0000
     1.2 +++ b/xen/common/xenoprof.c	Mon Nov 27 10:24:41 2006 +0000
     1.3 @@ -128,7 +128,7 @@ xenoprof_shared_gmfn_with_guest(
     1.4      }
     1.5  }
     1.6  
     1.7 -static char *alloc_xenoprof_buf(struct domain *d, int npages, uint64_t gmaddr)
     1.8 +static char *alloc_xenoprof_buf(struct domain *d, int npages)
     1.9  {
    1.10      char *rawbuf;
    1.11      int order;
    1.12 @@ -146,7 +146,7 @@ static char *alloc_xenoprof_buf(struct d
    1.13  }
    1.14  
    1.15  static int alloc_xenoprof_struct(
    1.16 -    struct domain *d, int max_samples, int is_passive, uint64_t gmaddr)
    1.17 +    struct domain *d, int max_samples, int is_passive)
    1.18  {
    1.19      struct vcpu *v;
    1.20      int nvcpu, npages, bufsize, max_bufsize;
    1.21 @@ -179,8 +179,7 @@ static int alloc_xenoprof_struct(
    1.22          (max_samples - 1) * sizeof(struct event_log);
    1.23      npages = (nvcpu * bufsize - 1) / PAGE_SIZE + 1;
    1.24      
    1.25 -    d->xenoprof->rawbuf = alloc_xenoprof_buf(is_passive ? dom0 : d, npages,
    1.26 -                                             gmaddr);
    1.27 +    d->xenoprof->rawbuf = alloc_xenoprof_buf(is_passive ? dom0 : d, npages);
    1.28  
    1.29      if ( d->xenoprof->rawbuf == NULL )
    1.30      {
    1.31 @@ -368,8 +367,7 @@ static int add_passive_list(XEN_GUEST_HA
    1.32  
    1.33      if ( d->xenoprof == NULL )
    1.34      {
    1.35 -        ret = alloc_xenoprof_struct(
    1.36 -            d, passive.max_samples, 1, passive.buf_gmaddr);
    1.37 +        ret = alloc_xenoprof_struct(d, passive.max_samples, 1);
    1.38          if ( ret < 0 )
    1.39          {
    1.40              put_domain(d);
    1.41 @@ -509,9 +507,7 @@ static int xenoprof_op_get_buffer(XEN_GU
    1.42       */
    1.43      if ( d->xenoprof == NULL )
    1.44      {
    1.45 -        ret = alloc_xenoprof_struct(
    1.46 -            d, xenoprof_get_buffer.max_samples, 0,
    1.47 -            xenoprof_get_buffer.buf_gmaddr);
    1.48 +        ret = alloc_xenoprof_struct(d, xenoprof_get_buffer.max_samples, 0);
    1.49          if ( ret < 0 )
    1.50              return ret;
    1.51      }