I write all my module's logs to ftrace., and could not get my log prior to kernel panic occurs. Is there any way/trick to dump the entire /d/tracing/trace into a file when kernel panic occurs? enabled all ftrace related configs and tried with,
"echo -n 0x1 > /proc/sys/kernel/ftrace_dump_on_oops"
But didn't work. Can anyone please help?