OSDN Git Service

tracing: Have the error logs show up in the proper instances
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 2 Apr 2019 02:52:21 +0000 (22:52 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 8 Apr 2019 13:22:44 +0000 (09:22 -0400)
commit2f754e771b1a6feba670782e82c45555984ac43b
tree61cc094e172790fadfa6c95768317a2aa4030666
parentd0cd871ba0d613e09366e4b6a17946dfcf51db7c
tracing: Have the error logs show up in the proper instances

As each instance has their own error_log file, it makes more sense that the
instances show the errors of their own instead of all error_logs having the
same data. Make it that the errors show up in the instance error_log file
that the error happens in. If no instance trace_array is available, then
NULL can be passed in which will create the error in the top level instance
(the one at the top of the tracefs directory).

Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Tested-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_events_filter.c
kernel/trace/trace_events_hist.c
kernel/trace/trace_probe.c