From: Namhyung Kim <namhyung@kernel.org>
To: Thomas Richter <tmricht@linux.ibm.com>
Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org,
linux-perf-users@vger.kernel.org, acme@kernel.org,
irogers@google.com, agordeev@linux.ibm.com, gor@linux.ibm.com,
sumanthk@linux.ibm.com, hca@linux.ibm.com, japo@linux.ibm.com
Subject: Re: [PATCH 2/3] perf config: Make symbol_conf::addr2line_disable_warn configurable
Date: Wed, 1 Apr 2026 17:01:30 -0700 [thread overview]
Message-ID: <ac2x2lSmDQE8YHgW@google.com> (raw)
In-Reply-To: <20260325120627.1841175-3-tmricht@linux.ibm.com>
On Wed, Mar 25, 2026 at 01:06:25PM +0100, Thomas Richter wrote:
> Make symbol_conf::addr2line_disable_warn configurable by reading
> the perfconfig file. Use section core and addr2line-disable-warn =
> value.
>
> Example:
> # perf config -l
> core.addr2line-timeout=500
> core.addr2line-disable-warn=1
> #
>
> Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
> Cc: Ian Rogers <irogers@google.com>
> ---
> tools/perf/util/config.c | 3 +++
> 1 file changed, 3 insertions(+)
Can you please update Documentation/perf-config.txt as well?
>
> diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c
> index 0452fbc6c085..31541e03aab7 100644
> --- a/tools/perf/util/config.c
> +++ b/tools/perf/util/config.c
> @@ -461,6 +461,9 @@ static int perf_default_core_config(const char *var, const char *value)
> if (!strcmp(var, "core.addr2line-timeout"))
> addr2line_timeout_ms = strtoul(value, NULL, 10);
>
> + if (!strcmp(var, "core.addr2line-disable-warn"))
> + symbol_conf.addr2line_disable_warn = strtoul(value, NULL, 10);
Sashiko review: Please use perf_config_bool().
Thanks,
Namhyung
> +
> /* Add other config variables here. */
> return 0;
> }
> --
> 2.53.0
>
next prev parent reply other threads:[~2026-04-02 0:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-25 12:06 [PATCH 0/3] perf addr2line: Rework disable_add2line_warn Thomas Richter
2026-03-25 12:06 ` [PATCH 1/3] perf config: Rename symbol_conf::disable_add2line_warn Thomas Richter
2026-03-25 15:02 ` Ian Rogers
2026-04-01 20:13 ` Ian Rogers
2026-03-25 12:06 ` [PATCH 2/3] perf config: Make symbol_conf::addr2line_disable_warn configurable Thomas Richter
2026-03-25 15:03 ` Ian Rogers
2026-04-02 0:01 ` Namhyung Kim [this message]
2026-03-25 12:06 ` [PATCH 3/3] perf addr2line: Remove global variable addr2line_timeout_ms Thomas Richter
2026-03-25 15:05 ` Ian Rogers
2026-04-02 0:03 ` Namhyung Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ac2x2lSmDQE8YHgW@google.com \
--to=namhyung@kernel.org \
--cc=acme@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=irogers@google.com \
--cc=japo@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=sumanthk@linux.ibm.com \
--cc=tmricht@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox