Age | Commit message (Collapse) | Author |
|
There are not only hard irq, but also ipi irq waking
up cpu when cpu entered idle state.
so we must add ipi irq info into wakeup source irq also.
cpuX : enter idle
cpuX : irq_handler_entry | ipi_handler_entry (count first irq)
cpuX : exit idle
Signed-off-by: shaojie.sun <shaojie.sun@linaro.org>
|
|
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>
|
|
Build idlestat tool on android platform.
Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
|
|
Idlestat tool must be used on differenet platform, such as ubuntu,
Android and so on.
Add Android.mk file, then idle tool could be built on Android.
Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
|
|
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
We read cpu top[ology info from /sys/devices/system/cpuX/topology.
Packed them into cpu_topology struct. And print in next format.
clusterA:
coreX
cpuA
cpuB
coreY
cpuC
cpuD
clusterB:
coreS
cpuE
cpuF
coreT
cpuG
cpuH
...
When cpu topology info could be read, CPU idle state is shown
ordered by topology.
When cpu topology info could not be read, CPU idle state is shown
in old order.
Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
As idlestat code will be large, we can't put all codes in one file.
So we seperated file operation codes into utils file.
And we put trace function codes into trace file.
Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
|
|
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
In order to make 'idlestat' a standalone tool, it must collect the traces
itself without passing through the trace-cmd command (which is painful to have
it for ARM).
This patch setup all the traces, acquires and stores the traces for later.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
The code is not designed to handle traces not coming from cpu_idle sub systems.
Ignoring these lines.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|