From 17277fa1bfb21acf1b880b15db0e799bc623c276 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Thu, 26 May 2016 00:26:08 +0100 Subject: imx233: add more icoll statistics Those new statistics give the maximum time an IRQ took and also the total time spent in IRQ, for each IRQ. Hopefully those do not take took much time or space to collect. If this is the case, it can be enabled in debug builds only the future. Change-Id: I05af172897c5cb7ffcc9322452f974d8f968e29d --- firmware/target/arm/imx233/icoll-imx233.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'firmware/target/arm/imx233/icoll-imx233.h') diff --git a/firmware/target/arm/imx233/icoll-imx233.h b/firmware/target/arm/imx233/icoll-imx233.h index 20b93648c9..1815c70384 100644 --- a/firmware/target/arm/imx233/icoll-imx233.h +++ b/firmware/target/arm/imx233/icoll-imx233.h @@ -74,9 +74,11 @@ struct imx233_icoll_irq_info_t { - bool enabled; - unsigned freq; - unsigned priority; + bool enabled; /* is IRQ currently enabled ? */ + unsigned freq; /* how many times was IRQ fired in the past second */ + unsigned priority; /* IRQ priority (0-3) */ + unsigned max_time; /* maximum time spent in one IRQ during the past second (in us) */ + unsigned total_time; /* total time spent in IRQ during the past second (in us) */ }; void imx233_icoll_init(void); -- cgit v1.2.3