aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-10-21and ipi irq wakeup source.lcu13Shaojie Sun
There are not only hard irq or soft irq, but also ipi irq wakeing up cpu when cpu entered idle state. so we must add ipi irq info into wakeup source code alse. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-10-18Find source of wakeup irqShaojie Sun
First enable irq ftrace event and capture irq events. Then get the first irq info after cpu entered idle. And count the irq times which waked up cpu. cpuX : enter idle cpuX : softirq_raise | irq_handler_entry (count first irq) cpuX : exit idle Then we will show wakeup irq info as next. cpuX/hardirq id 32, name timer, wakeup count 227 Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-09-22set version number to "0.2"idlestat-0.2Shaojie Sun
Build idlestat tool on android platform. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-09-18Build idlestat tool on Android platform.Shaojie Sun
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>
2013-09-10Set version option -V and version numberidlestat-0.1Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2013-09-10remove dependency on libncursesDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2013-09-10Add cpu topology infoShaojie Sun
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>
2013-09-06Adjust codes to different files.Shaojie Sun
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>
2013-09-02Remove content of this file as we no longer depend on trace-cmd.Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2013-08-05idlestat: get ride of trace-cmdDaniel Lezcano
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>
2013-05-06fix segfault when reading a file with non cpu_idle tracesDaniel Lezcano
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>
2013-01-08initial importDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>