diff options
| author | Vineeth Pillai <vineeth@bitbyteword.org> | 2026-05-15 16:59:03 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-05-15 17:05:26 +0300 |
| commit | 67ee1f021a9b74ef289934be5e7a474e20031add (patch) | |
| tree | cc5f7a1a8e397b2c22441026a25afb2ac484d7cf | |
| parent | b4e41050b212ca33c82fb0598a7b323d5b18f1bb (diff) | |
| download | linux-67ee1f021a9b74ef289934be5e7a474e20031add.tar.xz | |
io_uring: 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.
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
Link: https://patch.msgid.link/20260515135903.2238731-1-vineeth@bitbyteword.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
| -rw-r--r-- | io_uring/io_uring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index e612a66ee80e..1b657b714373 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -312,7 +312,7 @@ static __always_inline bool io_fill_cqe_req(struct io_ring_ctx *ctx, } if (trace_io_uring_complete_enabled()) - trace_io_uring_complete(req->ctx, req, cqe); + trace_call__io_uring_complete(req->ctx, req, cqe); return true; } |
