testsuite/semok/sizeof.stp
raw| 1 | #! stap -p2 |
| 2 | |
| 3 | probe begin { |
| 4 | # println("task_struct: ", @cast_sizeof("task_struct")) |
| 5 | println("task_struct: ", @cast_module_sizeof("kernel", "task_struct")) |
| 6 | println("task_struct: ", @cast_module_sizeof("kernel<linux/sched.h>", "task_struct")) |
| 7 | println("FILE: ", @cast_module_sizeof("<stdio.h>", "FILE")) |
| 8 | } |
| 9 | |
| 10 | probe process("stap").function("main") { |
| 11 | println("systemtap_session: ", @cast_sizeof("systemtap_session")) |
| 12 | } |