]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add trace_array_find/_get() to find instance trace arrays
authorTom Zanussi <zanussi@kernel.org>
Wed, 29 Jan 2020 18:59:21 +0000 (12:59 -0600)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 30 Jan 2020 14:46:27 +0000 (09:46 -0500)
commitf2dfb102d9b0669f850b16e2e9cdca785c0e0314
tree5c7ff66ce0f2250652c7cbcea3e5e46128c92a4e
parent5699dafcd2137f0dddc723e131def687635cd2cf
tracing: Add trace_array_find/_get() to find instance trace arrays

Add a new trace_array_find() function that can be used to find a trace
array given the instance name, and replace existing code that does the
same thing with it.  Also add trace_array_find_get() which does the
same but returns the trace array after upping its refcount.

Also make both available for use outside of trace.c.

Link: http://lkml.kernel.org/r/cb68528c975eba95bee4561ac67dd1499423b2e5.1580323897.git.zanussi@kernel.org
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h