diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-06-23 08:43:54 -0400 |
---|---|---|
committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2014-10-21 10:01:05 -0400 |
commit | f2c8dedbf8d03df6f0a977f9e8aee41227cd8893 (patch) | |
tree | a5ebfad363c8a379ea1a2705ac646e47a000b616 | |
parent | fd09632251e9988dc2d064b80d69f73a3b50e4e9 (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 7eacf2e22bb4..6f2e2954f002 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(&__get_cpu_var(irq_fired_count)); | 30 | atomic_inc(&__get_cpu_var(irq_fired_count)); |
31 | atomic_inc(&__get_cpu_var(cpu_irq_fired_count)); | 31 | atomic_inc(&__get_cpu_var(cpu_irq_fired_count)); |
32 | |||
33 | if (has_control_page(current)) | ||
34 | get_control_page(current)->irq_count++; | ||
32 | } | 35 | } |
33 | 36 | ||
34 | static inline void clear_irq_fired(void) | 37 | static inline void clear_irq_fired(void) |