aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2013-06-23 08:43:54 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2013-08-07 03:46:46 -0400
commitf88455305fc289bc2afe1f9c80598ac92f6363b9 (patch)
tree7b24d743178810a58d506f6825f7a6887c00964b
parent6f7261a9e97672bcd791cf0489281a3d20e76f4a (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 790686b1322c..9286569f2523 100644
--- a/litmus/trace.c
+++ b/litmus/trace.c
@@ -22,6 +22,9 @@ void ft_irq_fired(void)
22{ 22{
23 /* Only called with preemptions disabled. */ 23 /* Only called with preemptions disabled. */
24 atomic_inc(&__get_cpu_var(irq_fired_count)); 24 atomic_inc(&__get_cpu_var(irq_fired_count));
25
26 if (has_control_page(current))
27 get_control_page(current)->irq_count++;
25} 28}
26 29
27static inline void clear_irq_fired(void) 30static inline void clear_irq_fired(void)