]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
perf symbols: Add 'intel_idle_ibrs' to the list of idle symbols
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 5 Oct 2023 13:29:38 +0000 (10:29 -0300)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 12 Oct 2023 17:01:55 +0000 (10:01 -0700)
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 <acme@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/ZR66Qgbcltt+zG7F@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/symbol.c

index 2740d4457c13ad0cdc3cb62b0a49f280cb21e480..96587fd7a5a2e116f0653ae21ab925aeb36a4e2f 100644 (file)
@@ -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",