18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ciifndef NO_DWARF 38c2ecf20Sopenharmony_ciPERF_HAVE_DWARF_REGS := 1 48c2ecf20Sopenharmony_ciendif 58c2ecf20Sopenharmony_ciHAVE_KVM_STAT_SUPPORT := 1 68c2ecf20Sopenharmony_ciPERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1 78c2ecf20Sopenharmony_ciPERF_HAVE_JITDUMP := 1 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci### 108c2ecf20Sopenharmony_ci# Syscall table generation 118c2ecf20Sopenharmony_ci# 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciout := $(OUTPUT)arch/x86/include/generated/asm 148c2ecf20Sopenharmony_ciheader := $(out)/syscalls_64.c 158c2ecf20Sopenharmony_cisys := $(srctree)/tools/perf/arch/x86/entry/syscalls 168c2ecf20Sopenharmony_cisystbl := $(sys)/syscalltbl.sh 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci# Create output directory if not already present 198c2ecf20Sopenharmony_ci_dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)') 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci$(header): $(sys)/syscall_64.tbl $(systbl) 228c2ecf20Sopenharmony_ci $(Q)$(SHELL) '$(systbl)' $(sys)/syscall_64.tbl 'x86_64' > $@ 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciclean:: 258c2ecf20Sopenharmony_ci $(call QUIET_CLEAN, x86) $(RM) $(header) 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ciarchheaders: $(header) 28