summaryrefslogtreecommitdiff
path: root/kernel/trace/rv/reactor_panic.c
diff options
context:
space:
mode:
authorNam Cao <namcao@linutronix.de>2025-07-09 21:21:15 +0200
committerSteven Rostedt (Google) <rostedt@goodmis.org>2025-07-09 15:27:00 -0400
commitff4e233d8ab70fe6ae460ecc8c0e5b24dd0fedb0 (patch)
tree3679b21a61effb95d8c68c04b1546c2c8f9e8c8d /kernel/trace/rv/reactor_panic.c
parent3f045de7f557850ca6b3632c6d45c2cdaf948694 (diff)
rv: Let the reactors take care of buffers
Each RV monitor has one static buffer to send to the reactors. If multiple errors are detected simultaneously, the one buffer could be overwritten. Instead, leave it to the reactors to handle buffering. Reviewed-by: Gabriele Monaco <gmonaco@redhat.com> Signed-off-by: Nam Cao <namcao@linutronix.de> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/rv/reactor_panic.c')
-rw-r--r--kernel/trace/rv/reactor_panic.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/trace/rv/reactor_panic.c b/kernel/trace/rv/reactor_panic.c
index 0186ff4cbd0b..74c6bcc2c749 100644
--- a/kernel/trace/rv/reactor_panic.c
+++ b/kernel/trace/rv/reactor_panic.c
@@ -13,9 +13,13 @@
#include <linux/init.h>
#include <linux/rv.h>
-static void rv_panic_reaction(char *msg)
+__printf(1, 2) static void rv_panic_reaction(const char *msg, ...)
{
- panic(msg);
+ va_list args;
+
+ va_start(args, msg);
+ vpanic(msg, args);
+ va_end(args);
}
static struct rv_reactor rv_panic = {