perf record: Save DSO build-ID for synthesizing
authorNamhyung Kim <namhyung@kernel.org>
Tue, 20 Sep 2022 22:28:22 +0000 (15:28 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 6 Oct 2022 14:12:14 +0000 (11:12 -0300)
commitfd643afc8f605bcbb4181a2ad5eacf3233a47187
treee95ae948f9e66f628108e54c612c3b0b26c15dd2
parentfa2edc07b4643f9dc1db80b2c51ef81f62b26614
perf record: Save DSO build-ID for synthesizing

When synthesizing MMAP2 with build-id, it'd read the same file repeatedly as
it has no idea if it's done already.  Maintain a dsos to check that and skip
the file access if possible.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220920222822.2171056-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/synthetic-events.c