]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ring-buffer: Do not record in NMI if the arch does not support cmpxchg in NMI
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 13 Dec 2023 22:54:03 +0000 (17:54 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 15 Dec 2023 13:54:26 +0000 (08:54 -0500)
commit712292308af2265cd9b126aedfa987f10f452a33
tree55b808e8ff5016410211331a6acf1329198686bd
parent0aa0e5289cfe984a8a9fdd79ccf46ccf080151f7
ring-buffer: Do not record in NMI if the arch does not support cmpxchg in NMI

As the ring buffer recording requires cmpxchg() to work, if the
architecture does not support cmpxchg in NMI, then do not do any recording
within an NMI.

Link: https://lore.kernel.org/linux-trace-kernel/20231213175403.6fc18540@gandalf.local.home
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c