]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/decode_stacktrace: warn when modpath is needed but is unset
authorSasha Levin <sashal@kernel.org>
Mon, 15 Jun 2020 22:24:27 +0000 (18:24 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 15 Jun 2020 22:37:24 +0000 (15:37 -0700)
commit4427b5aa869f0a5722d19afbc1a8d51894283ff6
treeec21a14434f3c1f246d196f03ebc91bbb6cf912b
parent38a0e02763fae80bfdf301d18a6739d696e268a6
scripts/decode_stacktrace: warn when modpath is needed but is unset

When a user tries to parse a symbol located inside a module he must have
modpath set. Otherwise, decode_stacktrace won't be able to parse the
symbol correctly.

Right now the failure is silent and easily missed by the user. What's
worse is that by the time the user realizes what happened (or someone on
LKML asks him to add the modpath and re-run), he might have already got
rid of the vmlinux/modules.

Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/decode_stacktrace.sh