[PATCH v4 3/3] PCI: dw-rockchip: Add pcie_ltssm_state_transition trace support
Steven Rostedt
rostedt at goodmis.org
Wed Feb 25 16:13:42 PST 2026
On Wed, 25 Feb 2026 09:25:16 +0800
Shawn Lin <shawn.lin at rock-chips.com> wrote:
> I must admit I borrow it from arch/powerpc/include/asm/trace.h and
> include/trace/events/i2c.h for reference, where the reg and unreg
> just increase and decrease the ref count to indicate if the tp
> should be continued. Sure, the static branch could be used instead,
> even without reg and unreg implementation.
The i2c.h looks like it should be switched over to the
trace_<tracepoint>_enabled(), but the powerpc enables a static branch
in assembly, so that one does make sense to do it the way it did it.
-- Steve
More information about the Linux-rockchip
mailing list