[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM9d7ch4k8PFt1fB4MPaGVmz6P4HJZ48Yi6HA_Ec5Pe9GL_F9A@mail.gmail.com>
Date: Tue, 7 Feb 2023 14:22:23 -0800
From: Namhyung Kim <namhyung@...nel.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Jiri Olsa <jolsa@...nel.org>
Cc: Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
LKML <linux-kernel@...r.kernel.org>,
Ian Rogers <irogers@...gle.com>,
Adrian Hunter <adrian.hunter@...el.com>,
linux-perf-users@...r.kernel.org, Will Deacon <will@...nel.org>,
Waiman Long <longman@...hat.com>,
Boqun Feng <boqun.feng@...il.com>,
Davidlohr Bueso <dave@...olabs.net>,
Song Liu <song@...nel.org>, Hao Luo <haoluo@...gle.com>,
bpf@...r.kernel.org
Subject: Re: [PATCH 1/3] perf lock contention: Fix to save callstack for the
default modified
On Mon, Feb 6, 2023 at 4:24 PM Namhyung Kim <namhyung@...nel.org> wrote:
>
> The previous change missed to set the con->save_callstack for the
> LOCK_AGGR_CALLER mode resulting in no caller information.
>
> Fixes: ebab291641be ("perf lock contention: Support filters for different aggregation")
> Signed-off-by: Namhyung Kim <namhyung@...nel.org>
Arnaldo, can you please take this one asap?
Thanks,
Namhyung
> ---
> tools/perf/builtin-lock.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tools/perf/builtin-lock.c b/tools/perf/builtin-lock.c
> index 0d11f301fd72..a4b5c481129c 100644
> --- a/tools/perf/builtin-lock.c
> +++ b/tools/perf/builtin-lock.c
> @@ -1806,6 +1806,9 @@ static int __cmd_contention(int argc, const char **argv)
> con.aggr_mode = aggr_mode = show_thread_stats ? LOCK_AGGR_TASK :
> show_lock_addrs ? LOCK_AGGR_ADDR : LOCK_AGGR_CALLER;
>
> + if (con.aggr_mode == LOCK_AGGR_CALLER)
> + con.save_callstack = true;
> +
> /* for lock function check */
> symbol_conf.sort_by_name = true;
> symbol_conf.allow_aliases = true;
> --
> 2.39.1.519.gcb327c4b5f-goog
>
Powered by blists - more mailing lists