Whamcloud - gitweb
LU-13676 tools: find unique stacks from sysrq-t 56/40956/5
authorAndreas Dilger <adilger@whamcloud.com>
Sun, 13 Dec 2020 11:57:23 +0000 (04:57 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 18 Jan 2021 13:54:03 +0000 (13:54 +0000)
commit3a88442dfffc451b0c598a95d49896e6ba271304
treeeedf253e62b629942399333354b94d3c58f04c9e
parentd8e1ad2cf36634ad8a0676b31a23d8b459247761
LU-13676 tools: find unique stacks from sysrq-t

Enhance the crash-find-unique-traces.awk script to be more useful:
- allow parsing output from sysrq-t
- skip leading fields from input (e.g. timestamps, syslog header)
- sort messages to avoid duplicates
- handle some variance in kernel function names
- print thread names as well as PIDs for all matching threads
- print number of threads matching a particular stack trace
- warn if parts of the stack traces were lost due to buffer overflow

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Icfd70fbf255f413ca1aab0b94c62754e4c00628d
Reviewed-on: https://review.whamcloud.com/40956
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/debug_tools/crash-find-unique-traces.awk