1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 ifndef NO_DWARF 2 ifndef NO_DWARF 3 PERF_HAVE_DWARF_REGS := 1 3 PERF_HAVE_DWARF_REGS := 1 4 endif 4 endif 5 HAVE_KVM_STAT_SUPPORT := 1 << 6 PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1 << 7 PERF_HAVE_JITDUMP := 1 << 8 5 9 ### !! 6 # Syscall table generation for perf 10 # Syscall table generation !! 7 out := $(OUTPUT)arch/mips/include/generated/asm 11 # !! 8 header := $(out)/syscalls_n64.c 12 !! 9 sysprf := $(srctree)/tools/perf/arch/mips/entry/syscalls 13 generated := $(OUTPUT)arch/x86/include/generat !! 10 sysdef := $(sysprf)/syscall_n64.tbl 14 out := $(generated)/asm !! 11 systbl := $(sysprf)/mksyscalltbl 15 header := $(out)/syscalls_64.c << 16 header_32 := $(out)/syscalls_32.c << 17 sys := $(srctree)/tools/perf/arch/x86/en << 18 systbl := $(sys)/syscalltbl.sh << 19 12 20 # Create output directory if not already prese 13 # Create output directory if not already present 21 $(shell [ -d '$(out)' ] || mkdir -p '$(out)') 14 $(shell [ -d '$(out)' ] || mkdir -p '$(out)') 22 15 23 $(header): $(sys)/syscall_64.tbl $(systbl) !! 16 $(header): $(sysdef) $(systbl) 24 $(Q)$(SHELL) '$(systbl)' $(sys)/syscal !! 17 $(Q)$(SHELL) '$(systbl)' $(sysdef) > $@ 25 << 26 $(header_32): $(sys)/syscall_32.tbl $(systbl) << 27 $(Q)$(SHELL) '$(systbl)' $(sys)/syscal << 28 18 29 clean:: 19 clean:: 30 $(call QUIET_CLEAN, x86) $(RM) -r $(he !! 20 $(call QUIET_CLEAN, mips) $(RM) $(header) 31 21 32 archheaders: $(header) $(header_32) !! 22 archheaders: $(header)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.