]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tracing/rb: Convert to hotplug state machine
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Sat, 26 Nov 2016 23:13:34 +0000 (00:13 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 1 Dec 2016 23:52:34 +0000 (00:52 +0100)
commitb32614c03413f8a6025d8677c2b7c0ee976e63d4
tree31033ddc3ce2320c4f4faec012b7bfec6199b550
parent14660b7ea3ca628410bb999d53926ca77973892b
tracing/rb: Convert to hotplug state machine

Install the callbacks via the state machine. The notifier in struct
ring_buffer is replaced by the multi instance interface.  Upon
__ring_buffer_alloc() invocation, cpuhp_state_add_instance() will invoke
the trace_rb_cpu_prepare() on each CPU.

This callback may now fail. This means __ring_buffer_alloc() will fail and
cleanup (like previously) and during a CPU up event this failure will not
allow the CPU to come up.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20161126231350.10321-7-bigeasy@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/cpuhotplug.h
include/linux/ring_buffer.h
kernel/trace/ring_buffer.c
kernel/trace/trace.c