testsuite/buildok/scheduler-migrate.stp
raw| 1 | #! stap -p4 |
| 2 | |
| 3 | probe scheduler.migrate ? |
| 4 | { |
| 5 | printf("%s\n", name) |
| 6 | printf("pid = %d, priority = %d\n", pid, priority) |
| 7 | printf("%p %d/%d\n", task, cpu_from, cpu_to) |
| 8 | } |
| 9 | |
| 10 | # Make sure this file compiles on kernels where scheduler.migrate |
| 11 | # doesn't exist. |
| 12 | probe begin |
| 13 | { |
| 14 | printf("begin\n") |
| 15 | } |