firmware: arm_scmi: Add support for debug metrics at the interface
authorLuke Parkin <luke.parkin@arm.com>
Mon, 5 Aug 2024 13:10:09 +0000 (14:10 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Fri, 9 Aug 2024 13:21:11 +0000 (14:21 +0100)
commit1b18d4295f9d1125bc7a799fc12924cd45fc04b1
tree8f63c8365dc2983529dcc8533ae52bd70de6b6ec
parent20c9234d623cc54caed843739c1f89b305eb3bfa
firmware: arm_scmi: Add support for debug metrics at the interface

Since SCMI involves interaction with the entity(software, firmware and/or
hardware) providing services or features, it is quite useful to track
certain metrics(for pure debugging purposes) like how many messages were
sent or received, were there any failures, what kind of failures, ..etc.

Add a new optional config option for the above purpose and the initial
support for counting such key debug metrics.

Signed-off-by: Luke Parkin <luke.parkin@arm.com>
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Tested-by: Cristian Marussi <cristian.marussi@arm.com>
Message-Id: <20240805131013.587016-3-sudeep.holla@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/Kconfig
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/driver.c