processor : 0
model name : ARMv7 Processor rev 4 (v7l)
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc0f
CPU revision : 4
processor : 1
model name : ARMv7 Processor rev 4 (v7l)
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc0f
CPU revision : 4
Hardware : SAMSUNG EXYNOS5 (Flattened Device Tree)
Revision : 0000
Serial : 0000000000000000
The parsing code which gathers information about cpus, fails to parse this file and as a result the vector "all_cpus" remains empty.
I played with it a bit more and added a few lines to get a work around as follows -
in function enumarate_cpus():
if (strncmp(line, "processor\t",10) == 0) {
char *c;
c = strchr(line, ':');
if (c) {
c++;
number = strtoull(c, NULL, 10);
handle_one_cpu(number, "Samsung", 0, 0); [ line added]
set_max_cpu(number); [ line added]
}
}
With this changes, idle stat and frequency pages were populated and summary was shown properly as noted below -
Summary: 392.6 wakeups/second, 0.0 GPU ops/seconds, 0.0 VFS ops/sec and 4.0% CPU use
I think due to this bug, the information shown on summary page was also not correct and some other info displayed by powertop may be incorrect too.
Please comment.