Makefile 899 B

123456789101112131415161718192021222324252627282930
  1. ifndef NO_DWARF
  2. PERF_HAVE_DWARF_REGS := 1
  3. endif
  4. HAVE_KVM_STAT_SUPPORT := 1
  5. PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1
  6. PERF_HAVE_JITDUMP := 1
  7. ###
  8. # Syscall table generation
  9. #
  10. out := $(OUTPUT)arch/x86/include/generated/asm
  11. header := $(out)/syscalls_64.c
  12. sys := $(srctree)/tools/perf/arch/x86/entry/syscalls
  13. systbl := $(sys)/syscalltbl.sh
  14. # Create output directory if not already present
  15. _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
  16. $(header): $(sys)/syscall_64.tbl $(systbl)
  17. @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \
  18. (diff -B arch/x86/entry/syscalls/syscall_64.tbl ../../arch/x86/entry/syscalls/syscall_64.tbl >/dev/null) \
  19. || echo "Warning: x86_64's syscall_64.tbl differs from kernel" >&2 )) || true
  20. $(Q)$(SHELL) '$(systbl)' $(sys)/syscall_64.tbl 'x86_64' > $@
  21. clean::
  22. $(call QUIET_CLEAN, x86) $(RM) $(header)
  23. archheaders: $(header)