can't open trace-cmd output file
Bug #1316047 reported by
Vincent Guittot
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Power Idlestat |
New
|
Medium
|
sandeep tripathy |
Bug Description
The wiki page mentions:
"Without the -t parameter, idlestat will read data from the file created by trace-cmd."
but if your gives a trace-cmd output file to idlestat, it returns:
idlestat: idlestat.c:756: idlestat_load: Assertion `sscanf(buffer, "cpus=%u", &nrcpus) == 1' failed.
Aborted
So you can't use trace-cmd output with idlestat
Changed in linaro-power-idlestat: | |
assignee: | nobody → sandeep tripathy (sandeep-tripathy) |
importance: | Undecided → Medium |
description: | updated |
To post a comment you must log in.
>So you can't use trace-cmd output with idlestat
Right. it only takes idlestat output format.(1)
The ASCII trace data and cpu information needs to be extracted from trace-cmd output file.
To support this trace-cmd header parsing is required as per "trace-cmd.dat - trace-cmd file format".
(1) ------- ------- ------- ------- -
cpu0
cpu1
cpu2
cpu3
idlestat output format:
-------
version = 1
cpus=4 << here it reads the number of cpus
clusterA:
core0
core1
core2
core3
<idle>-0 [002] d..2 14853.939301: cpu_idle: state=1 cpu_id=2
<idle>-0 [000] .N.2 14853.939331: cpu_idle: state=4294967295 cpu_id=0
<idle>-0 [000] d..2 14853.939514: cpu_idle: state=1 cpu_id=0