diff options
| author | Uros Bizjak <[email protected]> | 2024-10-07 08:56:28 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2024-10-09 23:59:49 +0000 |
| commit | eb887c4567d1b0e7684c026fe7df44afa96589e6 (patch) | |
| tree | 7dd9dda1a664633832caeb06abdd1d11197c89cd /rust/helpers/helpers.c | |
| parent | trace/trace_event_perf: remove duplicate samples on the first tracepoint event (diff) | |
| download | kernel-eb887c4567d1b0e7684c026fe7df44afa96589e6.tar.gz kernel-eb887c4567d1b0e7684c026fe7df44afa96589e6.zip | |
tracing: Use atomic64_inc_return() in trace_clock_counter()
Use atomic64_inc_return(&ref) instead of atomic64_add_return(1, &ref)
to use optimized implementation and ease register pressure around
the primitive for targets that implement optimized variant.
Cc: Steven Rostedt <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Uros Bizjak <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
