stackcount: Resolve stacks using a StackTrace table
authorVicent Marti <tanoku@gmail.com>
Sun, 27 Mar 2016 16:39:18 +0000 (18:39 +0200)
committerVicent Marti <tanoku@gmail.com>
Sun, 27 Mar 2016 16:51:41 +0000 (18:51 +0200)
commitb4ebed0dfe3894534ded7475ce1d6dfa119e7208
treef8799e29402cf69d2a7382965edeed48fd8b6d3b
parent592414e072d14dfe2ea0cfe57aa1d81df713be4e
stackcount: Resolve stacks using a StackTrace table

The changes for this script are minimal: the inline C probe has been
_significantly_ simplified, and should now perform better since the
stack walk happens in native code inside the kernel thanks to the
BPF_STACK_TRACE table.

The output of the tool should be virtually identical, so the man page
and included examples have essentially no changes.
man/man8/stackcount.8
tools/old/stackcount.py [new file with mode: 0755]
tools/stackcount.py
tools/stackcount_example.txt