Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@adroid:# echo 1 > /sys/kernel/debug/tracing/events/sched/sched_switch/enable
- root@adroid:# echo 1 > /sys/kernel/debug/tracing/tracing_on
- root@adroid:# cat /sys/kernel/debug/tracing/trace > mytracefile.txt
- root@adroid:# echo 0 > /sys/kernel/debug/tracing/tracing_on
- root@adroid:# echo 0 > /sys/kernel/debug/tracing/events/sched/sched_switch/enable
- <idle>-0 [000] d.h7 14186.690000: sched_wakeup: comm=tfm_b6bcf800 pid=1714 prio=35 success=1 target_cpu=000
- <idle>-0 [000] d..3 14186.690000: sched_switch: prev_comm=swapper/0 prev_pid=0 prev_prio=120 prev_state=R ==> next_comm=tfm_b6bcf800 next_pid=1714 next_prio=35
- tfm_b6bcf800-1714 [000] d..3 14186.690000: sched_switch: prev_comm=tfm_b6bcf800 prev_pid=1714 prev_prio=35 prev_state=D|W ==> next_comm=swapper/0 next_pid=0 next_prio=120
- <idle>-0 [001] d.h3 14186.690000: sched_wakeup: comm=Player Aud Mixe pid=146 prio=35 success=1 target_cpu=001
- <idle>-0 [001] d..3 14186.690000: sched_switch: prev_comm=swapper/1 prev_pid=0 prev_prio=120 prev_state=R ==> next_comm=Player Aud Mixe next_pid=146 next_prio=35
- Player Aud Mixe-146 [001] d..3 14186.690000: sched_switch: prev_comm=Player Aud Mixe prev_pid=146 prev_prio=35 prev_state=D ==> next_comm=swapper/1 next_pid=0 next_prio=120
- <idle>-0 [001] d.h3 14186.690000: sched_wakeup: comm=Player Aud Mixe pid=146 prio=35 success=1 target_cpu=001
- <idle>-0 [001] d..3 14186.690000: sched_switch: prev_comm=swapper/1 prev_pid=0 prev_prio=120 prev_state=R ==> next_comm=Player Aud Mixe next_pid=146 next_prio=35
- Player Aud Mixe-146 [001] d..3 14186.690000: sched_switch: prev_comm=Player Aud Mixe prev_pid=146 prev_prio=35 prev_state=S ==> next_comm=swapper/1 next_pid=0 next_prio=120
- <idle>-0 [001] d.h3 14186.700000: sched_wakeup: comm=Player Aud Mixe pid=146 prio=35 success=1 target_cpu=001
- <idle>-0 [001] d..3 14186.700000: sched_switch: prev_comm=swapper/1 prev_pid=0 prev_prio=120 prev_state=R ==> next_comm=Player Aud Mixe next_pid=146 next_prio=35
- <4>[ 38.130000] oom_adj 0 => oom_score_adj 0
- <4>[ 38.130000] oom_adj 1 => oom_score_adj 58
- <4>[ 38.140000] oom_adj 2 => oom_score_adj 117
- <4>[ 38.140000] oom_adj 4 => oom_score_adj 235
- <4>[ 38.150000] oom_adj 9 => oom_score_adj 529
- <4>[ 38.150000] oom_adj 15 => oom_score_adj 1000
- static inline uint64_t my_custom_jiffies(void)
- {
- struct timeval tv;
- gettimeofday(&tv, NULL);
- return tv.tv_sec*1000000 + tv.tv_usec;
- }
- # cat /sys/kernel/tracing/trace_clock
- [local] global counter uptime perf mono mono_raw boot x86-tsc
- # echo x86-tsc > /sys/kernel/tracing/trace_clock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement