Linux 4.16-rc1
[cris-mirror.git] / tools / perf / arch / s390 / Makefile
blob48228de415d00620d0017e1b215d3d09a951e676
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
8 # Syscall table generation for perf
11 out := $(OUTPUT)arch/s390/include/generated/asm
12 header := $(out)/syscalls_64.c
13 sysdef := $(srctree)/tools/arch/s390/include/uapi/asm/unistd.h
14 sysprf := $(srctree)/tools/perf/arch/s390/entry/syscalls/
15 systbl := $(sysprf)/mksyscalltbl
17 # Create output directory if not already present
18 _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
20 $(header): $(sysdef) $(systbl)
21 $(Q)$(SHELL) '$(systbl)' '$(CC)' $(sysdef) > $@
23 clean::
24 $(call QUIET_CLEAN, s390) $(RM) $(header)
26 archheaders: $(header)