]> git.ipfire.org Git - thirdparty/linux.git/commit
include: trace: Add tracepoint support for inflight xfer count
authorPhilip Radford <philip.radford@arm.com>
Mon, 30 Jun 2025 10:55:43 +0000 (10:55 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 3 Jul 2025 15:18:09 +0000 (16:18 +0100)
commitf8e656382b4aa45ae51135b72262044550224920
tree0c0f21bb68a4dbe06b5a411a89c7c426052681f0
parenta9cd861e61ae80b441af87f332bc3f44aa0b7c02
include: trace:  Add tracepoint support for inflight xfer count

Enhance the existing SCMI transfer tracepoints by including the current
in-flight transfer count in `scmi_xfer_begin` and `scmi_xfer_end`.

Introduce a new helper `scmi_inflight_count()` to retrieve the active
transfer count from the SCMI debug counters when debug is enabled.

This trace data is useful for visualizing transfer activity over time
and identifying congestion or unexpected behavior in SCMI messaging.

Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Philip Radford <philip.radford@arm.com>
Message-Id: <20250630105544.531723-4-philip.radford@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/driver.c
drivers/firmware/arm_scmi/raw_mode.c
include/trace/events/scmi.h