From: "agentzh at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug tapsets/23799] sprint_ustack() returns empty strings while sprint_ubacktrace() does not
Date: Fri, 19 Oct 2018 21:15:00 -0000 [thread overview]
Message-ID: <bug-23799-6586-wk5xwunk3N@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <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.
next prev parent reply other threads:[~2018-10-19 21:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-19 18:59 [Bug tapsets/23799] New: " agentzh at gmail dot com
2018-10-19 19:01 ` [Bug tapsets/23799] " agentzh at gmail dot com
2018-10-19 21:15 ` agentzh at gmail dot com [this message]
2018-10-19 22:12 ` agentzh at gmail dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-23799-6586-wk5xwunk3N@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).