diff options
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/handle.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index f51eaee921b6..412370ab9a34 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/kernel_stat.h> | 17 | #include <linux/kernel_stat.h> |
18 | #include <linux/rculist.h> | 18 | #include <linux/rculist.h> |
19 | #include <linux/hash.h> | 19 | #include <linux/hash.h> |
20 | #include <trace/irq.h> | ||
20 | #include <linux/bootmem.h> | 21 | #include <linux/bootmem.h> |
21 | 22 | ||
22 | #include "internals.h" | 23 | #include "internals.h" |
@@ -329,6 +330,9 @@ irqreturn_t no_action(int cpl, void *dev_id) | |||
329 | return IRQ_NONE; | 330 | return IRQ_NONE; |
330 | } | 331 | } |
331 | 332 | ||
333 | DEFINE_TRACE(irq_handler_entry); | ||
334 | DEFINE_TRACE(irq_handler_exit); | ||
335 | |||
332 | /** | 336 | /** |
333 | * handle_IRQ_event - irq action chain handler | 337 | * handle_IRQ_event - irq action chain handler |
334 | * @irq: the interrupt number | 338 | * @irq: the interrupt number |
@@ -345,7 +349,9 @@ irqreturn_t handle_IRQ_event(unsigned int irq, struct irqaction *action) | |||
345 | local_irq_enable_in_hardirq(); | 349 | local_irq_enable_in_hardirq(); |
346 | 350 | ||
347 | do { | 351 | do { |
352 | trace_irq_handler_entry(irq, action); | ||
348 | ret = action->handler(irq, action->dev_id); | 353 | ret = action->handler(irq, action->dev_id); |
354 | trace_irq_handler_exit(irq, action, ret); | ||
349 | if (ret == IRQ_HANDLED) | 355 | if (ret == IRQ_HANDLED) |
350 | status |= action->flags; | 356 | status |= action->flags; |
351 | retval |= ret; | 357 | retval |= ret; |