From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
To: arnaldo.melo@gmail.com
Cc: Adrian Hunter <adrian.hunter@intel.com>,
Ian Rogers <irogers@google.com>, Jiri Olsa <jolsa@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-perf-users@vger.kernel.org
Subject: Re: [PATCH 1/1] perf probe: Add missing 0x prefix for addresses printed in hexadecimal
Date: Fri, 21 Apr 2023 14:40:31 +0900 [thread overview]
Message-ID: <20230421144031.e79742e0907a39f86175d13f@kernel.org> (raw)
In-Reply-To: <ZEBCyFu2GjTw6qOi@kernel.org>
On Wed, 19 Apr 2023 16:36:40 -0300
arnaldo.melo@gmail.com wrote:
> Hi Masami,
>
> I'm carrying this one in my tree, FYI.
Thanks! this looks good to me!
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
>
> - Arnaldo
>
> ---
>
> To fix this confusing warning:
>
> # perf probe -l
> Failed to find debug information for address 798240
> probe_main:prometheus_new_counter__return (on github.com/prometheus/client_golang/prometheus.NewCounter%return in /home/acme/git/prometheus-uprobes/main with counter)
> #
>
> As that 798240 is printed with PRIx64 but has no letters, better print
> the 0x prefix to disambiguate.
>
> Cc: Adrian Hunter <adrian.hunter@intel.com>
> Cc: Ian Rogers <irogers@google.com>
> Cc: Jiri Olsa <jolsa@kernel.org>
> Cc: Masami Hiramatsu <mhiramat@kernel.org>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Link: https://lore.kernel.org/lkml/
> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
> ---
> tools/perf/util/probe-finder.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
> index 54b49ce85c9f2214..f171360b0ef4db06 100644
> --- a/tools/perf/util/probe-finder.c
> +++ b/tools/perf/util/probe-finder.c
> @@ -1729,7 +1729,7 @@ int debuginfo__find_probe_point(struct debuginfo *dbg, u64 addr,
> addr += baseaddr;
> /* Find cu die */
> if (!dwarf_addrdie(dbg->dbg, (Dwarf_Addr)addr, &cudie)) {
> - pr_warning("Failed to find debug information for address %" PRIx64 "\n",
> + pr_warning("Failed to find debug information for address %#" PRIx64 "\n",
> addr);
> ret = -EINVAL;
> goto end;
> --
> 2.39.2
>
--
Masami Hiramatsu (Google) <mhiramat@kernel.org>
prev parent reply other threads:[~2023-04-21 5:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-19 19:36 [PATCH 1/1] perf probe: Add missing 0x prefix for addresses printed in hexadecimal arnaldo.melo
2023-04-21 5:40 ` Masami Hiramatsu [this message]
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=20230421144031.e79742e0907a39f86175d13f@kernel.org \
--to=mhiramat@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=arnaldo.melo@gmail.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=namhyung@kernel.org \
/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