From nobody Mon Mar 23 21:23:17 2026 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (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 D343E3B9D9C for ; Mon, 23 Mar 2026 16:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774281669; cv=none; b=r8cuaNaNF2FKXD6Rr+WxlY3bSujixCBJthVXQvsZRlH38QkcKZWNOy2CK97CxkP+6d13epg+27uaO58RFqrcq78W4H+3O6JRe/0N+f4yw6fFCR/e6IH/JB+B89Cd2S+PCyZlEOQvBsY1Cv2QyfxW/UeCpuEWKMCbyQsd8XnPDGg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774281669; c=relaxed/simple; bh=Hj2JhMI5b6Lafwdjdamwe1jMGPYt17fp5OkHh3BHS7g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MdFM339zmDMbHpc2yOtfG3VMXACs4dMPMEB4n336doFNPbTDsOEau0vAvFNvD6/dtSY/lAr5Vn5atzpKqakmiNQE1YqpOJ+E5I2spQEMOtOXBg5nOeDfXuOMIemqGcSyVB+m3c27pYSTa7nfm0AGsDBj6re2oAKt53ebNmDdRQc= 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=Q8oFKUkK; arc=none smtp.client-ip=209.85.222.179 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="Q8oFKUkK" Received: by mail-qk1-f179.google.com with SMTP id af79cd13be357-8cbc593a67aso407402085a.2 for ; Mon, 23 Mar 2026 09:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitbyteword.org; s=google; t=1774281667; x=1774886467; 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=a4j4tflgND4Uiq9FcYinLLfKMNOFlVvGkpZDXfO0Vpc=; b=Q8oFKUkKk31RX4VSpufeeZR/L2ttmdhrNRS/xpusWMuJ3uT77h9XdawdBslPDqAxfS QA4JJVHgbpliXhKVMF7XPf1vNWGvVwhLg7FTYKqqCmhLT8bmjFGXuFVuhbDld2OB4Pp8 UFe/LC2eQIueylGEa3HPqAVjfzBCSfMM8yfY0kPltCYPQG/zsfa71kGewEvtUK6B3nqQ pT+sysiqFrsDyA0gA8tea8VFyJ+gIpuiVDN5vxxcJRCxzQVgg7FsiPc154vdyUeBXeGH jYvnXi9eNUGijd+xknI9mShD+y8aK3H2hcGpVW89OGqRzcDbZ9TTb+e2hEFnTvBylti1 srOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774281667; x=1774886467; 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=a4j4tflgND4Uiq9FcYinLLfKMNOFlVvGkpZDXfO0Vpc=; b=FFzwCP1yKn1n631Da1kdsa8buAS02P/2XpJkNlqu2rtaLg1O1O73oppIy5kjDKPJc3 lGOdSOgCEjHM4ZUuj0dz4Sw/m6VXo5aV59WGoAHj4AfVozCIJMHQD98XDvUna5Jkblbq qfoIOwVu3XryI1PZxAE8Evvx4qJxQrrdd7AA4c7M8nxxQA7D4QvFYRw9RieWMMADzwXL abqcSOUmMDS3dITcB/9feHi5bQhcdDY32eN/sosBEFkd9jYsunnHPsytILLxwEmc4l2G L5ITT16tbv6VrQ7hPZj9NP1mwYCo/510tZK9UPaeztji9ty4QHNYKVMByU+cP3KepUpE jYFA== X-Forwarded-Encrypted: i=1; AJvYcCWwvPXFFEND99KkH5qIQAVGgIiZzVAqsFAqJC4YXnGlRJAlg7lKR8pfeMvMPUqbF5bzmDLTn3kTKCMgqa4=@vger.kernel.org X-Gm-Message-State: AOJu0YydzR67Cr29tEgahx0d4enoT0TZBaPmsDDVl/N9ZvhSwYFii7Vm lczZ05aoebL22lM3wS00u5BLpYNJl1WA+EqylqHsDPVuOw16oHoB8VlrW6K5ZIrotMQ= X-Gm-Gg: ATEYQzzMUEU8tujFB2XWv66IVh5IW1OGw5P6PU+2MX0zCwW0ukTkbwDEq0CciOU4Ji3 vBqudzj2AdXnQruJo8jtC1EltiHODplJwknSdqTW043KwfmQTA0JkknoyCOmeGnWzaahuKGPwXh YTx5VZbvOjNijxTvG2m6ISFPoZswa0YdWOdF8vPSRICSaE4BSCmkuNytNzj6kEwtHX0YhM0u8+G 0EQOMN8ZRDUjSgbZhLulTpcGnKvFgXAREqJovdvsRZ9pLweILXPmkFkPr9521l1YV52RFFxIJG+ Sc2hvG23BxtMST42HlHwbUtiEz+A5jOupMXQVz1ing52Ye5RHMwF68s2qVb44G/83EV3QG8HFQC ebfZcns8tGrjEQsRe6cWxKrmajqVOfix9zHRdCoh6BE7qHnP28MHcelwbSXH4U7wphw8ph0rZK6 Jy24bjNHWeiPoXDQiW4OqZnir9i/SHtM7T6EFT6gERH6myO7lxP1ljfSBPVs7ExHuGVu62kL54y NjV X-Received: by 2002:a05:620a:2845:b0:8cd:9033:1724 with SMTP id af79cd13be357-8cfc7b65cb3mr1863344685a.9.1774281666365; Mon, 23 Mar 2026 09:01:06 -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 af79cd13be357-8cfc9088df1sm843364185a.25.2026.03.23.09.01.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2026 09:01:05 -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 v2 03/19] io_uring: Use trace_call__##name() at guarded tracepoint call sites Date: Mon, 23 Mar 2026 12:00:22 -0400 Message-ID: <20260323160052.17528-4-vineeth@bitbyteword.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260323160052.17528-1-vineeth@bitbyteword.org> References: <20260323160052.17528-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_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 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..e99975ffdda12 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_call__io_uring_complete(req->ctx, req, cqe); return true; } =20 --=20 2.53.0