]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing: Documentation: Update histogram-design.rst for fn() handling
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 26 Jan 2026 23:17:42 +0000 (18:17 -0500)
committerJonathan Corbet <corbet@lwn.net>
Thu, 9 Apr 2026 14:46:39 +0000 (08:46 -0600)
commit1eab6493f525910aa7bc383a2a27b68916e3c616
tree7d982f9a8e50424ed4f4dc5b74130c104783d4d1
parent136799e52c4d3ebf14705ffffb69b8c7ae6f03ae
tracing: Documentation: Update histogram-design.rst for fn() handling

The histogram documentation describes the old method of the histogram
triggers using the fn() field of the histogram field structure to process
the field. But due to Spectre mitigation, the function pointer to handle
the fields at runtime caused a noticeable overhead. It was converted over
to a fn_num and hist_fn_call() is now used to call the specific functions
for the fields via a switch statement based on the field's fn_num value.

Update the documentation to reflect this change.

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260126181742.03e8f0d5@gandalf.local.home>
Documentation/trace/histogram-design.rst