~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/perf/check-headers.sh

Version: ~ [ linux-6.1-rc7 ] ~ [ linux-6.0.10 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.80 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.156 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.225 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.267 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.300 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.334 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.302 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #!/bin/sh
  2 
  3 HEADERS='
  4 include/uapi/linux/fcntl.h
  5 include/uapi/linux/perf_event.h
  6 include/uapi/linux/stat.h
  7 include/linux/hash.h
  8 include/uapi/linux/hw_breakpoint.h
  9 arch/x86/include/asm/disabled-features.h
 10 arch/x86/include/asm/required-features.h
 11 arch/x86/include/asm/cpufeatures.h
 12 arch/arm/include/uapi/asm/perf_regs.h
 13 arch/arm64/include/uapi/asm/perf_regs.h
 14 arch/powerpc/include/uapi/asm/perf_regs.h
 15 arch/x86/include/uapi/asm/perf_regs.h
 16 arch/x86/include/uapi/asm/kvm.h
 17 arch/x86/include/uapi/asm/kvm_perf.h
 18 arch/x86/include/uapi/asm/svm.h
 19 arch/x86/include/uapi/asm/vmx.h
 20 arch/powerpc/include/uapi/asm/kvm.h
 21 arch/s390/include/uapi/asm/kvm.h
 22 arch/s390/include/uapi/asm/kvm_perf.h
 23 arch/s390/include/uapi/asm/sie.h
 24 arch/arm/include/uapi/asm/kvm.h
 25 arch/arm64/include/uapi/asm/kvm.h
 26 include/asm-generic/bitops/arch_hweight.h
 27 include/asm-generic/bitops/const_hweight.h
 28 include/asm-generic/bitops/__fls.h
 29 include/asm-generic/bitops/fls.h
 30 include/asm-generic/bitops/fls64.h
 31 include/linux/coresight-pmu.h
 32 include/uapi/asm-generic/mman-common.h
 33 '
 34 
 35 check () {
 36   file=$1
 37   opts=
 38 
 39   shift
 40   while [ -n "$*" ]; do
 41     opts="$opts \"$1\""
 42     shift
 43   done
 44 
 45   cmd="diff $opts ../$file ../../$file > /dev/null"
 46 
 47   test -f ../../$file &&
 48   eval $cmd || echo "Warning: $file differs from kernel" >&2
 49 }
 50 
 51 
 52 # simple diff check
 53 for i in $HEADERS; do
 54   check $i -B
 55 done
 56 
 57 # diff with extra ignore lines
 58 check arch/x86/lib/memcpy_64.S        -B -I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>"
 59 check arch/x86/lib/memset_64.S        -B -I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>"
 60 check include/uapi/asm-generic/mman.h -B -I "^#include <\(uapi/\)*asm-generic/mman-common.h>"
 61 check include/uapi/linux/mman.h       -B -I "^#include <\(uapi/\)*asm/mman.h>"

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp