Skip to contentSkip to conversation

tools include: Grab copies of arm64 dependent unistd.h files

PATCH Superseded Kim Phillips 1 participant 1 message Jul 3, 2018 perf events

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 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]>
---
 tools/arch/arm64/include/uapi/asm/unistd.h |  20 +
 tools/include/uapi/asm-generic/unistd.h    | 783 +++++++++++++++++++++
 tools/perf/check-headers.sh                |   2 +
 3 files changed, 805 insertions(+)
 create mode 100644 tools/arch/arm64/include/uapi/asm/unistd.h
 create mode 100644 tools/include/uapi/asm-generic/unistd.h
tools/arch/arm64/include/uapi/asm/unistd.h new file +20 -0
new file mode 100644
index 000000000000..5072cbd15c82
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+/*
+ * Copyright (C) 2012 ARM Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#define __ARCH_WANT_RENAMEAT
+
+#include <asm-generic/unistd.h>
tools/include/uapi/asm-generic/unistd.h new file +783 -0

783 lines not on this page · raw message

tools/perf/check-headers.sh +2 -0
index 10f333e2e825..814aaf269949 100755
@@ -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 () {
Signature · 1 line
2.17.1