testsuite/buildok/scheduler-ctxswitch.stp
raw| 1 | #! stap -p4 |
| 2 | |
| 3 | probe scheduler.ctxswitch |
| 4 | { |
| 5 | printf("%s\n", name) |
| 6 | printf("prev: pid %d, priority %d, state %d, task_name %s, tid %d\n", |
| 7 | prev_pid, prev_priority, prevtsk_state, |
| 8 | prev_task_name, prev_tid) |
| 9 | printf("next: pid %d, priority %d, state %d, task_name %s, tid %d\n", |
| 10 | next_pid, next_priority, nexttsk_state, |
| 11 | next_task_name, next_tid) |
| 12 | } |