tracing: Attempt to record other information even if some fail
authorJoel Fernandes <joelaf@google.com>
Thu, 6 Jul 2017 23:00:23 +0000 (16:00 -0700)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 7 Jul 2017 13:11:34 +0000 (09:11 -0400)
commit29b1a8ad7df4528b862a79e3d5fb0936f4d199c7
tree9f48435538efa531c87892c454a0832de3e3053a
parentbd45d34d25720a820021c8ea45de5cd607eace64
tracing: Attempt to record other information even if some fail

In recent patches where we record comm and tgid at the same time, we skip
continuing to record if any fail. Fix that by trying to record as many things
as we can even if some couldn't be recorded. If any information isn't recorded,
then we don't set trace_taskinfo_save as before.

Link: http://lkml.kernel.org/r/20170706230023.17942-3-joelaf@google.com
Cc: kernel-team@android.com
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Joel Fernandes <joelaf@google.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c