This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |