perf tests: Add test for PE binary format support
authorRemi Bernon <rbernon@codeweavers.com>
Fri, 21 Aug 2020 16:52:38 +0000 (18:52 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 4 Sep 2020 17:38:15 +0000 (14:38 -0300)
commited21d6d7c48e6e96c2d617e304a7ebfbd17b1807
treec73451b740880b6e52a68186df59db77a55ba059
parenteac9a4342e5447cade4d484261a8992e2ec6f138
perf tests: Add test for PE binary format support

This adds a precompiled file in PE binary format, with split debug file,
and tries to read its build_id and .gnu_debuglink sections, as well as
looking up the main symbol from the debug file. This should succeed if
libbfd is supported.

Committer testing:

  $ perf test "PE file support"
  68: PE file support           : Ok
  $

Signed-off-by: Remi Bernon <rbernon@codeweavers.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jacek Caban <jacek@codeweavers.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20200821165238.1340315-3-rbernon@codeweavers.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.perf
tools/perf/tests/Build
tools/perf/tests/builtin-test.c
tools/perf/tests/pe-file-parsing.c [new file with mode: 0644]
tools/perf/tests/pe-file.c [new file with mode: 0644]
tools/perf/tests/pe-file.exe [new file with mode: 0644]
tools/perf/tests/pe-file.exe.debug [new file with mode: 0644]
tools/perf/tests/tests.h