perf tools: Use build_id object in dso
authorJiri Olsa <jolsa@kernel.org>
Tue, 13 Oct 2020 19:24:33 +0000 (21:24 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 Oct 2020 11:44:47 +0000 (08:44 -0300)
commit0aba7f036a56675b7fdc536757b4c49fc76a2208
tree02ec0c96f9e8f6d50aeaad0f29ea67ef0b0fd1a9
parent79bbbabd227897745786e81ed814ad86c5e1295d
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>
15 files changed:
tools/perf/bench/inject-buildid.c
tools/perf/builtin-buildid-cache.c
tools/perf/builtin-inject.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/dso.h
tools/perf/util/dsos.c
tools/perf/util/header.c
tools/perf/util/map.c
tools/perf/util/probe-event.c
tools/perf/util/scripting-engines/trace-event-python.c
tools/perf/util/symbol.c
tools/perf/util/synthetic-events.c