mirror_ubuntu-kernels/tools/perf/arch/x86/tests
Arnaldo Carvalho de Melo c1f272df51 perf tests x86: Move insn.h include to make sure it finds stddef.h
In some versions of alpine Linux the perf build is broken since commit
1d509f2a6e ("x86/insn: Support big endian cross-compiles"):

  In file included from /usr/include/linux/byteorder/little_endian.h:13,
                   from /usr/include/asm/byteorder.h:5,
                   from arch/x86/util/../../../../arch/x86/include/asm/insn.h:10,
                   from arch/x86/util/archinsn.c:2:
  /usr/include/linux/swab.h:161:8: error: unknown type name '__always_inline'
   static __always_inline __u16 __swab16p(const __u16 *p)

So move the inclusion of arch/x86/include/asm/insn.h to later in the
places where linux/stddef.h (that conditionally defines
__always_inline) to workaround this problem on Alpine Linux 3.9 to 3.11,
3.12 onwards works.

Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2021-03-06 16:54:32 -03:00
..
arch-tests.c perf test: Support the ins_lat check in the X86 specific test 2021-03-06 16:54:32 -03:00
bp-modify.c perf debug: Remove needless include directives from debug.h 2019-08-31 19:10:19 -03:00
Build perf test: Support the ins_lat check in the X86 specific test 2021-03-06 16:54:32 -03:00
dwarf-unwind.c perf test: Avoid an msan warning in a copied stack. 2020-11-16 14:10:58 -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
insn-x86-dat-32.c perf/tests: Add CET instructions to the new instructions test 2020-03-26 12:31:36 +01:00
insn-x86-dat-64.c perf/tests: Add CET instructions to the new instructions test 2020-03-26 12:31:36 +01:00
insn-x86-dat-src.c perf/tests: Add CET instructions to the new instructions test 2020-03-26 12:31:36 +01:00
insn-x86.c perf tests x86: Move insn.h include to make sure it finds stddef.h 2021-03-06 16:54:32 -03:00
intel-cqm.c perf evlist: Use the right prefix for alternative 'struct evlist' constructors 2020-11-30 15:04:05 -03:00
intel-pt-pkt-decoder-test.c perf intel-pt: Retain the last PIP packet payload as is 2021-02-18 16:13:46 -03:00
rdpmc.c libperf: Move 'page_size' global variable to libperf 2019-09-25 09:51:48 -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: Support the ins_lat check in the X86 specific test 2021-03-06 16:54:32 -03:00