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