testsuite/systemtap.exelib/uname.stp
raw| 1 | // Prints probefunc() and usymname(uaddr()) to check they are similar. |
| 2 | // Arguments: @1 uprobes_exe, @2 libuprobes_lib.so |
| 3 | |
| 4 | probe process(@1).function("main"), |
| 5 | process(@1).function("main_func") { |
| 6 | printf("exe: %s=%s\n",probefunc(), usymname(uaddr())); |
| 7 | } |
| 8 | |
| 9 | probe process(@2).function("lib_main"), |
| 10 | process(@2).function("lib_func") { |
| 11 | printf("lib: %s=%s\n",probefunc(), usymname(uaddr())); |
| 12 | } |