aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/oprofile
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-10-17 16:43:53 +0100
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-10-17 16:43:53 +0100
commitabf06ea91d1210d9cf7cde4c0465cd49b21efacb (patch)
tree80f1316ffd5381b09442732c5e4015bcc49fe3f5 /xen/arch/x86/oprofile
parente7a527e100dd3f72e0f9b672ab97324d80e064df (diff)
downloadxen-abf06ea91d1210d9cf7cde4c0465cd49b21efacb.tar.gz
xen-abf06ea91d1210d9cf7cde4c0465cd49b21efacb.tar.bz2
xen-abf06ea91d1210d9cf7cde4c0465cd49b21efacb.zip
xen: more XEN_GUEST_HANDLE_PARAM substitutions
More substitutions in this patch, not as obvious as the ones in the previous patch. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Keir Fraser <keir@xen.org> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/arch/x86/oprofile')
-rw-r--r--xen/arch/x86/oprofile/backtrace.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xen/arch/x86/oprofile/backtrace.c b/xen/arch/x86/oprofile/backtrace.c
index 433f881c0c..b3ea7f386e 100644
--- a/xen/arch/x86/oprofile/backtrace.c
+++ b/xen/arch/x86/oprofile/backtrace.c
@@ -74,8 +74,11 @@ dump_guest_backtrace(struct vcpu *vcpu, const struct frame_head *head,
}
else
{
- XEN_GUEST_HANDLE(const_frame_head_t) guest_head =
+ XEN_GUEST_HANDLE(const_frame_head_t) guest_head;
+ XEN_GUEST_HANDLE_PARAM(const_frame_head_t) guest_head_param =
const_guest_handle_from_ptr(head, frame_head_t);
+ guest_head = guest_handle_from_param(guest_head_param,
+ const_frame_head_t);
/* Also check accessibility of one struct frame_head beyond */
if (!guest_handle_okay(guest_head, 2))