timers: Reinitialize per cpu bases on hotplug
[linux/fpc-iii.git] / tools / perf / check-headers.sh
blob6db9d809fe9722a9e4eb0afb5140443490aa43e3
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
4 HEADERS='
5 include/uapi/drm/drm.h
6 include/uapi/drm/i915_drm.h
7 include/uapi/linux/fcntl.h
8 include/uapi/linux/kcmp.h
9 include/uapi/linux/kvm.h
10 include/uapi/linux/perf_event.h
11 include/uapi/linux/prctl.h
12 include/uapi/linux/sched.h
13 include/uapi/linux/stat.h
14 include/uapi/linux/vhost.h
15 include/uapi/sound/asound.h
16 include/linux/hash.h
17 include/uapi/linux/hw_breakpoint.h
18 arch/x86/include/asm/disabled-features.h
19 arch/x86/include/asm/required-features.h
20 arch/x86/include/asm/cpufeatures.h
21 arch/arm/include/uapi/asm/perf_regs.h
22 arch/arm64/include/uapi/asm/perf_regs.h
23 arch/powerpc/include/uapi/asm/perf_regs.h
24 arch/x86/include/uapi/asm/perf_regs.h
25 arch/x86/include/uapi/asm/kvm.h
26 arch/x86/include/uapi/asm/kvm_perf.h
27 arch/x86/include/uapi/asm/svm.h
28 arch/x86/include/uapi/asm/unistd.h
29 arch/x86/include/uapi/asm/vmx.h
30 arch/powerpc/include/uapi/asm/kvm.h
31 arch/s390/include/uapi/asm/kvm.h
32 arch/s390/include/uapi/asm/kvm_perf.h
33 arch/s390/include/uapi/asm/ptrace.h
34 arch/s390/include/uapi/asm/sie.h
35 arch/arm/include/uapi/asm/kvm.h
36 arch/arm64/include/uapi/asm/kvm.h
37 include/asm-generic/bitops/arch_hweight.h
38 include/asm-generic/bitops/const_hweight.h
39 include/asm-generic/bitops/__fls.h
40 include/asm-generic/bitops/fls.h
41 include/asm-generic/bitops/fls64.h
42 include/linux/coresight-pmu.h
43 include/uapi/asm-generic/ioctls.h
44 include/uapi/asm-generic/mman-common.h
47 check () {
48 file=$1
49 opts="--ignore-blank-lines --ignore-space-change"
51 shift
52 while [ -n "$*" ]; do
53 opts="$opts \"$1\""
54 shift
55 done
57 cmd="diff $opts ../$file ../../$file > /dev/null"
59 test -f ../../$file &&
60 eval $cmd || echo "Warning: Kernel ABI header at 'tools/$file' differs from latest version at '$file'" >&2
64 # Check if we have the kernel headers (tools/perf/../../include), else
65 # we're probably on a detached tarball, so no point in trying to check
66 # differences.
67 test -d ../../include || exit 0
69 # simple diff check
70 for i in $HEADERS; do
71 check $i -B
72 done
74 # diff with extra ignore lines
75 check arch/x86/lib/memcpy_64.S -I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>"
76 check arch/x86/lib/memset_64.S -I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>"
77 check include/uapi/asm-generic/mman.h -I "^#include <\(uapi/\)*asm-generic/mman-common.h>"
78 check include/uapi/linux/mman.h -I "^#include <\(uapi/\)*asm/mman.h>"