aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/xenoprof.c
diff options
context:
space:
mode:
authorGeorge Dunlap <george.dunlap@eu.citrix.com>2012-01-26 11:03:23 +0000
committerGeorge Dunlap <george.dunlap@eu.citrix.com>2012-01-26 11:03:23 +0000
commitb2341cfbf927ef33a48a1390e54d88a731524c94 (patch)
treeaf9ceeb8ff8bfb531d6e52754d4509e6bade38dc /xen/common/xenoprof.c
parent8311d176ea6ff5b6251434d4eface16bc5490eb9 (diff)
downloadxen-b2341cfbf927ef33a48a1390e54d88a731524c94.tar.gz
xen-b2341cfbf927ef33a48a1390e54d88a731524c94.tar.bz2
xen-b2341cfbf927ef33a48a1390e54d88a731524c94.zip
xenoprof: Use uint64_t explicitly for internal calls
A recent changeset to make XENOPROF_ESCAPE_CODE consistent across 32- and 64-bit builds caused a build failure, because values were passed through functions as "unsigned long". Replace these with uint64_t explicitly. Also remove redundant function prototype from perfmon.c, now that it's in a header file. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/xenoprof.c')
-rw-r--r--xen/common/xenoprof.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/common/xenoprof.c b/xen/common/xenoprof.c
index e790c8ceff..ae5eb25f93 100644
--- a/xen/common/xenoprof.c
+++ b/xen/common/xenoprof.c
@@ -475,7 +475,7 @@ static int xenoprof_buf_space(struct domain *d, xenoprof_buf_t * buf, int size)
/* Check for space and add a sample. Return 1 if successful, 0 otherwise. */
static int xenoprof_add_sample(struct domain *d, xenoprof_buf_t *buf,
- unsigned long eip, int mode, int event)
+ uint64_t eip, int mode, int event)
{
int head, tail, size;
@@ -512,7 +512,7 @@ static int xenoprof_add_sample(struct domain *d, xenoprof_buf_t *buf,
}
int xenoprof_add_trace(struct domain *d, struct vcpu *vcpu,
- unsigned long eip, int mode)
+ uint64_t eip, int mode)
{
xenoprof_buf_t *buf = d->xenoprof->vcpu[vcpu->vcpu_id].buffer;
@@ -527,7 +527,7 @@ int xenoprof_add_trace(struct domain *d, struct vcpu *vcpu,
}
void xenoprof_log_event(struct vcpu *vcpu,
- struct cpu_user_regs * regs, unsigned long eip,
+ struct cpu_user_regs * regs, uint64_t eip,
int mode, int event)
{
struct domain *d = vcpu->domain;