Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/wakeuptime: Switch to using tracepoints if available
wakeuptime currently uses kprobes to trace schedule(). Switch to using tracepoints if available. Also, in some builds, try_to_wake_up() may get optimized away causing the script to fail altogether. With this switch, we however see stack trace entries related to BPF too in the end for each trace. While correct, it takes up screen real estate for each backtrace. target: InputThread ffffffffaf000107 secondary_startup_64_no_verify ffffffffb12495f1 start_kernel ffffffffaf10e609 cpu_startup_entry ffffffffaf10e40b do_idle ffffffffaf946849 cpuidle_enter ffffffffaf946577 cpuidle_enter_state ffffffffafc00d02 asm_sysvec_apic_timer_interrupt ffffffffafbbbc86 sysvec_apic_timer_interrupt ffffffffaf0dcc32 irq_exit_rcu ffffffffaf02bc47 do_softirq_own_stack ffffffffafc01112 asm_call_irq_on_stack ffffffffafe000ca __softirqentry_text_start ffffffffaf163a66 run_timer_softirq ffffffffaf1639df __run_timers.part.0 ffffffffaf162f09 call_timer_fn ffffffffaf8c46c3 input_repeat_key ffffffffaf8c318e input_pass_values.part.0 ffffffffaf8c2085 input_to_handler ffffffffaf8c9e81 evdev_events ffffffffaf124a1c __wake_up_common_lock ffffffffaf1248b0 __wake_up_common ffffffffaf375e49 ep_poll_callback ffffffffaf124a1c __wake_up_common_lock ffffffffaf1248b0 __wake_up_common ffffffffaf375e0d ep_poll_callback ffffffffaf124a1c __wake_up_common_lock ffffffffaf1248b0 __wake_up_common ffffffffaf124681 autoremove_wake_function ffffffffaf108e57 try_to_wake_up ffffffffaf107dcc ttwu_do_wakeup ffffffffaf1f48a2 bpf_trace_run1 ffffffffc16879d3 ftrace_trampoline ffffffffaf1f51c9 bpf_get_stackid_raw_tp waker: swapper/0 169325
- Loading branch information