This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/23799] sprint_ustack() returns empty strings while sprint_ubacktrace() does not
- From: "agentzh at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Fri, 19 Oct 2018 21:15:03 +0000
- Subject: [Bug tapsets/23799] sprint_ustack() returns empty strings while sprint_ubacktrace() does not
- Auto-submitted: auto-generated
- References: <bug-23799-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23799
--- Comment #2 from agentzh <agentzh at gmail dot com> ---
Using `print_ustack(ubacktrace())` works:
```
$ stap -e 'probe process.function("foo") { print_ustack(ubacktrace()); }' -c
./a.out --ldd
0x40048b : foo+0x4/0xb [/mnt/home/agentzh/git/ylang/a.out]
0x40049b : bar+0x9/0xb [/mnt/home/agentzh/git/ylang/a.out]
0x4004a6 : main+0x9/0x13 [/mnt/home/agentzh/git/ylang/a.out]
0x7f3e87d0ffea : __libc_start_main+0xea/0x1c0 [/usr/lib64/libc-2.26.so]
0x4003da : _start+0x2a/0x30 [/mnt/home/agentzh/git/ylang/a.out]
```
--
You are receiving this mail because:
You are the assignee for the bug.