example that shows usages of maps, probe_read, get_current_pid helpers
$ ./task_switch.py
task_switch[ 2379-> 0]=4
task_switch[ 3914-> 0]=2
task_switch[ 3133-> 0]=5
task_switch[10903-> 0]=100 <-- 100 times python process switched into idle
task_switch[ 116-> 0]=1
task_switch[ 0-> 14]=1
task_switch[10803-> 0]=1
task_switch[22292-> 0]=1
task_switch[ 0->22292]=1
task_switch[ 0->10803]=1
task_switch[ 30-> 0]=1
task_switch[ 0->10903]=100 <-- 100 times back into python
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Showing
examples/task_switch.c
0 → 100644
examples/task_switch.py
0 → 100755
Please register or sign in to comment