Welcome to the Linux Foundation Forum!

how to use decode_stacktrace.sh


Q1: https://docs.kernel.org/admin-guide/bug-hunting.html
It says that

If the kernel is compiled with CONFIG_DEBUG_INFO, you can enhance the quality of the stack trace by using file:scripts/decode_stacktrace.sh.

Is CONFIG_DEBUG_INFO a prerequiste in implementing the script decode_stacktrace.sh?"

Q2: https://lwn.net/Articles/592724/
It says:

./decode_stacktrace.sh vmlinux /home/sasha/linux/ < input.log > output.log

Where can I find the input.log? I know it's sort of stack info. Will it only be available when CONFIG_DEBUG_INFO is y or when there is a kernel panic or opps?



Upcoming Training