From: fche@redhat.com (Frank Ch. Eigler)
To: Milian Wolff <mail@milianw.de>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: Access to backtraces from user-space tracepoint callback in perf-script?
Date: Fri, 16 May 2014 11:57:02 -0400 [thread overview]
Message-ID: <y0mlhu14sz5.fsf@fche.csb> (raw)
In-Reply-To: <1944165.rOQGbuz1ZM@milian-kdab2> (Milian Wolff's message of "Wed, 14 May 2014 10:47:43 +0200")
Milian Wolff <mail@milianw.de> writes:
> [...]
>> >> today I played around with perf-script(-python) and custom tracepoints.
>> >> What I could not figure out so far is how to print a backtrace from the
>> >> python callback. [...]
While you wait, you might try systemtap, wherein there exists support
not just for plain C-level backtracing (print_ubacktrace() as for any
other program), but also python source-level backtracing (via a tapset
function).
https://sourceware.org/systemtap/examples/#general/py2example.stp
- FChE
next prev parent reply other threads:[~2014-05-16 15:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-29 15:44 Access to backtraces from user-space tracepoint callback in perf-script? Milian Wolff
2014-05-07 12:46 ` Milian Wolff
2014-05-14 0:33 ` Namhyung Kim
2014-05-14 8:47 ` Milian Wolff
2014-05-16 15:57 ` Frank Ch. Eigler [this message]
2014-05-17 11:24 ` Milian Wolff
2014-05-17 14:31 ` David Ahern
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=y0mlhu14sz5.fsf@fche.csb \
--to=fche@redhat.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=mail@milianw.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.