diff options
author | 2020-10-13 21:24:36 +0200 | |
---|---|---|
committer | 2020-10-14 08:46:22 -0300 | |
commit | bf5411695a31f7bf07c3e9bad27b442c9224f2a9 (patch) | |
tree | cd090bfab920392d0267adeda271f5024558e531 /tools/perf/util/map.c | |
parent | perf tools: Pass build id object to sysfs__read_build_id() (diff) | |
download | linux-bf5411695a31f7bf07c3e9bad27b442c9224f2a9.tar.gz linux-bf5411695a31f7bf07c3e9bad27b442c9224f2a9.tar.bz2 linux-bf5411695a31f7bf07c3e9bad27b442c9224f2a9.zip |
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>
Diffstat (limited to 'tools/perf/util/map.c')
-rw-r--r-- | tools/perf/util/map.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c index 522df3090b1c..f44ede437dc7 100644 --- a/tools/perf/util/map.c +++ b/tools/perf/util/map.c @@ -331,9 +331,7 @@ int map__load(struct map *map) if (map->dso->has_build_id) { char sbuild_id[SBUILD_ID_SIZE]; - build_id__sprintf(map->dso->bid.data, - sizeof(map->dso->bid.data), - sbuild_id); + build_id__sprintf(&map->dso->bid, sbuild_id); pr_debug("%s with build id %s not found", name, sbuild_id); } else pr_debug("Failed to open %s", name); |