idlestat asserts if CPUs are offline at startup
Bug #1336058 reported by
Colin Ian King
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Power Idlestat |
New
|
Undecided
|
Unassigned |
Bug Description
Running idlestat on an ARM device where the CPUs are offlined when very idle idlestat asserts because pstate is NULL:
root@ubuntu-
...
...
warning: P-states not supported for CPU1
warning: P-states not supported for CPU2
warning: P-states not supported for CPU3
idlestat: idlestat.c:820: idlestat_load: Assertion `datas-
Aborted (core dumped)
This only occurs because on startup the CPUS 1-3 are offline and hence we can't read the pstate info and so this is NULL for these cpus. During the run one or more of these CPUs pop back online, we get a trace event and the code asserts.
summary: |
- idlestat assetrts if CPUs are offline at startup + idlestat asserts if CPUs are offline at startup |
description: | updated |
To post a comment you must log in.
I get this on an x86 machine too with intel_pstate driver being used
king@lenovo: ~/repos/ idlestat$ sudo ./idlestat --trace -f foo -t 10 debug/tracing/ events/ ipi/ipi_ entry/enable' : No such file or directory >pstates[ cpu].pstate != ((void *)0)' failed.
Total trace buffer: 307784 kB
failed to open '/sys/kernel/
warning: P-states not supported for CPU0
warning: P-states not supported for CPU1
warning: P-states not supported for CPU2
warning: P-states not supported for CPU3
idlestat: idlestat.c:1026: idlestat_load: Assertion `datas-
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz