Skip to content

Instantly share code, notes, and snippets.

@brendangregg
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brendangregg/5f4dda0071e0cb70ff0a to your computer and use it in GitHub Desktop.
Save brendangregg/5f4dda0071e0cb70ff0a to your computer and use it in GitHub Desktop.
truncated stap stacks
# stap -DMAXACTION=100000 -DMAXBACKTRACE=200 -DMAXSTRINGLEN=2048 -e 'global a; probe scheduler.wakeup { a[backtrace()] <<< 1; } probe end { foreach (s in a+) { print_stack(s); printf("%d\n", @count(a[s])); } }'
WARNING: no or bad debug frame hdr
WARNING: No binary search table for eh frame, doing slow linear search for stap_2f47e23b6460a5b15a4222492730a8f_13345
WARNING: too many pending (warning) messages
[...]
0xffffffffa0511f1b : 0xffffffffa0511f1b [stap_2f47e23b6460a5b15a4222492730a8f_13333+0x7f1b/0x0]
0xffffffffa0513279 : 0xffffffffa0513279 [stap_2f47e23b6460a5b15a4222492730a8f_13333+0x9279/0x0]
0xffffffffa0515283 : 0xffffffffa0515283 [stap_2f47e23b6460a5b15a4222492730a8f_13333+0xb283/0x0]
0xffffffffa050a011 : 0xffffffffa050a011 [stap_2f47e23b6460a5b15a4222492730a8f_13333+0x11/0x0]
0xffffffff810982a2 : 0xffffffff810982a2
0xffffffff8109835d : 0xffffffff8109835d
0xffffffff8109a862 : 0xffffffff8109a862
0xffffffff8109a973 : 0xffffffff8109a973
0xffffffff8108e4e2 : 0xffffffff8108e4e2
0xffffffff8108e787 : 0xffffffff8108e787
0xffffffff8108e4c0 : 0xffffffff8108e4c0
0xffffffff8108ef4f : 0xffffffff8108ef4f
0xffffffff8108f0bb : 0xffffffff8108f0bb
0xffffffff8108f31d : 0xffffffff8108f31d
0xffffffff8108f32e : 0xffffffff8108f32e
0xffffffff8106cc1c : 0xffffffff8106cc1c
0xffffffff8106ce20 : 0xffffffff8106ce20
0xffffffff8109285f : 0xffffffff8109285f
0xffffffff81092760 : 0xffffffff81092760
0xffffffff8108b572 : 0xffffffff8108b572
0xffffffff8108b4a0 : 0xffffffff8108b4a0
0xffffffff817317bc : 0xffffffff817317bc
0xffffffff8108b4a0 : 0xffffffff8108b4a0
60
0xffffffffa0511f1b : 0xffffffffa0511f1b [stap_2f47e23b6460a5b15a4222492730a8f_13333+0x7f1b/0x0]
0xffffffffa0513279 : 0xffffffffa0513279 [stap_2f47e23b6460a5b15a4222492730a8f_13333+0x9279/0x0]
0xffffffffa0515283 : 0xffffffffa0515283 [stap_2f47e23b6460a5b15a4222492730a8f_13333+0xb283/0x0]
0xffffffffa050a011 : 0xffffffffa050a011 [stap_2f47e23b6460a5b15a4222492730a8f_13333+0x11/0x0]
0xffffffff810982a2 : 0xffffffff810982a2
768
swapper 0/0 [002] 5452122.331249: sched:sched_wakeup: comm=sleep pid=4635 prio=120 success=1 target_cpu=002
ffffffff810982a2 ttwu_do_wakeup ([kernel.kallsyms])
ffffffff8109835d ttwu_do_activate.constprop.74 ([kernel.kallsyms])
ffffffff8109a862 try_to_wake_up ([kernel.kallsyms])
ffffffff8109a973 wake_up_process ([kernel.kallsyms])
ffffffff8108e4e2 hrtimer_wakeup ([kernel.kallsyms])
ffffffff8108e787 __run_hrtimer ([kernel.kallsyms])
ffffffff8108ef4f hrtimer_interrupt ([kernel.kallsyms])
ffffffff81043537 local_apic_timer_interrupt ([kernel.kallsyms])
ffffffff81733c4f smp_apic_timer_interrupt ([kernel.kallsyms])
ffffffff817325dd apic_timer_interrupt ([kernel.kallsyms])
ffffffff815d38b9 cpuidle_idle_call ([kernel.kallsyms])
ffffffff8101d35e arch_cpu_idle ([kernel.kallsyms])
ffffffff810bef35 cpu_startup_entry ([kernel.kallsyms])
ffffffff810413fd start_secondary ([kernel.kallsyms])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment