Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kernel: Use trace_call__##name() at guarded tracepoint call sites

Replace trace_foo() with the new trace_call__foo() at sites already
guarded by trace_foo_enabled(), avoiding a redundant
static_branch_unlikely() re-evaluation inside the tracepoint.
trace_call__foo() calls the tracepoint callbacks directly without
utilizing the static branch again.

Cc: David Vernet <void@manifault.com>
Cc: Andrea Righi <arighi@nvidia.com>
Cc: Changwoo Min <changwoo@igalia.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: Ben Segall <bsegall@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: Thomas Gleixner <tglx@kernel.org>
Cc: "Yury Norov [NVIDIA]" <yury.norov@gmail.com>
Cc: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Roman Kisel <romank@linux.microsoft.com>
Cc: Joel Fernandes <joelagnelf@nvidia.com>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://patch.msgid.link/20260323160052.17528-3-vineeth@bitbyteword.org
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Vineeth Pillai (Google) <vineeth@bitbyteword.org>
Assisted-by: Claude:claude-sonnet-4-6
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Thomas Gleixner <tglx@kernel.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

authored by

Vineeth Pillai (Google) and committed by
Steven Rostedt (Google)
7b1c2d75 677a3d82

+3 -3
+1 -1
kernel/irq_work.c
··· 79 79 static __always_inline void irq_work_raise(struct irq_work *work) 80 80 { 81 81 if (trace_ipi_send_cpu_enabled() && arch_irq_work_has_interrupt()) 82 - trace_ipi_send_cpu(smp_processor_id(), _RET_IP_, work->func); 82 + trace_call__ipi_send_cpu(smp_processor_id(), _RET_IP_, work->func); 83 83 84 84 arch_irq_work_raise(); 85 85 }
+1 -1
kernel/sched/ext.c
··· 4493 4493 vscnprintf(line_buf, sizeof(line_buf), fmt, args); 4494 4494 va_end(args); 4495 4495 4496 - trace_sched_ext_dump(line_buf); 4496 + trace_call__sched_ext_dump(line_buf); 4497 4497 } 4498 4498 #endif 4499 4499 /* @s may be zero sized and seq_buf triggers WARN if so */
+1 -1
kernel/smp.c
··· 394 394 func = CSD_TYPE(csd) == CSD_TYPE_TTWU ? 395 395 sched_ttwu_pending : csd->func; 396 396 397 - trace_csd_queue_cpu(cpu, _RET_IP_, func, csd); 397 + trace_call__csd_queue_cpu(cpu, _RET_IP_, func, csd); 398 398 } 399 399 400 400 /*