summaryrefslogtreecommitdiffstats
path: root/runtime/stack-i386.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2008-03-28 17:01:40 -0400
committerMartin Hunt <hunt@redhat.com>2008-03-28 17:01:40 -0400
commit580f1a959f79fdd5534a5f2f8daeb415399f38ac (patch)
tree9a9376db87cc1e6a2410afebbef10cc7e2415915 /runtime/stack-i386.c
parent614ead2b7dd8ac70cd89d018b09a397be7ade371 (diff)
downloadsystemtap-steved-580f1a959f79fdd5534a5f2f8daeb415399f38ac.tar.gz
systemtap-steved-580f1a959f79fdd5534a5f2f8daeb415399f38ac.tar.xz
systemtap-steved-580f1a959f79fdd5534a5f2f8daeb415399f38ac.zip
dded _stp_read_address() and changed code to use it.
Diffstat (limited to 'runtime/stack-i386.c')
-rw-r--r--runtime/stack-i386.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/stack-i386.c b/runtime/stack-i386.c
index d7c2c201..c99b4a8c 100644
--- a/runtime/stack-i386.c
+++ b/runtime/stack-i386.c
@@ -18,7 +18,7 @@ static void _stp_stack_print_fallback(unsigned long context, unsigned long stack
{
unsigned long addr;
while (_stp_valid_stack_ptr(context, stack)) {
- if (unlikely(__stp_get_user(addr, (unsigned long *)stack))) {
+ if (unlikely(_stp_read_address(addr, (unsigned long *)stack, KERNEL_DS))) {
/* cannot access stack. give up. */
return;
}
@@ -43,7 +43,7 @@ static void __stp_stack_print (struct pt_regs *regs, int verbose, int levels)
#endif /* STAPCONF_X86_UNIREGS */
while (_stp_valid_stack_ptr(context, (unsigned long)ebp)) {
- if (unlikely(__stp_get_user(addr, (unsigned long *)(ebp + 4)))) {
+ if (unlikely(_stp_read_address(addr, (unsigned long *)(ebp + 4), KERNEL_DS))) {
/* cannot access stack. give up. */
return;
}