x86/xenoprof: fix 32-bit guest stack handling after c/s 24537:3c0a533d3af0
authorJan Beulich <jbeulich@suse.com>
Tue, 6 Mar 2012 15:43:01 +0000 (16:43 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 6 Mar 2012 15:43:01 +0000 (16:43 +0100)
commitb29b83176813f9e67fd92aca54fd8323e62e45ba
tree076c00a86464106ecbf0de137dee5a5d5e9af3e6
parent111e9b24138cf3e1b19ee2ee95774f6f3811de75
x86/xenoprof: fix 32-bit guest stack handling after c/s 24537:3c0a533d3af0

32-bit guests don't have 64-bit precudrure return addresses - both
elements of struct frame_head_32bit should be 32 bits wide, not just
the frame link pointer.

Further, consolidate the whole handling here (also in the native size
guest case) to properly use guest handles and guest memory accessors.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/oprofile/backtrace.c