# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Date 1164196036 -32400 # Node ID 521c5ac07bb10335df87413cfb1a543b59f8d640 # Parent 18cd7d8869490c5662056c9c52d617c02d7c2003 [XENOPROFILE] removed unused gmaddr argument. Signed-off-by: Isaku Yamahata diff -r 18cd7d886949 -r 521c5ac07bb1 xen/common/xenoprof.c --- a/xen/common/xenoprof.c Wed Nov 22 10:31:50 2006 +0000 +++ b/xen/common/xenoprof.c Wed Nov 22 20:47:16 2006 +0900 @@ -128,7 +128,7 @@ xenoprof_shared_gmfn_with_guest( } } -static char *alloc_xenoprof_buf(struct domain *d, int npages, uint64_t gmaddr) +static char *alloc_xenoprof_buf(struct domain *d, int npages) { char *rawbuf; int order; @@ -146,7 +146,7 @@ static char *alloc_xenoprof_buf(struct d } static int alloc_xenoprof_struct( - struct domain *d, int max_samples, int is_passive, uint64_t gmaddr) + struct domain *d, int max_samples, int is_passive) { struct vcpu *v; int nvcpu, npages, bufsize, max_bufsize; @@ -179,8 +179,7 @@ static int alloc_xenoprof_struct( (max_samples - 1) * sizeof(struct event_log); npages = (nvcpu * bufsize - 1) / PAGE_SIZE + 1; - d->xenoprof->rawbuf = alloc_xenoprof_buf(is_passive ? dom0 : d, npages, - gmaddr); + d->xenoprof->rawbuf = alloc_xenoprof_buf(is_passive ? dom0 : d, npages); if ( d->xenoprof->rawbuf == NULL ) { @@ -368,8 +367,7 @@ static int add_passive_list(XEN_GUEST_HA if ( d->xenoprof == NULL ) { - ret = alloc_xenoprof_struct( - d, passive.max_samples, 1, passive.buf_gmaddr); + ret = alloc_xenoprof_struct(d, passive.max_samples, 1); if ( ret < 0 ) { put_domain(d); @@ -509,9 +507,7 @@ static int xenoprof_op_get_buffer(XEN_GU */ if ( d->xenoprof == NULL ) { - ret = alloc_xenoprof_struct( - d, xenoprof_get_buffer.max_samples, 0, - xenoprof_get_buffer.buf_gmaddr); + ret = alloc_xenoprof_struct(d, xenoprof_get_buffer.max_samples, 0); if ( ret < 0 ) return ret; }