Skip to content

Commit f8132d6

Browse files
committed
Merge tag 'trace-v5.16-rc2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull another tracing fix from Steven Rostedt: "Fix the fix of pid filtering The setting of the pid filtering flag tested the "trace only this pid" case twice, and ignored the "trace everything but this pid" case. The 5.15 kernel does things a little differently due to the new sparse pid mask introduced in 5.16, and as the bug was discovered running the 5.15 kernel, and the first fix was initially done for that kernel, that fix handled both cases (only pid and all but pid), but the forward port to 5.16 created this bug" * tag 'trace-v5.16-rc2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: tracing: Test the 'Do not trace this pid' case in create event
2 parents 0757ca0 + 27ff768 commit f8132d6

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
@@ -2693,7 +2693,7 @@ trace_create_new_event(struct trace_event_call *call,
26932693
lockdep_is_held(&event_mutex));
26942694

26952695
if (!trace_pid_list_first(pid_list, &first) ||
2696-
!trace_pid_list_first(pid_list, &first))
2696+
!trace_pid_list_first(no_pid_list, &first))
26972697
file->flags |= EVENT_FILE_FL_PID_FILTER;
26982698

26992699
file->event_call = call;

0 commit comments

Comments
 (0)