[PATCH v3 3/5] firmware: arm_scmi: Track basic SCMI statistics

Cristian Marussi cristian.marussi at arm.com
Wed Jul 24 07:24:41 PDT 2024


On Mon, Jul 22, 2024 at 01:21:31PM +0100, Luke Parkin wrote:
>  > Just wonder that since ftrace is there, why need this?
> 
> Hi, this series aims to provide a useful debug aid for running tests on the SCMI
> subsystem. As you mentioned, ftrace does report some of these statistics,
> however DEBUG_STATISTICS will allow a programatic interface to access the count
> of failures, successes and an extended variety of other specific
> errors/statistics for automated (or manual) testing.
> 
> Hope this clears things up,
> Luke

Yes, the idea was to have some continuosuly running counters that can be looked
up (when compiled-in, NOT in production) to check for anomalies...ftrace
are certainly more detailed in these regards BUT you have to enable them
at runtime and then dig into the log, and moreover do not cover all of
the cases like these stats...

Thanks,
Cristian




More information about the linux-arm-kernel mailing list