diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-06-23 08:43:54 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-08-07 03:46:46 -0400 |
commit | f88455305fc289bc2afe1f9c80598ac92f6363b9 (patch) | |
tree | 7b24d743178810a58d506f6825f7a6887c00964b | |
parent | 6f7261a9e97672bcd791cf0489281a3d20e76f4a (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.c | 3 |
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 | ||
27 | static inline void clear_irq_fired(void) | 30 | static inline void clear_irq_fired(void) |