From: Arnaldo Carvalho de Melo Date: Thu, 5 Oct 2023 13:29:38 +0000 (-0300) Subject: perf symbols: Add 'intel_idle_ibrs' to the list of idle symbols X-Git-Tag: v6.7-rc1~83^2~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29a2fd7c72b3bd8b67bcee363f8068275a4ef351;p=thirdparty%2Fkernel%2Flinux.git perf symbols: Add 'intel_idle_ibrs' to the list of idle symbols This is a longstanding to do list entry: we need a way to see that a sample took place while in idle state, as the current way to do it is to infer that by the name of the functions that in such state have more samples, IOW: a hack. Maybe we can do flip a bit in samples that take place inside the enter/exit idle section in do_idle()? But till then, add one more :-\ Signed-off-by: Arnaldo Carvalho de Melo Acked-by: Namhyung Kim Cc: Frederic Weisbecker Link: https://lore.kernel.org/r/ZR66Qgbcltt+zG7F@kernel.org Signed-off-by: Namhyung Kim --- diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 2740d4457c13a..96587fd7a5a2e 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c @@ -718,6 +718,7 @@ static bool symbol__is_idle(const char *name) "cpu_startup_entry", "idle_cpu", "intel_idle", + "intel_idle_ibrs", "default_idle", "native_safe_halt", "enter_idle",