Skip to content

Instantly share code, notes, and snippets.

@samalba
Forked from jpetazzo/gist:5400376
Created April 16, 2013 23:04
Show Gist options
  • Save samalba/5400413 to your computer and use it in GitHub Desktop.
Save samalba/5400413 to your computer and use it in GitHub Desktop.
echo workqueue:workqueue_queue_work > /sys/kernel/debug/tracing/set_event
cat /sys/kernel/debug/tracing/trace_pipe > out.txt
(Leave it running a couple of seconds, then Ctrl+C; this is just to flush the buffer)
cat /sys/kernel/debug/tracing/trace_pipe > out.txt
(Leave it running a couple of seconds, then Ctrl+C; this is to recover the data)
cut -d- -f2 out.txt | awk '{print $1}' | sort | uniq -c | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment