perf parse-events: Add bison --file-prefix-map option
authorDenys Zagorui <dzagorui@cisco.com>
Mon, 24 May 2021 11:15:14 +0000 (04:15 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 27 May 2021 16:55:28 +0000 (13:55 -0300)
commit6793672accf380f895b2dc39eff90c7f0cc99fb6
treed783604243f033f7989edaa19796a0bbe7f19f38
parentf7fc0d1c915a74ff24acafec31651712f194c19f
perf parse-events: Add bison --file-prefix-map option

During a perf build with O= bison stores full paths in generated files
and those paths are stored in resulting perf binary.

Starting from bison v3.7.1 those paths can be remapped by using the
--file-prefix-map option.  Use this option if possible to make perf
binary more reproducible.

Signed-off-by: Denys Zagorui <dzagorui@cisco.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210524111514.65713-3-dzagorui@cisco.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.config
tools/perf/util/Build