Age | Commit message (Collapse) | Author |
|
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>
|