]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
perf tools: Pass build_id object to build_id__sprintf()
authorJiri Olsa <jolsa@kernel.org>
Tue, 13 Oct 2020 19:24:36 +0000 (21:24 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 Oct 2020 11:46:22 +0000 (08:46 -0300)
commitbf5411695a31f7bf07c3e9bad27b442c9224f2a9
treecd090bfab920392d0267adeda271f5024558e531
parent3ff1b8c8cc123f21828ff9538f13f1770a9a4099
perf tools: Pass build_id object to build_id__sprintf()

Passing build_id object to build_id__sprintf function, so it can operate
with the proper size of build id.

This will create proper md5 build id readable names,
like following:

  a50e350e97c43b4708d09bcd85ebfff7

instead of:

  a50e350e97c43b4708d09bcd85ebfff700000000

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20201013192441.1299447-5-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
12 files changed:
tools/perf/builtin-buildid-cache.c
tools/perf/tests/sdt.c
tools/perf/util/annotate.c
tools/perf/util/build-id.c
tools/perf/util/build-id.h
tools/perf/util/dso.c
tools/perf/util/header.c
tools/perf/util/map.c
tools/perf/util/probe-event.c
tools/perf/util/probe-finder.c
tools/perf/util/scripting-engines/trace-event-python.c
tools/perf/util/symbol.c