aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2017-07-31 21:55:12 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-07-31 22:04:59 -0400
commit470de0f39e901611c366fc3d584307ba5d13406a (patch)
treeefc7eac62ccb1626074dd6283c05c36f3408f0e9 /tools
parent6375f0abeea886ec718d8b0aaf99818c7505de14 (diff)
tools perf: Do not check spaces/blank lines when checking header file copy drift
We copy headers from include/, arch/ to allow tools/ use defines, structs from newer kernels and still be able to build on older systems. We then, as part of a build, check if those copies got out of sync, when we emit a warning, so that we can check if something needs to be reflected on the tools, e.g. a 'perf trace' syscall argument beautifier needs tweaking. But we don't have to be super strict with that, for instance, extra spaces, tabs or blank lines aren't problematic, so change check-headers.sh to have "--ignore-blank-lines --ignore-space-change" as default "diff" arguments. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-d8emqpdc3m2qtzt1ei8ra2tf@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/perf/check-headers.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/check-headers.sh b/tools/perf/check-headers.sh
index ff0a5fabf055..3f0c6577f8cc 100755
--- a/tools/perf/check-headers.sh
+++ b/tools/perf/check-headers.sh
@@ -37,7 +37,7 @@ include/uapi/asm-generic/mman-common.h
37 37
38check () { 38check () {
39 file=$1 39 file=$1
40 opts= 40 opts="--ignore-blank-lines --ignore-space-change"
41 41
42 shift 42 shift
43 while [ -n "$*" ]; do 43 while [ -n "$*" ]; do
@@ -58,7 +58,7 @@ for i in $HEADERS; do
58done 58done
59 59
60# diff with extra ignore lines 60# diff with extra ignore lines
61check arch/x86/lib/memcpy_64.S -B -I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>" 61check arch/x86/lib/memcpy_64.S -I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>"
62check arch/x86/lib/memset_64.S -B -I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>" 62check arch/x86/lib/memset_64.S -I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>"
63check include/uapi/asm-generic/mman.h -B -I "^#include <\(uapi/\)*asm-generic/mman-common.h>" 63check include/uapi/asm-generic/mman.h -I "^#include <\(uapi/\)*asm-generic/mman-common.h>"
64check include/uapi/linux/mman.h -B -I "^#include <\(uapi/\)*asm/mman.h>" 64check include/uapi/linux/mman.h -I "^#include <\(uapi/\)*asm/mman.h>"