[Bug testsuite/16493] Improve bkl.stp to add backtrace

dsmith at redhat dot com sourceware-bugzilla@sourceware.org
Wed Mar 5 22:05:00 GMT 2014


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.



More information about the Systemtap mailing list