perf symbols: Add 'intel_idle_irq' to the list of idle symbols
PATCH 1/1 perf symbols: Add 'intel_idle_irq' to the list of idle symbols
Commit 32d4fd5751ea ("cpuidle,intel_idle: Fix CPUIDLE_FLAG_IRQ_ENABLE") introduced intel_idle_irq as entry of those with CPUIDLE_FLAG_IRQ_ENABLE, say, skx and icx so far. Let's add a new one to the list of idle symbols to avoid noise.
--- tools/perf/util/symbol.c | 1 + 1 file changed, 1 insertion(+)
tools/perf/util/symbol.c +1 -0
@@ -730,6 +730,7 @@ static bool symbol__is_idle(const char *name)"cpu_startup_entry" ,"idle_cpu" ,"intel_idle" , +"intel_idle_irq" ,"intel_idle_ibrs" ,"default_idle" , "native_safe_halt",
Signature · 1 line
2.45.2
Ian Rogers
reviewerQuoted 16 lines · Honglei Wang
Commit
32d4fd5751ea("cpuidle,intel_idle: FixCPUIDLE_FLAG_IRQ_ENABLE") introducedintel_idle_irqas entry of those withCPUIDLE_FLAG_IRQ_ENABLE, say, skx and icx so far. Let's add a new one to the list of idle symbols to avoid noise.Signed-off-by Honglei Wang <[email protected]>--- tools/perf/util/symbol.c | 1 + 1 file changed, 1 insertion(+)tools/perf/util/symbol.c +0
-0
tools/perf/util/symbol.c static bool symbol__is_idle(const char *name) · line 733
Quoted 4 lines
tools/perf/util/symbol.c +1
-0@@ -730,6 +730,7 @@ static bool symbol__is_idle(const char *name)"cpu_startup_entry" ,"idle_cpu" ,"intel_idle" , + "intel_idle_irq",
It would be nice to make this an Intel specific idle symbol. I sent out a patch set to do this:
https://lore.kernel.org/lkml/[email protected]/
but there are no reviews. Perhaps we can follow up that patch by adding this symbol. Arnaldo, Namhyung, wdyt? I believe Arnaldo was supportive in:
https://lore.kernel.org/lkml/aahC-zp56irr5e2k@x1/
Thanks,
Ian
Quoted 6 lines
tools/perf/util/symbol.c +0
-1"intel_idle_ibrs" ,"default_idle" , "native_safe_halt", --2.45.2
Namhyung Kim
maintainerQuoted 22 lines · Ian Rogers
Quoted 16 lines · Honglei Wang
Commit
32d4fd5751ea("cpuidle,intel_idle: FixCPUIDLE_FLAG_IRQ_ENABLE") introducedintel_idle_irqas entry of those withCPUIDLE_FLAG_IRQ_ENABLE, say, skx and icx so far. Let's add a new one to the list of idle symbols to avoid noise.Signed-off-by Honglei Wang <[email protected]>--- tools/perf/util/symbol.c | 1 + 1 file changed, 1 insertion(+)tools/perf/util/symbol.c +0
-0tools/perf/util/symbol.c static bool symbol__is_idle(const char *name) · line 733
Quoted 4 lines
tools/perf/util/symbol.c +1
-0@@ -730,6 +730,7 @@ static bool symbol__is_idle(const char *name)"cpu_startup_entry" ,"idle_cpu" ,"intel_idle" , + "intel_idle_irq",
Quoted 7 lines
It would be nice to make this an Intel specific idle symbol. I sent out a patch set to do this:
https://lore.kernel.org/lkml/[email protected]/
but there are no reviews. Perhaps we can follow up that patch by adding this symbol. Arnaldo, Namhyung, wdyt? I believe Arnaldo was supportive in:
https://lore.kernel.org/lkml/aahC-zp56irr5e2k@x1/
Yeah, I'm ok in general. I've left a comment there.
Thanks,
Namhyung
Ian Rogers
reviewerQuoted 32 lines · Namhyung Kim
Quoted 22 lines · Ian Rogers
Quoted 16 lines · Honglei Wang
Commit
32d4fd5751ea("cpuidle,intel_idle: FixCPUIDLE_FLAG_IRQ_ENABLE") introducedintel_idle_irqas entry of those withCPUIDLE_FLAG_IRQ_ENABLE, say, skx and icx so far. Let's add a new one to the list of idle symbols to avoid noise.Signed-off-by Honglei Wang <[email protected]>--- tools/perf/util/symbol.c | 1 + 1 file changed, 1 insertion(+)tools/perf/util/symbol.c +0
-0tools/perf/util/symbol.c static bool symbol__is_idle(const char *name) · line 733
Quoted 4 lines
tools/perf/util/symbol.c +1
-0@@ -730,6 +730,7 @@ static bool symbol__is_idle(const char *name)"cpu_startup_entry" ,"idle_cpu" ,"intel_idle" , + "intel_idle_irq",Quoted 7 lines
It would be nice to make this an Intel specific idle symbol. I sent out a patch set to do this:
https://lore.kernel.org/lkml/[email protected]/
but there are no reviews. Perhaps we can follow up that patch by adding this symbol. Arnaldo, Namhyung, wdyt? I believe Arnaldo was supportive in:
https://lore.kernel.org/lkml/aahC-zp56irr5e2k@x1/
Quoted 1 line
Yeah, I'm ok in general. I've left a comment there.
As that patch adds:
```
if (e_machine == EM_386 || e_machine == EM_X86_64) {
if (strstarts(name, "mwait_idle") ||
strstarts(name, "intel_idle")) {
sym->idle = SYMBOL_IDLE__IDLE;
return true;
}
}
```The strstarts covers intel_idle_irq and that change will incorporate this modification.
Thanks,
Ian
Quoted 2 lines
Thanks,
Namhyung
Quoted 46 lines · Ian Rogers
Quoted 32 lines · Namhyung Kim
Quoted 22 lines · Ian Rogers
Quoted 16 lines · Honglei Wang
Commit
32d4fd5751ea("cpuidle,intel_idle: FixCPUIDLE_FLAG_IRQ_ENABLE") introducedintel_idle_irqas entry of those withCPUIDLE_FLAG_IRQ_ENABLE, say, skx and icx so far. Let's add a new one to the list of idle symbols to avoid noise.Signed-off-by Honglei Wang <[email protected]>--- tools/perf/util/symbol.c | 1 + 1 file changed, 1 insertion(+)tools/perf/util/symbol.c +0
-0tools/perf/util/symbol.c static bool symbol__is_idle(const char *name) · line 733
Quoted 4 lines
tools/perf/util/symbol.c +1
-0@@ -730,6 +730,7 @@ static bool symbol__is_idle(const char *name)"cpu_startup_entry" ,"idle_cpu" ,"intel_idle" , + "intel_idle_irq",Quoted 7 lines
It would be nice to make this an Intel specific idle symbol. I sent out a patch set to do this:
https://lore.kernel.org/lkml/[email protected]/
but there are no reviews. Perhaps we can follow up that patch by adding this symbol. Arnaldo, Namhyung, wdyt? I believe Arnaldo was supportive in:
https://lore.kernel.org/lkml/aahC-zp56irr5e2k@x1/Quoted 1 line
Yeah, I'm ok in general. I've left a comment there.
As that patch adds:
``` if (e_machine == EM_386 || e_machine == EM_X86_64) { if (strstarts(name, "mwait_idle") || strstarts(name, "intel_idle")) { sym->idle = SYMBOL_IDLE__IDLE; return true; } } ```
Quoted 6 lines
The strstarts covers
intel_idle_irqand that change will incorporate this modification.Thanks,
Ian
Sorry, I was a bit busy these two days.. I'm OK to make this general. But at a fast test on my machine with your v2 patch, the intel_idle_irq was still there at top of the output. I'll do more debug to see why it happened.
Thanks,
Honglei
Quoted 2 lines
Quoted 2 lines
Thanks,
Namhyung