summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2026-02-08 13:38:34 -0500
committerSteven Rostedt (Google) <rostedt@goodmis.org>2026-02-08 21:01:13 -0500
commite4c1a09afbe2f02fc66b5ccbc96aa3a7109f9b79 (patch)
treebdcac9f17e05d5e8524bd5eca934efc652e65856 /include/linux/i2c/git@git.tavy.me:linux.git
parent694b3f6fe0b6c86ff75e94302708f5a718027297 (diff)
tracing: Add tracer_uses_snapshot() helper to remove #ifdefs
Instead of having #ifdef CONFIG_TRACER_MAX_TRACE around every access to the struct tracer's use_max_tr field, add a helper function for that access and if CONFIG_TRACER_MAX_TRACE is not configured it just returns false. Cc: Masami Hiramatsu <mhiramat@kernel.org> 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/20260208183856.599390238@kernel.org Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions