[Bug translator/18075] Add a return-probe variant of .callee

flu at redhat dot com sourceware-bugzilla@sourceware.org
Mon Jun 8 20:56:00 GMT 2015


https://sourceware.org/bugzilla/show_bug.cgi?id=18075

Felix Lu <flu at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |flu at redhat dot com

--- Comment #2 from Felix Lu <flu at redhat dot com> ---
The _caller_match() function can be used to match the return with caller.

Example:
stap -e 'probe process("stap").function("version").return { print_ubacktrace();
 println(_caller_match(1,1,"/opt/codebase/install/bin/stap", ".absolute",
0x40efff)) }'

 0x428d55 : _ZN17systemtap_session13parse_cmdlineEiPKPc+0x9b5/0x5dc0
[/opt/codebase/install/bin/stap]
 0x40efff : main+0x21f/0x1320 [/opt/codebase/install/bin/stap]
 0x7fe8fca69fe0 [/usr/lib64/libc-2.20.so+0x1ffe0/0x3bd000]
1

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Systemtap mailing list