1# SPDX-License-Identifier: GPL-2.0 2ifndef NO_LIBDW 3PERF_HAVE_DWARF_REGS := 1 4endif 5HAVE_KVM_STAT_SUPPORT := 1 6PERF_HAVE_JITDUMP := 1 7 8### 9# Syscall table generation 10# 11 12generated := $(OUTPUT)arch/x86/include/generated 13out := $(generated)/asm 14header := $(out)/syscalls_64.c 15header_32 := $(out)/syscalls_32.c 16sys := $(srctree)/tools/perf/arch/x86/entry/syscalls 17systbl := $(sys)/syscalltbl.sh 18 19# Create output directory if not already present 20$(shell [ -d '$(out)' ] || mkdir -p '$(out)') 21 22$(header): $(sys)/syscall_64.tbl $(systbl) 23 $(Q)$(SHELL) '$(systbl)' $(sys)/syscall_64.tbl 'x86_64' > $@ 24 25$(header_32): $(sys)/syscall_32.tbl $(systbl) 26 $(Q)$(SHELL) '$(systbl)' $(sys)/syscall_32.tbl 'x86' > $@ 27 28clean:: 29 $(call QUIET_CLEAN, x86) $(RM) -r $(header) $(generated) 30 31archheaders: $(header) $(header_32) 32