diff options
author | Shaojie Sun <shaojie.sun@linaro.org> | 2013-11-27 19:51:56 +0800 |
---|---|---|
committer | Shaojie Sun <shaojie.sun@linaro.org> | 2013-11-27 19:51:56 +0800 |
commit | 0c0bdc42310194c6090a73d54b5d6f075ce4c3d5 (patch) | |
tree | ebd01c3ed2d54739b1254bf80d4574cf8f725bea /trace.h | |
parent | 5b9c18bca578cb61cee54cc1e127281b8dc7a799 (diff) |
Find source of wakeup irq
First enable irq ftrace event and capture irq events.
Then get the first irq info after cpu entered idle.
And count the irq happend times which waked up cpu.
cpuX : enter idle
cpuX : irq_handler_entry (count first irq)
cpuX : exit idle
Then we will show wakeup irq info as next.
cpuX/hardirq id xx, name xxxxx, wakeup count xxx
Signed-off-by: Shaojie Sun <shaojie.sun@linaro.org>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'trace.h')
-rw-r--r-- | trace.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -7,6 +7,7 @@ #define TRACE_BUFFER_SIZE_PATH TRACE_PATH "/buffer_size_kb" #define TRACE_BUFFER_TOTAL_PATH TRACE_PATH "/buffer_total_size_kb" #define TRACE_CPUIDLE_EVENT_PATH TRACE_PATH "/events/power/cpu_idle/enable" +#define TRACE_IRQ_EVENT_PATH TRACE_PATH "/events/irq/enable" #define TRACE_EVENT_PATH TRACE_PATH "/events/enable" #define TRACE_FREE TRACE_PATH "/free_buffer" #define TRACE_FILE TRACE_PATH "/trace" |