From nobody Mon Mar 23 21:23:16 2026 Received: from mail-oo1-f50.google.com (mail-oo1-f50.google.com [209.85.161.50]) (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 EFA5D3BAD92 for ; Mon, 23 Mar 2026 16:01:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774281679; cv=none; b=YWlfPBuH58ogiIVi515XQwCwBX2u+w2x60bcWkTAgO4F1ISKomc7kkZn5mR9lrl85euFe2pNpPKI810UECQDEq05Q2IziCreAOKWX0ogBt340oNF5JMMUGhkifQ6zFEoFee+A8uAPsYfJMLja5SaQhHYAdG7QS1PmY6rTF5Myyw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774281679; c=relaxed/simple; bh=55sJcEAeOqP1wUV2kAWxr6Nm9zg3ay3zznJQoatj8TE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RypSos7TvhJ9kPq3cIdrWHvIjcMui3ZoxipHzjgCDjNZsGkhxEFwodX5yjvzGbDoiZ7PdM/BxNoGodCNQz0QgJ4uwfZqYSWOq/xqh3gW0Hh5HWuaqITe5suhGuiTFkhm8yBcPWF7YmUfGGKdcVVUYUxpQeKWPb/HXhodP6s483s= 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=a4ALGmuu; arc=none smtp.client-ip=209.85.161.50 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="a4ALGmuu" Received: by mail-oo1-f50.google.com with SMTP id 006d021491bc7-67c2b70124cso1629077eaf.1 for ; Mon, 23 Mar 2026 09:01:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitbyteword.org; s=google; t=1774281677; x=1774886477; 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=8gykI5Ys0pP1nvSBMUxU7kJy0pSWFmdTNGK8Js6c+Xs=; b=a4ALGmuutkidRTHjTTlgtW94BO3VcLgG9iKFKICeZ1ARAOvZwTWCe2WfVWv/fU/Za2 6okh+yu9aA4vKT3mU18xe9yaGDGCV+L1mzQSxq95koV6oG6rl8HB4UVWl+GbqAn5fKmY 7MFIpOs7xYl7Y096u/lsuGr7+OgMODZqWl2QY+O0Wm2MsDBgVNFBnJ/OtYqmER3CzoSl 5MxDHqknR5Oqyo0Is+InXhRvYvjcrn/YKz4Macs37zlPamwMbz0ytIYxl9Fa9bNQAnks hJc4Dq4MEkPJ0ZL5/E6Pm6Pw8V8iTx+ZxF2PK9877Ud+UPk0CD3yGYzh2lFlpqJ1663S fv6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774281677; x=1774886477; 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=8gykI5Ys0pP1nvSBMUxU7kJy0pSWFmdTNGK8Js6c+Xs=; b=FaYrPHr3ypEKNkg7e1fC/5GPWfWboDfZBKBMlnlinwsBUBwIQxzJKOcH/kPeIh6zfa 1ChvqzNSWFneqWoXnNKV4L3ILv5cy37rVERGxCjRRJfVO8+tpsy37Q2alAm+UpWpy6II +LmVbwTDupitFnbNZC1AdHEei02XwU2bB4pC7CvzDbtRVYJ/YksdMTyqLJaLIfTKcY0u Y+WLEPWHAuWnACsS44sIwjWv1Tau+HnoMdYa/23Ass//RNlqXpRoW6ecbJLZWs9Jkcra tOiv2L+DIxwd2GabK/i5vrTZzzrNa/iTbxt/2G5pwLTxw+Y3aNY3UMvDXQ0JMJ+K1QDg ZLSg== X-Forwarded-Encrypted: i=1; AJvYcCXtMg6qr41uAMuU6tlFsITx+PjC/62v5e4JqqFFptE9JFuRk2lPWj3pp0m8V5FUHCTaJKmFCx1XQa4iZoQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwLAWiwMamhqbVjkjGeF4Uhs4OUIt/qnYPIzzzrMG5/iXmQa3oX tyLPR04Es6uXtWbdCWmuA2nNdW8w3wz1Ae378ct8FQ8ejxPuzH1UXeiMGbSVlw52XH8= X-Gm-Gg: ATEYQzx531zzRZB9hn3SJB7d+veW/Q/dKBmSEqbtNcugjr6wirJ9OT7hvpZ9WCop47f 7sHWKCFrqCset39ILdFp7bF9+krBZY1eGkfKVG7jaRnT/wwZTD1rkKkIC53XmLdcCtFZHBpNP5z K9rqey6lccgivH8OJrHipCwbtLG13zmHZiW+zP8X1fXZg0IqEfkXWVa7Wf8iq0aZfkI137MqCJk Lp4lN/wEn54cHxuPWEfMom2HkAgP9SUKMlbn6xo9u+GdFrMRYwUyV9jPQCR8Xn4uQHp6pNCEORA ds2JM+eIg2WzPz+fTMvHoh/lVFXpUwC2ffO+/vn16zBMrJRj93LibM3WkANVRg0xHuFUkRj4BcT OlwqTtVbtAKnDhhFf8HQJl3O0V946GNw2IgOo8T3Z2Xow2iC65YjbqQHxq34e2m6EuOSU3nDjAQ gXis1J4EzZtWKZN/jb/5XmUQjmlgbvPQSma5o2HUZ5jjnKlyaUuncbHo9RXeok4X4nAw== X-Received: by 2002:a05:6820:1888:b0:67d:eb9e:26ca with SMTP id 006d021491bc7-67deb9e296fmr4032624eaf.40.1774281676551; Mon, 23 Mar 2026 09:01:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2026 09:01:16 -0700 (PDT) From: "Vineeth Pillai (Google)" To: Cc: "Vineeth Pillai (Google)" , Steven Rostedt , Peter Zijlstra , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: [PATCH v2 07/19] devfreq: Use trace_call__##name() at guarded tracepoint call sites Date: Mon, 23 Mar 2026 12:00:26 -0400 Message-ID: <20260323160052.17528-8-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 --- drivers/devfreq/devfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index c0a74091b9041..d1b27d9b753df 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -370,7 +370,7 @@ static int devfreq_set_target(struct devfreq *devfreq, = unsigned long new_freq, * change order of between devfreq device and passive devfreq device. */ if (trace_devfreq_frequency_enabled() && new_freq !=3D cur_freq) - trace_devfreq_frequency(devfreq, new_freq, cur_freq); + trace_call__devfreq_frequency(devfreq, new_freq, cur_freq); =20 freqs.new =3D new_freq; devfreq_notify_transition(devfreq, &freqs, DEVFREQ_POSTCHANGE); --=20 2.53.0