summaryrefslogtreecommitdiffstats
path: root/runtime/stack.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-04-21 19:44:55 +0200
committerMark Wielaard <mjw@redhat.com>2009-04-21 19:44:55 +0200
commit2f2fa6c0b102537d92a1148d8b00431077d5eb7a (patch)
tree455ed3f7e4a635b6449e6864dcdc1d4126fc955c /runtime/stack.c
parentc45319065d6e3ae91ae833f7afbf0edba6c87d89 (diff)
downloadsystemtap-steved-2f2fa6c0b102537d92a1148d8b00431077d5eb7a.tar.gz
systemtap-steved-2f2fa6c0b102537d92a1148d8b00431077d5eb7a.tar.xz
systemtap-steved-2f2fa6c0b102537d92a1148d8b00431077d5eb7a.zip
Add uprobes_ustack testcase and bug fixlet.
* runtime/stack.c (_stp_stack_print): Use _stp_usymbol_print when tsk given. * testsuite/systemtap.base/uprobes_ustack.exp: New test file. * testsuite/systemtap.base/uprobes_ustack.stp: Likewise.
Diffstat (limited to 'runtime/stack.c')
-rw-r--r--runtime/stack.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/stack.c b/runtime/stack.c
index bc1d2273..042f44c7 100644
--- a/runtime/stack.c
+++ b/runtime/stack.c
@@ -118,7 +118,10 @@ static void _stp_stack_print(struct pt_regs *regs, int verbose, struct kretprobe
_stp_symbol_print((unsigned long)_stp_ret_addr_r(pi));
} else {
_stp_print_char(' ');
- _stp_symbol_print(REG_IP(regs));
+ if (tsk)
+ _stp_usymbol_print(REG_IP(regs), tsk);
+ else
+ _stp_symbol_print(REG_IP(regs));
}
_stp_print_char('\n');
} else if (pi)