From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Olsa Subject: Re: [PATCH 1/2] perf symbols: Update the list of kernel idle symbols Date: Mon, 20 Jan 2020 10:28:44 +0100 Message-ID: <20200120092844.GC608405@krava> References: <20200115222949.7247-1-kim.phillips@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20200115222949.7247-1-kim.phillips@amd.com> Sender: linux-kernel-owner@vger.kernel.org To: Kim Phillips Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Cong Wang , Andi Kleen , Jin Yao , Kan Liang , Song Liu , Davidlohr Bueso , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-perf-users.vger.kernel.org On Wed, Jan 15, 2020 at 04:29:48PM -0600, Kim Phillips wrote: > "acpi_idle_do_entry", "acpi_processor_ffh_cstate_enter", and "idle_cpu" > appear in 'perf top' output, at least on AMD systems. > > Add them to perf's idle_symbols list, so they don't dominate 'perf top' > output. > > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Arnaldo Carvalho de Melo > Cc: Mark Rutland > Cc: Alexander Shishkin > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: Cong Wang > Cc: Andi Kleen > Cc: Jin Yao > Cc: Kan Liang > Cc: Kim Phillips > Cc: Song Liu > Cc: Davidlohr Bueso > Cc: linux-perf-users@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Kim Phillips > --- > tools/perf/util/symbol.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c > index 3b379b1296f1..f3120c4f47ad 100644 > --- a/tools/perf/util/symbol.c > +++ b/tools/perf/util/symbol.c > @@ -635,9 +635,12 @@ int modules__parse(const char *filename, void *arg, > static bool symbol__is_idle(const char *name) > { > const char * const idle_symbols[] = { > + "acpi_idle_do_entry", > + "acpi_processor_ffh_cstate_enter", > "arch_cpu_idle", > "cpu_idle", > "cpu_startup_entry", > + "idle_cpu", > "intel_idle", > "default_idle", > "native_safe_halt", ok, at some point we should put this in strlist ;-) Acked-by: Jiri Olsa