doc/SystemTap_Beginners_Guide/testsuite/systemtap.bpf/bpf_tests/task1.stp
raw| 1 | probe begin { |
| 2 | printf("BEGIN\n") |
| 3 | } |
| 4 | |
| 5 | probe kernel.function("vfs_read") { |
| 6 | // TODO: PR23816, task.stp tapset |
| 7 | printf("vfs_read by %s", execname()) |
| 8 | printf("/%s", kernel_string(@cast(task_current(), "task_struct")->comm)) |
| 9 | printf(" PID %d/%d\n", pid(), @cast(task_current(), "task_struct")->tgid) |
| 10 | exit() |
| 11 | } |
| 12 | |
| 13 | probe end { |
| 14 | printf("END PASS\n") |
| 15 | } |