This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]