diff options
author | Alice Ryhl <aliceryhl@google.com> | 2024-12-12 16:12:37 +0300 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2024-12-26 18:38:37 +0300 |
commit | cff6d93eab00bacf8b6bffdef775fc2de0273c96 (patch) | |
tree | 27391463b74d16cf51e7a8a58c5b3c56cc922eb9 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 9e49ca756d207f4313fb7af48648a67da8e4e250 (diff) | |
download | linux-cff6d93eab00bacf8b6bffdef775fc2de0273c96.tar.xz |
tracepoint: Reduce duplication of __DO_TRACE_CALL
The logic for invoking __DO_TRACE_CALL was extracted to a static inline
function called __rust_do_trace_##name so that Rust can call it
directly. This logic does not include the static branch, to avoid a
function call when the tracepoint is disabled.
Since the C code needs to perform the same logic after checking the
static key, this logic is currently duplicated. Thus, remove this
duplication by having C call the static inline function too.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20241212131237.1988409-1-aliceryhl@google.com
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions