2018-07-05 23:13:30

by Kim Phillips

[permalink] [raw]
Subject: [PATCH v2 1/3] tools include: Grab copies of arm64 dependent unistd.h files

Will be used for generating the syscall id/string translation table.

Arm64's unistd.h simply #includes the asm-generic/unistd.h, so,
since we will want to know whether either change, we grab both:

arch/arm64/include/uapi/asm/unistd.h

and

include/uapi/asm-generic/unistd.h

Cc: Ravi Bangoria <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Hendrik Brueckner <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Thomas Richter <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Kim Phillips <[email protected]>
---
Changes in V2:
- used git format-patch --find-copies-harder to show identical copies
are being made of the headers, for easier review.

{arch => tools/arch}/arm64/include/uapi/asm/unistd.h | 0
{include => tools/include}/uapi/asm-generic/unistd.h | 0
tools/perf/check-headers.sh | 2 ++
3 files changed, 2 insertions(+)
copy {arch => tools/arch}/arm64/include/uapi/asm/unistd.h (100%)
copy {include => tools/include}/uapi/asm-generic/unistd.h (100%)

diff --git a/arch/arm64/include/uapi/asm/unistd.h b/tools/arch/arm64/include/uapi/asm/unistd.h
similarity index 100%
copy from arch/arm64/include/uapi/asm/unistd.h
copy to tools/arch/arm64/include/uapi/asm/unistd.h
diff --git a/include/uapi/asm-generic/unistd.h b/tools/include/uapi/asm-generic/unistd.h
similarity index 100%
copy from include/uapi/asm-generic/unistd.h
copy to tools/include/uapi/asm-generic/unistd.h
diff --git a/tools/perf/check-headers.sh b/tools/perf/check-headers.sh
index 10f333e2e825..814aaf269949 100755
--- a/tools/perf/check-headers.sh
+++ b/tools/perf/check-headers.sh
@@ -35,6 +35,7 @@ arch/s390/include/uapi/asm/ptrace.h
arch/s390/include/uapi/asm/sie.h
arch/arm/include/uapi/asm/kvm.h
arch/arm64/include/uapi/asm/kvm.h
+arch/arm64/include/uapi/asm/unistd.h
arch/alpha/include/uapi/asm/errno.h
arch/mips/include/asm/errno.h
arch/mips/include/uapi/asm/errno.h
@@ -53,6 +54,7 @@ include/uapi/asm-generic/errno.h
include/uapi/asm-generic/errno-base.h
include/uapi/asm-generic/ioctls.h
include/uapi/asm-generic/mman-common.h
+include/uapi/asm-generic/unistd.h
'

check_2 () {
--
2.17.1