idlestat tool can't be uesd in Arm Android and X86 ubuntu in the same time.

Bug #1219699 reported by shaojie.sun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Power Idlestat
Fix Released
High
shaojie.sun

Bug Description

In TC2 android board, ftrace format is next.
<idle>-0 [002] d... 96510.575528: cpu_idle: state=1 cpu_id=2

But in my X86 ubuntu desktop, ftrace format is next.
<idle>-0 [003] 96510.599500: cpu_idle: state=1 cpu_id=3

When using this format "%*[^]]] %*s %lf:%*[^=]=%u%*[^=]=%d", It can't read the right data form X86 ubuntu desktop.
And when using this format "%*[^]]] %lf:%*[^=]=%u%*[^=]=%d", It can't read the correct data form TC2 android board.

Changed in linaro-power-idlestat:
importance: Undecided → High
Revision history for this message
Daniel Lezcano (daniel-lezcano) wrote :

That happens because the irq-info is set for TC2 and not for x86.

You should add this option on your x86 setup:

echo irq-info > trace_options

It would be worth in the future to set also the same trace options from idlestat on each running host.

Changed in linaro-power-idlestat:
assignee: nobody → shaojie.sun (shaojie-sun)
Revision history for this message
shaojie.sun (shaojie-sun) wrote :

If using Idlestat tool to read the file which reported by trace-cmd. the condition "echo irq-info > trace_options" maybe is not set yet.

and we can use the string "%*[^]]] %*d%lf:%*[^=]=%u%*[^=]=%d" instead of "%*[^]]] %*s %lf:%*[^=]=%u%*[^=]=%d".
And I test it, It can get correct data.

Changed in linaro-power-idlestat:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers