testsuite/systemtap.exelib/lib.stp
raw| 1 | // Plain function call probes in executable and shared library |
| 2 | // Arguments: @1 uprobes_exe, @2 libuprobes_lib.so |
| 3 | |
| 4 | probe process(@1).function("main") { |
| 5 | printf("main\n"); |
| 6 | } |
| 7 | |
| 8 | probe process(@1).function("main_func") { |
| 9 | printf("main_func %d\n", $foo); |
| 10 | } |
| 11 | |
| 12 | probe process(@2).function("lib_main") { |
| 13 | printf("lib_main\n"); |
| 14 | } |
| 15 | |
| 16 | probe process(@2).function("lib_func") { |
| 17 | printf("lib_func %d\n", $bar); |
| 18 | } |