This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug testsuite/16493] Improve bkl.stp to add backtrace
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 05 Mar 2014 22:05:12 +0000
- Subject: [Bug testsuite/16493] Improve bkl.stp to add backtrace
- Auto-submitted: auto-generated
- References: <bug-16493-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16493
David Smith <dsmith at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dsmith at redhat dot com
--- Comment #1 from David Smith <dsmith at redhat dot com> ---
Sorry for taking so long to look at this. I like the idea of your patch, but we
can simplify it a bit.
We can remove all the command line processing, and just use stap command line
processing with the ability to set global variables from the command line using
'-G'. Here's an example of how it works:
====
# stap -e 'global backtrace=-1; probe begin { printf("%d\n", backtrace); exit()
}' -G backtrace=100
100
====
Thanks again for the patch.
--
You are receiving this mail because:
You are the assignee for the bug.