doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/vma_vdso.stp
raw| 1 | /* Make sure however we entered a syscall, we know the calling module name. The |
| 2 | The task finder vma tracker should have recorded it. */ |
| 3 | probe syscall.clock_gettime, syscall.getuid |
| 4 | { |
| 5 | if (target() == pid()) |
| 6 | { |
| 7 | try |
| 8 | { |
| 9 | // Bogus if-statement so that there is no elision |
| 10 | // (This happens because umodname() is marked as /* pure */) |
| 11 | if (umodname(uaddr()) == "<unknown>") |
| 12 | log(name) |
| 13 | else |
| 14 | log(name) |
| 15 | } |
| 16 | catch |
| 17 | { |
| 18 | printf("%s@%x unknown\n", name, uaddr()); |
| 19 | } |
| 20 | } |
| 21 | } |