tapset/python.stp
raw| 1 | /* Systemtap tapset to make it easier to trace Python */ |
| 2 | |
| 3 | /* |
| 4 | Define python.function.entry/return: |
| 5 | */ |
| 6 | probe python.function.entry = process("/usr/lib*/libpython*.so*").mark("function__entry") |
| 7 | { |
| 8 | filename = user_string($arg1); |
| 9 | funcname = user_string($arg2); |
| 10 | lineno = $arg3; |
| 11 | } |
| 12 | probe python.function.return = process("/usr/lib*/libpython*.so*").mark("function__return") |
| 13 | { |
| 14 | filename = user_string($arg1); |
| 15 | funcname = user_string($arg2); |
| 16 | lineno = $arg3; |
| 17 | } |