From 8bee6550e07cd89133cbae0c7a6f6097a2011d58 Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Sun, 9 Aug 2015 13:18:47 +0200 Subject: Feather-Trace: write interrupt counts to control page This patch exports the interrupt counter to userspace via the control page. --- litmus/trace.c | 3 +++ 1 file changed, 3 insertions(+) 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) /* Only called with preemptions disabled. */ atomic_inc(this_cpu_ptr(&irq_fired_count)); atomic_inc(this_cpu_ptr(&cpu_irq_fired_count)); + + if (has_control_page(current)) + get_control_page(current)->irq_count++; } static inline void clear_irq_fired(void) -- cgit v1.2.2