]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Get trace_array reference for available_tracers files
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 11 Oct 2019 22:19:17 +0000 (18:19 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sun, 13 Oct 2019 00:40:50 +0000 (20:40 -0400)
commit65f8b43c665160f674ca67a3eb1546564119c47b
tree968137a7e069521734daacde26c23244ca1c2089
parent4801440a640e74ddbf17e13e1ba4952e94ca4333
tracing: Get trace_array reference for available_tracers files

As instances may have different tracers available, we need to look at the
trace_array descriptor that shows the list of the available tracers for the
instance. But there's a race between opening the file and an admin
deleting the instance. The trace_array_get() needs to be called before
accessing the trace_array.

Cc: stable@vger.kernel.org
Fixes: 4a0d14e1fc624 ("tracing: Set up infrastructure to allow tracers for instances")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c