summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/icoll-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-05-26 00:26:08 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2016-12-12 13:20:10 +0100
commit17277fa1bfb21acf1b880b15db0e799bc623c276 (patch)
treed701fd1cfb0c134761efdd3a8b220ecc09275af0 /firmware/target/arm/imx233/icoll-imx233.h
parenta523c3fcfe40734f3b15fbf086578fa188fc0ec6 (diff)
downloadrockbox-17277fa1bfb21acf1b880b15db0e799bc623c276.tar.gz
rockbox-17277fa1bfb21acf1b880b15db0e799bc623c276.zip
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
Diffstat (limited to 'firmware/target/arm/imx233/icoll-imx233.h')
-rw-r--r--firmware/target/arm/imx233/icoll-imx233.h8
1 files changed, 5 insertions, 3 deletions
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 @@
74 74
75struct imx233_icoll_irq_info_t 75struct imx233_icoll_irq_info_t
76{ 76{
77 bool enabled; 77 bool enabled; /* is IRQ currently enabled ? */
78 unsigned freq; 78 unsigned freq; /* how many times was IRQ fired in the past second */
79 unsigned priority; 79 unsigned priority; /* IRQ priority (0-3) */
80 unsigned max_time; /* maximum time spent in one IRQ during the past second (in us) */
81 unsigned total_time; /* total time spent in IRQ during the past second (in us) */
80}; 82};
81 83
82void imx233_icoll_init(void); 84void imx233_icoll_init(void);