1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00

tracing: Exit out immediately after update_marker_trace()

The call to update_marker_trace() in set_tracer_flag() performs the update
to the tr->trace_flags. There's no reason to perform it again after it is
called. Return immediately instead.

Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://patch.msgid.link/20251106003501.726406870@kernel.org
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
Steven Rostedt 2025-11-05 19:33:25 -05:00 committed by Steven Rostedt (Google)
parent 5aa0d18df0
commit 9c5053083e

View File

@ -5254,8 +5254,11 @@ int set_tracer_flag(struct trace_array *tr, u64 mask, int enabled)
}
}
if (mask == TRACE_ITER(COPY_MARKER))
if (mask == TRACE_ITER(COPY_MARKER)) {
update_marker_trace(tr, enabled);
/* update_marker_trace updates the tr->trace_flags */
return 0;
}
if (enabled)
tr->trace_flags |= mask;