perf inject: Do not inject BUILD_ID record if MMAP2 has it
authorNamhyung Kim <namhyung@kernel.org>
Mon, 24 May 2021 22:50:51 +0000 (15:50 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 May 2021 12:38:53 +0000 (09:38 -0300)
commitf7fc0d1c915a74ff24acafec31651712f194c19f
tree62767723a89c0231746326b3fe58a0cfc21b3255
parent0c3f7b38d72b924741e1f29a38f89bf91158f5b8
perf inject: Do not inject BUILD_ID record if MMAP2 has it

When PERF_RECORD_MISC_MMAP_BUILD_ID is set, the event has a build-id
of the DSO already so no need to add it again.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20210524225051.1190486-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-inject.c