tracing: Fix clear of RECORDED_TGID flag when disabling trace event
authorChunyu Hu <chuhu@redhat.com>
Tue, 5 Sep 2017 05:36:46 +0000 (13:36 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 5 Sep 2017 16:00:09 +0000 (12:00 -0400)
commit7685ab6c58557c6234f3540260195ecbee7fc4b3
tree7e6df3e7090a3ca24da9682d437adfdfa81b19a3
parent3d9622c12c8873911f4cc0ccdabd0362c2fca06b
tracing: Fix clear of RECORDED_TGID flag when disabling trace event

When disabling one trace event, the RECORDED_TGID flag in the event
file is not correctly cleared. It's clearing RECORDED_CMD flag when
it should clear RECORDED_TGID flag.

Link: http://lkml.kernel.org/r/1504589806-8425-1-git-send-email-chuhu@redhat.com
Cc: Joel Fernandes <joelaf@google.com>
Cc: stable@vger.kernel.org
Fixes: d914ba37d7 ("tracing: Add support for recording tgid of tasks")
Signed-off-by: Chunyu Hu <chuhu@redhat.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events.c