aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2015-08-09 07:18:47 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2015-08-09 06:21:17 -0400
commit8bee6550e07cd89133cbae0c7a6f6097a2011d58 (patch)
tree68f56bc7d6a673b6d84f976da7461249ae6e2ae5
parent508f1b71ac3563b5cbb6d9ca398a30ff3e3a034d (diff)
Feather-Trace: write interrupt counts to control page
This patch exports the interrupt counter to userspace via the control page.
-rw-r--r--litmus/trace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/litmus/trace.c b/litmus/trace.c
index 0e75133c1392..2bcaaf474b7a 100644
--- a/litmus/trace.c
+++ b/litmus/trace.c
@@ -29,6 +29,9 @@ void ft_irq_fired(void)
29 /* Only called with preemptions disabled. */ 29 /* Only called with preemptions disabled. */
30 atomic_inc(this_cpu_ptr(&irq_fired_count)); 30 atomic_inc(this_cpu_ptr(&irq_fired_count));
31 atomic_inc(this_cpu_ptr(&cpu_irq_fired_count)); 31 atomic_inc(this_cpu_ptr(&cpu_irq_fired_count));
32
33 if (has_control_page(current))
34 get_control_page(current)->irq_count++;
32} 35}
33 36
34static inline void clear_irq_fired(void) 37static inline void clear_irq_fired(void)