treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / tools / perf / arch / s390 / Makefile
blob6ac8887be7c9446fbe20d5f10338c758f651f830
1 # SPDX-License-Identifier: GPL-2.0-only
2 ifndef NO_DWARF
3 PERF_HAVE_DWARF_REGS := 1
4 endif
5 HAVE_KVM_STAT_SUPPORT := 1
6 PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
7 PERF_HAVE_JITDUMP := 1
10 # Syscall table generation for perf
13 out := $(OUTPUT)arch/s390/include/generated/asm
14 header := $(out)/syscalls_64.c
15 syskrn := $(srctree)/arch/s390/kernel/syscalls/syscall.tbl
16 sysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls
17 sysdef := $(sysprf)/syscall.tbl
18 systbl := $(sysprf)/mksyscalltbl
20 # Create output directory if not already present
21 _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
23 $(header): $(sysdef) $(systbl)
24 @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \
25 (diff -B $(sysdef) $(syskrn) >/dev/null) \
26 || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true
27 $(Q)$(SHELL) '$(systbl)' $(sysdef) > $@
29 clean::
30 $(call QUIET_CLEAN, s390) $(RM) $(header)
32 archheaders: $(header)