linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perf symbols: Add __arch_cpu_idle to the list of idle symbols
@ 2023-07-11 10:22 WANG Xuerui
  0 siblings, 0 replies; only message in thread
From: WANG Xuerui @ 2023-07-11 10:22 UTC (permalink / raw)
  To: linux-perf-users, loongarch
  Cc: WANG Xuerui, Arnaldo Carvalho de Melo, Mark Rutland,
	Alexander Shishkin, Jiri Olsa, Namhyung Kim, Ian Rogers,
	Adrian Hunter, Huacai Chen, Tiezhu Yang

From: WANG Xuerui <git@xen0n.name>

The LoongArch port's idle symbol is named __arch_cpu_idle, which is
different from everyone else, so let's mark it as such.

Signed-off-by: WANG Xuerui <git@xen0n.name>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Tiezhu Yang <yangtiezhu@loongson.cn>
---

This is probably v6.5 material? I'd prefer getting this merged via the
perf tree rather than loongarch, because it's arguably not related to
normal functionality (only noisier perf outputs). 

 tools/perf/util/symbol.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index f849f9ef68e6..94847f794843 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -712,6 +712,7 @@ int modules__parse(const char *filename, void *arg,
 static bool symbol__is_idle(const char *name)
 {
 	const char * const idle_symbols[] = {
+		"__arch_cpu_idle",
 		"acpi_idle_do_entry",
 		"acpi_processor_ffh_cstate_enter",
 		"arch_cpu_idle",
-- 
2.40.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-11 10:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-11 10:22 [PATCH] perf symbols: Add __arch_cpu_idle to the list of idle symbols WANG Xuerui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).