linux/tools/perf/arch/x86/tests
Adrian Hunter d436373a75 perf tests: Make x86 new instructions test optional at build time
The "x86 instruction decoder - new instructions" test takes up space but
is only really useful to developers. Make it optional at build time.

Add variable EXTRA_TESTS which must be defined in order to build perf
with the test.

Example:

  Before:

    $ make -C tools/perf clean >/dev/null
    $ make -C tools/perf >/dev/null
    Makefile.config:650: No libunwind found. Please install libunwind-dev[el] >= 1.1 and/or set LIBUNWIND_DIR
    Makefile.config:1149: libpfm4 not found, disables libpfm4 support. Please install libpfm4-dev
      PERF_VERSION = 6.4.rc3.gd15b8c76c964
    $ readelf -SW tools/perf/perf | grep '\.rela.dyn\|.rodata\|\.data.rel.ro'
      [10] .rela.dyn         RELA            000000000002fcb0 02fcb0 0748b0 18   A  6   0  8
      [18] .rodata           PROGBITS        00000000002eb000 2eb000 6bac00 00   A  0   0 32
      [25] .data.rel.ro      PROGBITS        00000000009ea180 9e9180 04b540 00  WA  0   0 32

  After:

    $ make -C tools/perf clean >/dev/null
    $ make -C tools/perf >/dev/null
    Makefile.config:650: No libunwind found. Please install libunwind-dev[el] >= 1.1 and/or set LIBUNWIND_DIR
    Makefile.config:1154: libpfm4 not found, disables libpfm4 support. Please install libpfm4-dev
      PERF_VERSION = 6.4.rc3.g4ea9c1569ea4
    $ readelf -SW tools/perf/perf | grep '\.rela.dyn\|.rodata\|\.data.rel.ro'
      [10] .rela.dyn         RELA            000000000002f3c8 02f3c8 036d68 18   A  6   0  8
      [18] .rodata           PROGBITS        00000000002ac000 2ac000 68da80 00   A  0   0 32
      [25] .data.rel.ro      PROGBITS        000000000097d440 97c440 022280 00  WA  0   0 32

Committer notes:

Build with 'make EXTRA_TESTS=1 -C tools/perf O=/tmp/build/perf" and
reproduced the ELF section size differences.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
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/683fea7c-f5e9-fa20-f96b-f6233ed5d2a7@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2023-06-13 23:40:32 -03:00
..
arch-tests.c perf tests: Make x86 new instructions test optional at build time 2023-06-13 23:40:32 -03:00
bp-modify.c perf test: Rename struct test to test_suite 2021-11-13 10:32:22 -03:00
Build perf tests: Make x86 new instructions test optional at build time 2023-06-13 23:40:32 -03:00
dwarf-unwind.c perf thread: Add accessor functions for thread 2023-06-12 15:57:53 -03:00
gen-insn-x86-dat.awk treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
gen-insn-x86-dat.sh treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hybrid.c perf pmus: Remove perf_pmus__has_hybrid 2023-05-27 09:42:38 -03:00
insn-x86-dat-32.c perf/tests: Add AVX512-FP16 instructions to x86 instruction decoder test 2022-01-23 20:37:57 +01:00
insn-x86-dat-64.c perf/tests: Add AVX512-FP16 instructions to x86 instruction decoder test 2022-01-23 20:37:57 +01:00
insn-x86-dat-src.c perf/tests: Add AVX512-FP16 instructions to x86 instruction decoder test 2022-01-23 20:37:57 +01:00
insn-x86.c perf test x86: insn-x86 test data is immutable so mark it const 2023-05-28 10:21:13 -03:00
intel-cqm.c perf tools: Do not pass NULL to parse_events() 2022-08-10 14:30:09 -03:00
intel-pt-test.c perf test x86: intel-pt-test data is immutable so mark it const 2023-05-28 10:21:41 -03:00
regs_load.S perf bench: Update the copies of x86's mem{cpy,set}_64.S 2019-12-02 11:40:57 -03:00
sample-parsing.c perf test x86: Support the retire_lat (Retire Latency) sample_type check 2023-02-06 11:53:07 -03:00