Linux 5.1.15
[linux/fpc-iii.git] / tools / perf / arch / s390 / Makefile
blobdfa6e31034371c26666429678047c037c1aae5dc
1 ifndef NO_DWARF
2 PERF_HAVE_DWARF_REGS := 1
3 endif
4 HAVE_KVM_STAT_SUPPORT := 1
5 PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
8 # Syscall table generation for perf
11 out := $(OUTPUT)arch/s390/include/generated/asm
12 header := $(out)/syscalls_64.c
13 syskrn := $(srctree)/arch/s390/kernel/syscalls/syscall.tbl
14 sysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls
15 sysdef := $(sysprf)/syscall.tbl
16 systbl := $(sysprf)/mksyscalltbl
18 # Create output directory if not already present
19 _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
21 $(header): $(sysdef) $(systbl)
22 @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \
23 (diff -B $(sysdef) $(syskrn) >/dev/null) \
24 || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true
25 $(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
27 clean::
28 $(call QUIET_CLEAN, s390) $(RM) $(header)
30 archheaders: $(header)