diff options
author | 2020-10-13 21:24:33 +0200 | |
---|---|---|
committer | 2020-10-14 08:44:47 -0300 | |
commit | 0aba7f036a56675b7fdc536757b4c49fc76a2208 (patch) | |
tree | 02ec0c96f9e8f6d50aeaad0f29ea67ef0b0fd1a9 /tools/perf/util/map.c | |
parent | perf config: Export the perf_config_from_file() function (diff) | |
download | linux-0aba7f036a56675b7fdc536757b4c49fc76a2208.tar.gz linux-0aba7f036a56675b7fdc536757b4c49fc76a2208.tar.bz2 linux-0aba7f036a56675b7fdc536757b4c49fc76a2208.zip |
perf tools: Use build_id object in dso
Replace build_id byte array with struct build_id object and all the code
that references it.
The objective is to carry size together with build id array, so it's
better to keep both together.
This is preparatory change for following patches, and there's no
functional change.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20201013192441.1299447-2-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, 2 insertions, 2 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c index 8b305e624124..522df3090b1c 100644 --- a/tools/perf/util/map.c +++ b/tools/perf/util/map.c @@ -331,8 +331,8 @@ int map__load(struct map *map) if (map->dso->has_build_id) { char sbuild_id[SBUILD_ID_SIZE]; - build_id__sprintf(map->dso->build_id, - sizeof(map->dso->build_id), + build_id__sprintf(map->dso->bid.data, + sizeof(map->dso->bid.data), sbuild_id); pr_debug("%s with build id %s not found", name, sbuild_id); } else |