From nobody Tue Apr 7 16:16:02 2026 Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 897EB3C661B for ; Thu, 12 Mar 2026 15:05:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773327944; cv=none; b=LNfLvqS8AtdvShTCP3Dof4TdFtlCHpNnl2QS1XX5wYC1lqb5pkaXVKY2jz9rYefwKrDMzdCoR2URRV0TAELMj65LGQBfsB6ibesBv216n5eFhQzjnbt1FgBs9Jm1nthKoCz9+I9DLJG3AtuI26qZ43FGlYZpknDz7ayQeQrnsFo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773327944; c=relaxed/simple; bh=eh50Hy8M+m9+5Jqswyj21q+5Jzog77dKdB0pPNWXKPU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pbfjf9fw5rtP4IgMGPyNaOdf4ojLuR5KMDvPTML+ppJtieC5+jDtjwFR3YUZuoBiNE62oG/Lq31VA7eCqu4Z8HgRo9YQ7+RtATMtGZQrfMTep5ZAMpoKZAhSISxhzIBCIu01KdIRQVhXasQ6vS8EezI9PN3mDxHYJY+XcLj8Cb4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bitbyteword.org; spf=pass smtp.mailfrom=bitbyteword.org; dkim=pass (2048-bit key) header.d=bitbyteword.org header.i=@bitbyteword.org header.b=U+XxDu3c; arc=none smtp.client-ip=209.85.210.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bitbyteword.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bitbyteword.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bitbyteword.org header.i=@bitbyteword.org header.b="U+XxDu3c" Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-7d743cd9e5bso771126a34.2 for ; Thu, 12 Mar 2026 08:05:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitbyteword.org; s=google; t=1773327942; x=1773932742; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KlI+FZk7B/0fQd8imwIG2KMJsSApC3YjCod1ZriPdzE=; b=U+XxDu3cvyGfrRxFJUdjYMWyhbuFzENXF75qbCYug0NSEp4aMj949kW1vt2NoFmFY4 SKrq55BXv+IPS/xj9MQwMB01efUh1kWxT3ZyIw19NkFq8A+TgBbrWybEPTA/Kc0/+U6Q GLMfDy91CgDmuKgThkoC+bsdLCnIq7uaUiAcMQnEXfxWY7hobEWN7TNcaiTXsNRL92sX OXbwnOet549YoY/fkG9dLKl5CAzhJkz9CDuTcsDbbfYNGMdhUm7jcT6XelQionM/A0CD GUbKMfRpMbpdATFZVPwm5QfLo2KP89jeVsqW+gVJA6Iyi6T7rLYJWj1e1v4qIhxU5DOi m+rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773327942; x=1773932742; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=KlI+FZk7B/0fQd8imwIG2KMJsSApC3YjCod1ZriPdzE=; b=P2lR8ri+QsE/co7qPN+gQHEki/dibH6mDj4xqOMwfSTaXPeHkxxy2a7tcaDH8+40bf ASd0BVT40D8bcKM25hzoyJSU0Ubzh3PVguC5QyytkZuUR119ak9How3l0Y8XM3oK3fs6 LrAkcdudKzmbtyFb3XwX845ggmd8rUopY5M/5skcegThyAJoTgqTMapLOFXVZWCqvXV+ fSZFlVcS8Dg152dd09lXdv/byEgScpnGX6dmJMTSOe7BIkL51D+PrgXM+UsovPhSaTih xSHORj/AI5GKDfaFKvw2gKEK8tg15e0SeZ2kF9sP+e1E88oiukizdAi/8lXnyxY4+ZUW fFKQ== X-Forwarded-Encrypted: i=1; AJvYcCXP4n4Pase+koHJMwq2OZXpARPkClRDysG36iYHRJHHkjKisaPpIz2AuxRVyhJr85t8D117DIN1GDccu5k=@vger.kernel.org X-Gm-Message-State: AOJu0YzUV3XHh0+Ok/Q1wnqNAEc6Xuld9+jl1v+rmEaiOIsculPMo1yq w7VZKTcd97KQXErt6+0ndLdMzttrsbUtaxgAju0PjQB+MmicYEyBBZyWX4+rfa2icis= X-Gm-Gg: ATEYQzxCUlOQsgGViLYBszw0sziaJQYDX8cyMJOqm49YyKjACKQhRy3T8bc0UxzGcnp yT9Ro7c3KMEdGC2r6ybvT6AriMq1L790OQv5c2iYXX/i46StGPzFstG4GS5X5O7fPqzcu2yAQ7v NZYitIACAziw7bz6h67KKGYcFnpPWSqDB7r+WAxnLMt7X/3m2kRRTuzQg/Vrisc24j18rldpinc iedywl36p67i99757tfyAtXePaHmCCu0ak3rXGDH7lrZWQanLItOmfn9SQAO8Xn6OPe1WLNBlej 9S/7a4WZePP3rG4L+CmzWKCdQIL+GSUpmE603YCeNP8cjajoGaDjs3v4LuVAcxmFdHzXcXOITtR lmw08niG07sJM9a0WJVlnTRZ14Zmo8CbJeXibUEeBIicUU92nwlgxZJU7TvjJNpI0rK2p9TbkAS qIwpC4MVX6zW/CpnNHMw3nzCW8OCn+2fZlVjact9y3FbJp/2WAp4YfW0MPcl26Oez/aw== X-Received: by 2002:a05:6830:4392:b0:7d7:619c:a655 with SMTP id 46e09a7af769-7d76a84419bmr4749580a34.22.1773327942528; Thu, 12 Mar 2026 08:05:42 -0700 (PDT) Received: from vinmini.lan (c-73-143-21-186.hsd1.vt.comcast.net. [73.143.21.186]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7d76aedae57sm4321776a34.28.2026.03.12.08.05.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2026 08:05:42 -0700 (PDT) From: "Vineeth Pillai (Google)" To: Cc: "Vineeth Pillai (Google)" , Steven Rostedt , Peter Zijlstra , Jens Axboe , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH 03/15] io_uring: Use trace_invoke_##name() at guarded tracepoint call sites Date: Thu, 12 Mar 2026 11:04:58 -0400 Message-ID: <20260312150523.2054552-4-vineeth@bitbyteword.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260312150523.2054552-1-vineeth@bitbyteword.org> References: <20260312150523.2054552-1-vineeth@bitbyteword.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replace trace_foo() with the new trace_invoke_foo() at sites already guarded by trace_foo_enabled(), avoiding a redundant static_branch_unlikely() re-evaluation inside the tracepoint. trace_invoke_foo() calls the tracepoint callbacks directly without utilizing the static branch again. Suggested-by: Steven Rostedt Suggested-by: Peter Zijlstra Signed-off-by: Vineeth Pillai (Google) Assisted-by: Claude:claude-sonnet-4-6 --- io_uring/io_uring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index 0fa844faf2871..68b7656e1547a 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -299,7 +299,7 @@ static __always_inline bool io_fill_cqe_req(struct io_r= ing_ctx *ctx, } =20 if (trace_io_uring_complete_enabled()) - trace_io_uring_complete(req->ctx, req, cqe); + trace_invoke_io_uring_complete(req->ctx, req, cqe); return true; } =20 --=20 2.53.0