1f602be63SHeiko Carstensifndef NO_DWARF 2f602be63SHeiko CarstensPERF_HAVE_DWARF_REGS := 1 3f602be63SHeiko Carstensendif 43be8e2a0SAlexander YaryginHAVE_KVM_STAT_SUPPORT := 1 5a81c4213SHendrik BruecknerPERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1 6164a747fSHendrik Brueckner 7164a747fSHendrik Brueckner# 8164a747fSHendrik Brueckner# Syscall table generation for perf 9164a747fSHendrik Brueckner# 10164a747fSHendrik Brueckner 11164a747fSHendrik Bruecknerout := $(OUTPUT)arch/s390/include/generated/asm 12164a747fSHendrik Bruecknerheader := $(out)/syscalls_64.c 13690d22d9SHendrik Bruecknersyskrn := $(srctree)/arch/s390/kernel/syscalls/syscall.tbl 14690d22d9SHendrik Bruecknersysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls 15690d22d9SHendrik Bruecknersysdef := $(sysprf)/syscall.tbl 16164a747fSHendrik Bruecknersystbl := $(sysprf)/mksyscalltbl 17164a747fSHendrik Brueckner 18164a747fSHendrik Brueckner# Create output directory if not already present 19164a747fSHendrik Brueckner_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)') 20164a747fSHendrik Brueckner 21164a747fSHendrik Brueckner$(header): $(sysdef) $(systbl) 22690d22d9SHendrik Brueckner @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \ 23690d22d9SHendrik Brueckner (diff -B $(sysdef) $(syskrn) >/dev/null) \ 24690d22d9SHendrik Brueckner || echo "Warning: Kernel ABI header at '$(sysdef)' differs from latest version at '$(syskrn)'" >&2 )) || true 25690d22d9SHendrik Brueckner $(Q)$(SHELL) '$(systbl)' $(sysdef) > $@ 26164a747fSHendrik Brueckner 27164a747fSHendrik Bruecknerclean:: 28164a747fSHendrik Brueckner $(call QUIET_CLEAN, s390) $(RM) $(header) 29164a747fSHendrik Brueckner 30164a747fSHendrik Bruecknerarchheaders: $(header) 31