3 # This ktap script samples stacktrace of system per 10us,
4 # you can use generated output to make a flame graph.
7 # http://dtrace.org/blogs/brendan/2012/03/17/linux-kernel-performance-flame-graphs/
12 #skip 12 stack entries, and dump all remain entries.
13 s[backtrace(12, -1)] <<< 1
21 function cmp(v1, v2) {
22 return (count(v1) < count(v2))
24 for (k, v in sort_pairs(s, cmp)) {