Skip to content

Commit 7685ab6

Browse files
Chunyu-Hurostedt
authored andcommitted
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/[email protected] Cc: Joel Fernandes <[email protected]> Cc: [email protected] Fixes: d914ba3 ("tracing: Add support for recording tgid of tasks") Signed-off-by: Chunyu Hu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 3d9622c commit 7685ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace_events.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ static int __ftrace_event_enable_disable(struct trace_event_file *file,
406406

407407
if (file->flags & EVENT_FILE_FL_RECORDED_TGID) {
408408
tracing_stop_tgid_record();
409-
clear_bit(EVENT_FILE_FL_RECORDED_CMD_BIT, &file->flags);
409+
clear_bit(EVENT_FILE_FL_RECORDED_TGID_BIT, &file->flags);
410410
}
411411

412412
call->class->reg(call, TRACE_REG_UNREGISTER, file);

0 commit comments

Comments
 (0)