tracing: Improve panic/die notifiers
authorGuilherme G. Piccoli <gpiccoli@igalia.com>
Fri, 19 Aug 2022 22:17:26 +0000 (19:17 -0300)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 14 Dec 2022 16:17:55 +0000 (11:17 -0500)
commitea47666ca4288becf82c51eb3da6d3ff891470a4
treef94dc900c058f74bc4a338423d8f37e4505b5f1d
parentd0b24b4e91fcb8408c4979888547f86be514e337
tracing: Improve panic/die notifiers

Currently the tracing dump_on_oops feature is implemented through
separate notifiers, one for die/oops and the other for panic;
given they have the same functionality, let's unify them.

Also improve the function comment and change the priority of the
notifier to make it execute earlier, avoiding showing useless trace
data (like the callback names for the other notifiers); finally,
we also removed an unnecessary header inclusion.

Link: https://lkml.kernel.org/r/20220819221731.480795-7-gpiccoli@igalia.com
Cc: Petr Mladek <pmladek@suse.com>
Cc: Sergei Shtylyov <sergei.shtylyov@gmail.com>
Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c