License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 21:07:57 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2006-06-20 03:45:04 +07:00
|
|
|
/*
|
|
|
|
* List of powerpc syscalls. For the meaning of the _SPU suffix see
|
|
|
|
* arch/powerpc/platforms/cell/spu_callbacks.c
|
|
|
|
*/
|
|
|
|
|
|
|
|
SYSCALL(restart_syscall)
|
|
|
|
SYSCALL(exit)
|
|
|
|
PPC_SYS(fork)
|
|
|
|
SYSCALL_SPU(read)
|
|
|
|
SYSCALL_SPU(write)
|
|
|
|
COMPAT_SYS_SPU(open)
|
|
|
|
SYSCALL_SPU(close)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(waitpid)
|
|
|
|
SYSCALL_SPU(creat)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(link)
|
|
|
|
SYSCALL_SPU(unlink)
|
|
|
|
COMPAT_SYS(execve)
|
|
|
|
SYSCALL_SPU(chdir)
|
|
|
|
COMPAT_SYS_SPU(time)
|
|
|
|
SYSCALL_SPU(mknod)
|
|
|
|
SYSCALL_SPU(chmod)
|
|
|
|
SYSCALL_SPU(lchown)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
OLDSYS(stat)
|
2013-02-24 22:52:26 +07:00
|
|
|
COMPAT_SYS_SPU(lseek)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(getpid)
|
|
|
|
COMPAT_SYS(mount)
|
|
|
|
SYSX(sys_ni_syscall,sys_oldumount,sys_oldumount)
|
|
|
|
SYSCALL_SPU(setuid)
|
|
|
|
SYSCALL_SPU(getuid)
|
|
|
|
COMPAT_SYS_SPU(stime)
|
|
|
|
COMPAT_SYS(ptrace)
|
|
|
|
SYSCALL_SPU(alarm)
|
|
|
|
OLDSYS(fstat)
|
2008-09-01 08:23:30 +07:00
|
|
|
SYSCALL(pause)
|
2006-06-20 03:45:04 +07:00
|
|
|
COMPAT_SYS(utime)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(access)
|
|
|
|
SYSCALL_SPU(nice)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL_SPU(sync)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(kill)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(rename)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(mkdir)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(rmdir)
|
|
|
|
SYSCALL_SPU(dup)
|
|
|
|
SYSCALL_SPU(pipe)
|
|
|
|
COMPAT_SYS_SPU(times)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL_SPU(brk)
|
|
|
|
SYSCALL_SPU(setgid)
|
|
|
|
SYSCALL_SPU(getgid)
|
|
|
|
SYSCALL(signal)
|
|
|
|
SYSCALL_SPU(geteuid)
|
|
|
|
SYSCALL_SPU(getegid)
|
|
|
|
SYSCALL(acct)
|
|
|
|
SYSCALL(umount)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
COMPAT_SYS_SPU(ioctl)
|
|
|
|
COMPAT_SYS_SPU(fcntl)
|
|
|
|
SYSCALL(ni_syscall)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(setpgid)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL(ni_syscall)
|
2014-02-04 12:07:01 +07:00
|
|
|
SYSX(sys_ni_syscall,sys_olduname,sys_olduname)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(umask)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(chroot)
|
2008-11-28 16:09:09 +07:00
|
|
|
COMPAT_SYS(ustat)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(dup2)
|
|
|
|
SYSCALL_SPU(getppid)
|
|
|
|
SYSCALL_SPU(getpgrp)
|
|
|
|
SYSCALL_SPU(setsid)
|
|
|
|
SYS32ONLY(sigaction)
|
|
|
|
SYSCALL_SPU(sgetmask)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(ssetmask)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(setreuid)
|
|
|
|
SYSCALL_SPU(setregid)
|
2012-12-26 04:23:09 +07:00
|
|
|
#define compat_sys_sigsuspend sys_sigsuspend
|
2006-06-20 03:45:04 +07:00
|
|
|
SYS32ONLY(sigsuspend)
|
powerpc: Use standard macros for sys_sigpending() & sys_old_getrlimit()
Currently we have sys_sigpending and sys_old_getrlimit defined to use
COMPAT_SYS() in systbl.h, but then both are #defined to sys_ni_syscall
in systbl.S.
This seems to have been done when ppc and ppc64 were merged, in commit
9994a33 "Introduce entry_{32,64}.S, misc_{32,64}.S, systbl.S".
AFAICS there's no longer (or never was) any need for this, we can just
use SYSX() for both and remove the #defines to sys_ni_syscall.
The expansion before was:
#define COMPAT_SYS(func) .llong .sys_##func,.compat_sys_##func
#define sys_old_getrlimit sys_ni_syscall
COMPAT_SYS(old_getrlimit)
=>
.llong .sys_old_getrlimit,.compat_sys_old_getrlimit
=>
.llong .sys_ni_syscall,.compat_sys_old_getrlimit
After is:
#define SYSX(f, f3264, f32) .llong .f,.f3264
SYSX(sys_ni_syscall, compat_sys_old_getrlimit, sys_old_getrlimit)
=>
.llong .sys_ni_syscall,.compat_sys_old_getrlimit
ie. they are equivalent.
Finally both COMPAT_SYS() and SYSX() evaluate to sys_ni_syscall in the
Cell SPU code.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-06-24 15:15:57 +07:00
|
|
|
SYSX(sys_ni_syscall,compat_sys_sigpending,sys_sigpending)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(sethostname)
|
2006-06-20 03:45:04 +07:00
|
|
|
COMPAT_SYS_SPU(setrlimit)
|
powerpc: Use standard macros for sys_sigpending() & sys_old_getrlimit()
Currently we have sys_sigpending and sys_old_getrlimit defined to use
COMPAT_SYS() in systbl.h, but then both are #defined to sys_ni_syscall
in systbl.S.
This seems to have been done when ppc and ppc64 were merged, in commit
9994a33 "Introduce entry_{32,64}.S, misc_{32,64}.S, systbl.S".
AFAICS there's no longer (or never was) any need for this, we can just
use SYSX() for both and remove the #defines to sys_ni_syscall.
The expansion before was:
#define COMPAT_SYS(func) .llong .sys_##func,.compat_sys_##func
#define sys_old_getrlimit sys_ni_syscall
COMPAT_SYS(old_getrlimit)
=>
.llong .sys_old_getrlimit,.compat_sys_old_getrlimit
=>
.llong .sys_ni_syscall,.compat_sys_old_getrlimit
After is:
#define SYSX(f, f3264, f32) .llong .f,.f3264
SYSX(sys_ni_syscall, compat_sys_old_getrlimit, sys_old_getrlimit)
=>
.llong .sys_ni_syscall,.compat_sys_old_getrlimit
ie. they are equivalent.
Finally both COMPAT_SYS() and SYSX() evaluate to sys_ni_syscall in the
Cell SPU code.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-06-24 15:15:57 +07:00
|
|
|
SYSX(sys_ni_syscall,compat_sys_old_getrlimit,sys_old_getrlimit)
|
2006-06-20 03:45:04 +07:00
|
|
|
COMPAT_SYS_SPU(getrusage)
|
|
|
|
COMPAT_SYS_SPU(gettimeofday)
|
|
|
|
COMPAT_SYS_SPU(settimeofday)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(getgroups)
|
|
|
|
SYSCALL_SPU(setgroups)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSX(sys_ni_syscall,sys_ni_syscall,ppc_select)
|
|
|
|
SYSCALL_SPU(symlink)
|
|
|
|
OLDSYS(lstat)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(readlink)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL(uselib)
|
|
|
|
SYSCALL(swapon)
|
|
|
|
SYSCALL(reboot)
|
2009-01-14 20:13:55 +07:00
|
|
|
SYSX(sys_ni_syscall,compat_sys_old_readdir,sys_old_readdir)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(mmap)
|
|
|
|
SYSCALL_SPU(munmap)
|
2009-07-28 08:54:32 +07:00
|
|
|
COMPAT_SYS_SPU(truncate)
|
|
|
|
COMPAT_SYS_SPU(ftruncate)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(fchmod)
|
|
|
|
SYSCALL_SPU(fchown)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(getpriority)
|
|
|
|
SYSCALL_SPU(setpriority)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
COMPAT_SYS(statfs)
|
|
|
|
COMPAT_SYS(fstatfs)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
COMPAT_SYS_SPU(socketcall)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(syslog)
|
2006-06-20 03:45:04 +07:00
|
|
|
COMPAT_SYS_SPU(setitimer)
|
|
|
|
COMPAT_SYS_SPU(getitimer)
|
|
|
|
COMPAT_SYS_SPU(newstat)
|
|
|
|
COMPAT_SYS_SPU(newlstat)
|
|
|
|
COMPAT_SYS_SPU(newfstat)
|
|
|
|
SYSX(sys_ni_syscall,sys_uname,sys_uname)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL_SPU(vhangup)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
COMPAT_SYS_SPU(wait4)
|
|
|
|
SYSCALL(swapoff)
|
|
|
|
COMPAT_SYS_SPU(sysinfo)
|
|
|
|
COMPAT_SYS(ipc)
|
|
|
|
SYSCALL_SPU(fsync)
|
|
|
|
SYS32ONLY(sigreturn)
|
|
|
|
PPC_SYS(clone)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(setdomainname)
|
2010-03-11 06:21:19 +07:00
|
|
|
SYSCALL_SPU(newuname)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
COMPAT_SYS_SPU(adjtimex)
|
|
|
|
SYSCALL_SPU(mprotect)
|
|
|
|
SYSX(sys_ni_syscall,compat_sys_sigprocmask,sys_sigprocmask)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(init_module)
|
|
|
|
SYSCALL(delete_module)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(quotactl)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(getpgid)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(fchdir)
|
|
|
|
SYSCALL_SPU(bdflush)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(sysfs)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSX_SPU(ppc64_personality,ppc64_personality,sys_personality)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL_SPU(setfsuid)
|
|
|
|
SYSCALL_SPU(setfsgid)
|
|
|
|
SYSCALL_SPU(llseek)
|
|
|
|
COMPAT_SYS_SPU(getdents)
|
2009-11-23 10:25:06 +07:00
|
|
|
SYSX_SPU(sys_select,ppc32_select,sys_select)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(flock)
|
|
|
|
SYSCALL_SPU(msync)
|
|
|
|
COMPAT_SYS_SPU(readv)
|
|
|
|
COMPAT_SYS_SPU(writev)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(getsid)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(fdatasync)
|
|
|
|
COMPAT_SYS(sysctl)
|
|
|
|
SYSCALL_SPU(mlock)
|
|
|
|
SYSCALL_SPU(munlock)
|
|
|
|
SYSCALL_SPU(mlockall)
|
|
|
|
SYSCALL_SPU(munlockall)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(sched_setparam)
|
|
|
|
SYSCALL_SPU(sched_getparam)
|
|
|
|
SYSCALL_SPU(sched_setscheduler)
|
|
|
|
SYSCALL_SPU(sched_getscheduler)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(sched_yield)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(sched_get_priority_max)
|
|
|
|
SYSCALL_SPU(sched_get_priority_min)
|
|
|
|
COMPAT_SYS_SPU(sched_rr_get_interval)
|
2006-06-20 03:45:04 +07:00
|
|
|
COMPAT_SYS_SPU(nanosleep)
|
|
|
|
SYSCALL_SPU(mremap)
|
|
|
|
SYSCALL_SPU(setresuid)
|
|
|
|
SYSCALL_SPU(getresuid)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL_SPU(poll)
|
2011-08-29 07:38:57 +07:00
|
|
|
SYSCALL(ni_syscall)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(setresgid)
|
|
|
|
SYSCALL_SPU(getresgid)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(prctl)
|
2006-06-20 03:45:04 +07:00
|
|
|
COMPAT_SYS(rt_sigreturn)
|
|
|
|
COMPAT_SYS(rt_sigaction)
|
|
|
|
COMPAT_SYS(rt_sigprocmask)
|
|
|
|
COMPAT_SYS(rt_sigpending)
|
|
|
|
COMPAT_SYS(rt_sigtimedwait)
|
|
|
|
COMPAT_SYS(rt_sigqueueinfo)
|
|
|
|
COMPAT_SYS(rt_sigsuspend)
|
|
|
|
COMPAT_SYS_SPU(pread64)
|
|
|
|
COMPAT_SYS_SPU(pwrite64)
|
|
|
|
SYSCALL_SPU(chown)
|
|
|
|
SYSCALL_SPU(getcwd)
|
|
|
|
SYSCALL_SPU(capget)
|
|
|
|
SYSCALL_SPU(capset)
|
|
|
|
COMPAT_SYS(sigaltstack)
|
2014-06-04 07:48:48 +07:00
|
|
|
SYSX_SPU(sys_sendfile64,compat_sys_sendfile,sys_sendfile)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
PPC_SYS(vfork)
|
|
|
|
COMPAT_SYS_SPU(getrlimit)
|
|
|
|
COMPAT_SYS_SPU(readahead)
|
|
|
|
SYS32ONLY(mmap2)
|
|
|
|
SYS32ONLY(truncate64)
|
|
|
|
SYS32ONLY(ftruncate64)
|
|
|
|
SYSX(sys_ni_syscall,sys_stat64,sys_stat64)
|
|
|
|
SYSX(sys_ni_syscall,sys_lstat64,sys_lstat64)
|
|
|
|
SYSX(sys_ni_syscall,sys_fstat64,sys_fstat64)
|
|
|
|
SYSCALL(pciconfig_read)
|
|
|
|
SYSCALL(pciconfig_write)
|
|
|
|
SYSCALL(pciconfig_iobase)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL_SPU(getdents64)
|
|
|
|
SYSCALL_SPU(pivot_root)
|
|
|
|
SYSX(sys_ni_syscall,compat_sys_fcntl64,sys_fcntl64)
|
|
|
|
SYSCALL_SPU(madvise)
|
|
|
|
SYSCALL_SPU(mincore)
|
|
|
|
SYSCALL_SPU(gettid)
|
|
|
|
SYSCALL_SPU(tkill)
|
|
|
|
SYSCALL_SPU(setxattr)
|
|
|
|
SYSCALL_SPU(lsetxattr)
|
|
|
|
SYSCALL_SPU(fsetxattr)
|
|
|
|
SYSCALL_SPU(getxattr)
|
|
|
|
SYSCALL_SPU(lgetxattr)
|
|
|
|
SYSCALL_SPU(fgetxattr)
|
|
|
|
SYSCALL_SPU(listxattr)
|
|
|
|
SYSCALL_SPU(llistxattr)
|
|
|
|
SYSCALL_SPU(flistxattr)
|
|
|
|
SYSCALL_SPU(removexattr)
|
|
|
|
SYSCALL_SPU(lremovexattr)
|
|
|
|
SYSCALL_SPU(fremovexattr)
|
|
|
|
COMPAT_SYS_SPU(futex)
|
|
|
|
COMPAT_SYS_SPU(sched_setaffinity)
|
|
|
|
COMPAT_SYS_SPU(sched_getaffinity)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
2013-02-24 14:17:03 +07:00
|
|
|
SYS32ONLY(sendfile64)
|
2006-06-20 03:45:04 +07:00
|
|
|
COMPAT_SYS_SPU(io_setup)
|
|
|
|
SYSCALL_SPU(io_destroy)
|
|
|
|
COMPAT_SYS_SPU(io_getevents)
|
|
|
|
COMPAT_SYS_SPU(io_submit)
|
|
|
|
SYSCALL_SPU(io_cancel)
|
|
|
|
SYSCALL(set_tid_address)
|
|
|
|
SYSX_SPU(sys_fadvise64,ppc32_fadvise64,sys_fadvise64)
|
|
|
|
SYSCALL(exit_group)
|
2013-02-26 06:42:04 +07:00
|
|
|
COMPAT_SYS(lookup_dcookie)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(epoll_create)
|
|
|
|
SYSCALL_SPU(epoll_ctl)
|
|
|
|
SYSCALL_SPU(epoll_wait)
|
|
|
|
SYSCALL_SPU(remap_file_pages)
|
|
|
|
SYSX_SPU(sys_timer_create,compat_sys_timer_create,sys_timer_create)
|
|
|
|
COMPAT_SYS_SPU(timer_settime)
|
|
|
|
COMPAT_SYS_SPU(timer_gettime)
|
|
|
|
SYSCALL_SPU(timer_getoverrun)
|
|
|
|
SYSCALL_SPU(timer_delete)
|
|
|
|
COMPAT_SYS_SPU(clock_settime)
|
|
|
|
COMPAT_SYS_SPU(clock_gettime)
|
|
|
|
COMPAT_SYS_SPU(clock_getres)
|
|
|
|
COMPAT_SYS_SPU(clock_nanosleep)
|
|
|
|
SYSX(ppc64_swapcontext,ppc32_swapcontext,ppc_swapcontext)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL_SPU(tgkill)
|
2006-06-20 03:45:04 +07:00
|
|
|
COMPAT_SYS_SPU(utimes)
|
|
|
|
COMPAT_SYS_SPU(statfs64)
|
|
|
|
COMPAT_SYS_SPU(fstatfs64)
|
2014-02-04 12:07:01 +07:00
|
|
|
SYSX(sys_ni_syscall,ppc_fadvise64_64,ppc_fadvise64_64)
|
2006-06-20 03:45:04 +07:00
|
|
|
PPC_SYS_SPU(rtas)
|
|
|
|
OLDSYS(debug_setcontext)
|
|
|
|
SYSCALL(ni_syscall)
|
2006-11-03 13:07:24 +07:00
|
|
|
COMPAT_SYS(migrate_pages)
|
2006-06-20 03:45:04 +07:00
|
|
|
COMPAT_SYS(mbind)
|
|
|
|
COMPAT_SYS(get_mempolicy)
|
|
|
|
COMPAT_SYS(set_mempolicy)
|
|
|
|
COMPAT_SYS(mq_open)
|
|
|
|
SYSCALL(mq_unlink)
|
|
|
|
COMPAT_SYS(mq_timedsend)
|
|
|
|
COMPAT_SYS(mq_timedreceive)
|
|
|
|
COMPAT_SYS(mq_notify)
|
|
|
|
COMPAT_SYS(mq_getsetattr)
|
|
|
|
COMPAT_SYS(kexec_load)
|
2013-03-02 22:23:32 +07:00
|
|
|
SYSCALL(add_key)
|
|
|
|
SYSCALL(request_key)
|
2006-06-20 03:45:04 +07:00
|
|
|
COMPAT_SYS(keyctl)
|
|
|
|
COMPAT_SYS(waitid)
|
2012-12-26 05:31:11 +07:00
|
|
|
SYSCALL(ioprio_set)
|
|
|
|
SYSCALL(ioprio_get)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL(inotify_init)
|
|
|
|
SYSCALL(inotify_add_watch)
|
|
|
|
SYSCALL(inotify_rm_watch)
|
|
|
|
SYSCALL(spu_run)
|
|
|
|
SYSCALL(spu_create)
|
|
|
|
COMPAT_SYS(pselect6)
|
|
|
|
COMPAT_SYS(ppoll)
|
|
|
|
SYSCALL_SPU(unshare)
|
|
|
|
SYSCALL_SPU(splice)
|
|
|
|
SYSCALL_SPU(tee)
|
2007-04-17 12:53:12 +07:00
|
|
|
COMPAT_SYS_SPU(vmsplice)
|
2006-06-20 03:45:04 +07:00
|
|
|
COMPAT_SYS_SPU(openat)
|
|
|
|
SYSCALL_SPU(mkdirat)
|
|
|
|
SYSCALL_SPU(mknodat)
|
|
|
|
SYSCALL_SPU(fchownat)
|
|
|
|
COMPAT_SYS_SPU(futimesat)
|
2014-02-04 12:07:01 +07:00
|
|
|
SYSX_SPU(sys_newfstatat,sys_fstatat64,sys_fstatat64)
|
2006-06-20 03:45:04 +07:00
|
|
|
SYSCALL_SPU(unlinkat)
|
|
|
|
SYSCALL_SPU(renameat)
|
|
|
|
SYSCALL_SPU(linkat)
|
|
|
|
SYSCALL_SPU(symlinkat)
|
|
|
|
SYSCALL_SPU(readlinkat)
|
|
|
|
SYSCALL_SPU(fchmodat)
|
|
|
|
SYSCALL_SPU(faccessat)
|
|
|
|
COMPAT_SYS_SPU(get_robust_list)
|
|
|
|
COMPAT_SYS_SPU(set_robust_list)
|
2007-03-09 07:58:11 +07:00
|
|
|
COMPAT_SYS_SPU(move_pages)
|
2007-02-12 18:09:18 +07:00
|
|
|
SYSCALL_SPU(getcpu)
|
2007-03-09 07:57:10 +07:00
|
|
|
COMPAT_SYS(epoll_pwait)
|
2007-05-09 14:32:33 +07:00
|
|
|
COMPAT_SYS_SPU(utimensat)
|
2007-05-14 10:50:33 +07:00
|
|
|
COMPAT_SYS_SPU(signalfd)
|
2008-02-11 07:38:40 +07:00
|
|
|
SYSCALL_SPU(timerfd_create)
|
2007-05-14 10:50:33 +07:00
|
|
|
SYSCALL_SPU(eventfd)
|
Introduce fixed sys_sync_file_range2() syscall, implement on PowerPC and ARM
Not all the world is an i386. Many architectures need 64-bit arguments to be
aligned in suitable pairs of registers, and the original
sys_sync_file_range(int, loff_t, loff_t, int) was therefore wasting an
argument register for padding after the first integer. Since we don't
normally have more than 6 arguments for system calls, that left no room for
the final argument on some architectures.
Fix this by introducing sys_sync_file_range2(int, int, loff_t, loff_t) which
all fits nicely. In fact, ARM already had that, but called it
sys_arm_sync_file_range. Move it to fs/sync.c and rename it, then implement
the needed compatibility routine. And stop the missing syscall check from
bitching about the absence of sys_sync_file_range() if we've implemented
sys_sync_file_range2() instead.
Tested on PPC32 and with 32-bit and 64-bit userspace on PPC64.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-28 04:10:09 +07:00
|
|
|
COMPAT_SYS_SPU(sync_file_range2)
|
2007-11-04 00:42:03 +07:00
|
|
|
COMPAT_SYS(fallocate)
|
[POWERPC] Provide a way to protect 4k subpages when using 64k pages
Using 64k pages on 64-bit PowerPC systems makes life difficult for
emulators that are trying to emulate an ISA, such as x86, which use a
smaller page size, since the emulator can no longer use the MMU and
the normal system calls for controlling page protections. Of course,
the emulator can emulate the MMU by checking and possibly remapping
the address for each memory access in software, but that is pretty
slow.
This provides a facility for such programs to control the access
permissions on individual 4k sub-pages of 64k pages. The idea is
that the emulator supplies an array of protection masks to apply to a
specified range of virtual addresses. These masks are applied at the
level where hardware PTEs are inserted into the hardware page table
based on the Linux PTEs, so the Linux PTEs are not affected. Note
that this new mechanism does not allow any access that would otherwise
be prohibited; it can only prohibit accesses that would otherwise be
allowed. This new facility is only available on 64-bit PowerPC and
only when the kernel is configured for 64k pages.
The masks are supplied using a new subpage_prot system call, which
takes a starting virtual address and length, and a pointer to an array
of protection masks in memory. The array has a 32-bit word per 64k
page to be protected; each 32-bit word consists of 16 2-bit fields,
for which 0 allows any access (that is otherwise allowed), 1 prevents
write accesses, and 2 or 3 prevent any access.
Implicit in this is that the regions of the address space that are
protected are switched to use 4k hardware pages rather than 64k
hardware pages (on machines with hardware 64k page support). In fact
the whole process is switched to use 4k hardware pages when the
subpage_prot system call is used, but this could be improved in future
to switch only the affected segments.
The subpage protection bits are stored in a 3 level tree akin to the
page table tree. The top level of this tree is stored in a structure
that is appended to the top level of the page table tree, i.e., the
pgd array. Since it will often only be 32-bit addresses (below 4GB)
that are protected, the pointers to the first four bottom level pages
are also stored in this structure (each bottom level page contains the
protection bits for 1GB of address space), so the protection bits for
addresses below 4GB can be accessed with one fewer loads than those
for higher addresses.
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-01-24 04:35:13 +07:00
|
|
|
SYSCALL(subpage_prot)
|
2008-02-11 07:38:40 +07:00
|
|
|
COMPAT_SYS_SPU(timerfd_settime)
|
|
|
|
COMPAT_SYS_SPU(timerfd_gettime)
|
2008-07-25 13:21:51 +07:00
|
|
|
COMPAT_SYS_SPU(signalfd4)
|
|
|
|
SYSCALL_SPU(eventfd2)
|
|
|
|
SYSCALL_SPU(epoll_create1)
|
|
|
|
SYSCALL_SPU(dup3)
|
|
|
|
SYSCALL_SPU(pipe2)
|
|
|
|
SYSCALL(inotify_init1)
|
perf: Do the big rename: Performance Counters -> Performance Events
Bye-bye Performance Counters, welcome Performance Events!
In the past few months the perfcounters subsystem has grown out its
initial role of counting hardware events, and has become (and is
becoming) a much broader generic event enumeration, reporting, logging,
monitoring, analysis facility.
Naming its core object 'perf_counter' and naming the subsystem
'perfcounters' has become more and more of a misnomer. With pending
code like hw-breakpoints support the 'counter' name is less and
less appropriate.
All in one, we've decided to rename the subsystem to 'performance
events' and to propagate this rename through all fields, variables
and API names. (in an ABI compatible fashion)
The word 'event' is also a bit shorter than 'counter' - which makes
it slightly more convenient to write/handle as well.
Thanks goes to Stephane Eranian who first observed this misnomer and
suggested a rename.
User-space tooling and ABI compatibility is not affected - this patch
should be function-invariant. (Also, defconfigs were not touched to
keep the size down.)
This patch has been generated via the following script:
FILES=$(find * -type f | grep -vE 'oprofile|[^K]config')
sed -i \
-e 's/PERF_EVENT_/PERF_RECORD_/g' \
-e 's/PERF_COUNTER/PERF_EVENT/g' \
-e 's/perf_counter/perf_event/g' \
-e 's/nb_counters/nb_events/g' \
-e 's/swcounter/swevent/g' \
-e 's/tpcounter_event/tp_event/g' \
$FILES
for N in $(find . -name perf_counter.[ch]); do
M=$(echo $N | sed 's/perf_counter/perf_event/g')
mv $N $M
done
FILES=$(find . -name perf_event.*)
sed -i \
-e 's/COUNTER_MASK/REG_MASK/g' \
-e 's/COUNTER/EVENT/g' \
-e 's/\<event\>/event_id/g' \
-e 's/counter/event/g' \
-e 's/Counter/Event/g' \
$FILES
... to keep it as correct as possible. This script can also be
used by anyone who has pending perfcounters patches - it converts
a Linux kernel tree over to the new naming. We tried to time this
change to the point in time where the amount of pending patches
is the smallest: the end of the merge window.
Namespace clashes were fixed up in a preparatory patch - and some
stylistic fallout will be fixed up in a subsequent patch.
( NOTE: 'counters' are still the proper terminology when we deal
with hardware registers - and these sed scripts are a bit
over-eager in renaming them. I've undone some of that, but
in case there's something left where 'counter' would be
better than 'event' we can undo that on an individual basis
instead of touching an otherwise nicely automated patch. )
Suggested-by: Stephane Eranian <eranian@google.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Paul Mackerras <paulus@samba.org>
Reviewed-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: <linux-arch@vger.kernel.org>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-09-21 17:02:48 +07:00
|
|
|
SYSCALL_SPU(perf_event_open)
|
2009-04-07 00:19:50 +07:00
|
|
|
COMPAT_SYS_SPU(preadv)
|
|
|
|
COMPAT_SYS_SPU(pwritev)
|
2009-06-11 05:22:08 +07:00
|
|
|
COMPAT_SYS(rt_tgsigqueueinfo)
|
2010-08-19 12:15:37 +07:00
|
|
|
SYSCALL(fanotify_init)
|
|
|
|
COMPAT_SYS(fanotify_mark)
|
|
|
|
SYSCALL_SPU(prlimit64)
|
2010-08-26 01:50:28 +07:00
|
|
|
SYSCALL_SPU(socket)
|
|
|
|
SYSCALL_SPU(bind)
|
|
|
|
SYSCALL_SPU(connect)
|
|
|
|
SYSCALL_SPU(listen)
|
|
|
|
SYSCALL_SPU(accept)
|
|
|
|
SYSCALL_SPU(getsockname)
|
|
|
|
SYSCALL_SPU(getpeername)
|
|
|
|
SYSCALL_SPU(socketpair)
|
|
|
|
SYSCALL_SPU(send)
|
|
|
|
SYSCALL_SPU(sendto)
|
|
|
|
COMPAT_SYS_SPU(recv)
|
|
|
|
COMPAT_SYS_SPU(recvfrom)
|
|
|
|
SYSCALL_SPU(shutdown)
|
|
|
|
COMPAT_SYS_SPU(setsockopt)
|
|
|
|
COMPAT_SYS_SPU(getsockopt)
|
|
|
|
COMPAT_SYS_SPU(sendmsg)
|
|
|
|
COMPAT_SYS_SPU(recvmsg)
|
|
|
|
COMPAT_SYS_SPU(recvmmsg)
|
|
|
|
SYSCALL_SPU(accept4)
|
2011-03-24 01:40:47 +07:00
|
|
|
SYSCALL_SPU(name_to_handle_at)
|
|
|
|
COMPAT_SYS_SPU(open_by_handle_at)
|
|
|
|
COMPAT_SYS_SPU(clock_adjtime)
|
|
|
|
SYSCALL_SPU(syncfs)
|
2011-05-03 03:21:35 +07:00
|
|
|
COMPAT_SYS_SPU(sendmmsg)
|
2011-05-28 09:28:27 +07:00
|
|
|
SYSCALL_SPU(setns)
|
2011-11-01 07:06:39 +07:00
|
|
|
COMPAT_SYS(process_vm_readv)
|
|
|
|
COMPAT_SYS(process_vm_writev)
|
2012-11-02 11:27:20 +07:00
|
|
|
SYSCALL(finit_module)
|
powerpc: Enable sys_kcmp() for CRIU
The commit 8170a83f15ee ("powerpc: Wireup the kcmp syscall to sys_ni") has
disabled the kcmp syscall for powerpc. This has been done due to the use
of unsigned long parameters which may require a dedicated wrapper to handle
32bit process on top of 64bit kernel. However in the kcmp() case, the 2
unsigned long parameters are currently only used to carry file descriptors
from user space to the kernel. Since such a parameter is passed through
register, and file descriptor doesn't need to get extended, there is,
today, no need for a wrapper.
In the case there will be a need to pass address in or out of this system
call, then a wrapper could be required, it will then be to care of it.
As today this is not the case, it is safe to enable kcmp() on powerpc.
Tested (by Laurent) on 64-bit, 32-bit, and 32-bit userspace on 64-bit
kernel using tools/testing/selftests/kcmp [mpe].
Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2015-05-05 22:30:21 +07:00
|
|
|
SYSCALL(kcmp) /* sys_kcmp */
|
2014-01-29 13:13:05 +07:00
|
|
|
SYSCALL_SPU(sched_setattr)
|
|
|
|
SYSCALL_SPU(sched_getattr)
|
2014-06-02 06:24:27 +07:00
|
|
|
SYSCALL_SPU(renameat2)
|
2014-09-02 01:23:07 +07:00
|
|
|
SYSCALL_SPU(seccomp)
|
|
|
|
SYSCALL_SPU(getrandom)
|
|
|
|
SYSCALL_SPU(memfd_create)
|
2014-10-10 12:53:45 +07:00
|
|
|
SYSCALL_SPU(bpf)
|
powerpc: Wire up sys_execveat() syscall
Wire up sys_execveat(). This passes the selftests for the system call.
Check success of execveat(3, '../execveat', 0)... [OK]
Check success of execveat(5, 'execveat', 0)... [OK]
Check success of execveat(6, 'execveat', 0)... [OK]
Check success of execveat(-100, '/home/pranith/linux/...ftests/exec/execveat', 0)... [OK]
Check success of execveat(99, '/home/pranith/linux/...ftests/exec/execveat', 0)... [OK]
Check success of execveat(8, '', 4096)... [OK]
Check success of execveat(17, '', 4096)... [OK]
Check success of execveat(9, '', 4096)... [OK]
Check success of execveat(14, '', 4096)... [OK]
Check success of execveat(14, '', 4096)... [OK]
Check success of execveat(15, '', 4096)... [OK]
Check failure of execveat(8, '', 0) with ENOENT... [OK]
Check failure of execveat(8, '(null)', 4096) with EFAULT... [OK]
Check success of execveat(5, 'execveat.symlink', 0)... [OK]
Check success of execveat(6, 'execveat.symlink', 0)... [OK]
Check success of execveat(-100, '/home/pranith/linux/...xec/execveat.symlink', 0)... [OK]
Check success of execveat(10, '', 4096)... [OK]
Check success of execveat(10, '', 4352)... [OK]
Check failure of execveat(5, 'execveat.symlink', 256) with ELOOP... [OK]
Check failure of execveat(6, 'execveat.symlink', 256) with ELOOP... [OK]
Check failure of execveat(-100, '/home/pranith/linux/tools/testing/selftests/exec/execveat.symlink', 256) with ELOOP... [OK]
Check success of execveat(3, '../script', 0)... [OK]
Check success of execveat(5, 'script', 0)... [OK]
Check success of execveat(6, 'script', 0)... [OK]
Check success of execveat(-100, '/home/pranith/linux/...elftests/exec/script', 0)... [OK]
Check success of execveat(13, '', 4096)... [OK]
Check success of execveat(13, '', 4352)... [OK]
Check failure of execveat(18, '', 4096) with ENOENT... [OK]
Check failure of execveat(7, 'script', 0) with ENOENT... [OK]
Check success of execveat(16, '', 4096)... [OK]
Check success of execveat(16, '', 4096)... [OK]
Check success of execveat(4, '../script', 0)... [OK]
Check success of execveat(4, 'script', 0)... [OK]
Check success of execveat(4, '../script', 0)... [OK]
Check failure of execveat(4, 'script', 0) with ENOENT... [OK]
Check failure of execveat(5, 'execveat', 65535) with EINVAL... [OK]
Check failure of execveat(5, 'no-such-file', 0) with ENOENT... [OK]
Check failure of execveat(6, 'no-such-file', 0) with ENOENT... [OK]
Check failure of execveat(-100, 'no-such-file', 0) with ENOENT... [OK]
Check failure of execveat(5, '', 4096) with EACCES... [OK]
Check failure of execveat(5, 'Makefile', 0) with EACCES... [OK]
Check failure of execveat(11, '', 4096) with EACCES... [OK]
Check failure of execveat(12, '', 4096) with EACCES... [OK]
Check failure of execveat(99, '', 4096) with EBADF... [OK]
Check failure of execveat(99, 'execveat', 0) with EBADF... [OK]
Check failure of execveat(8, 'execveat', 0) with ENOTDIR... [OK]
Invoke copy of 'execveat' via filename of length 4093:
Check success of execveat(19, '', 4096)... [OK]
Check success of execveat(5, 'xxxxxxxxxxxxxxxxxxxx...yyyyyyyyyyyyyyyyyyyy', 0)... [OK]
Invoke copy of 'script' via filename of length 4093:
Check success of execveat(20, '', 4096)... [OK]
/bin/sh: 0: Can't open /dev/fd/5/xxxxxxx(... a long line of x's and y's, 0)... [OK]
Check success of execveat(5, 'xxxxxxxxxxxxxxxxxxxx...yyyyyyyyyyyyyyyyyyyy', 0)... [OK]
Tested on a 32-bit powerpc system.
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2014-12-21 20:59:32 +07:00
|
|
|
COMPAT_SYS(execveat)
|
powerpc: Add a proper syscall for switching endianness
We currently have a "special" syscall for switching endianness. This is
syscall number 0x1ebe, which is handled explicitly in the 64-bit syscall
exception entry.
That has a few problems, firstly the syscall number is outside of the
usual range, which confuses various tools. For example strace doesn't
recognise the syscall at all.
Secondly it's handled explicitly as a special case in the syscall
exception entry, which is complicated enough without it.
As a first step toward removing the special syscall, we need to add a
regular syscall that implements the same functionality.
The logic is simple, it simply toggles the MSR_LE bit in the userspace
MSR. This is the same as the special syscall, with the caveat that the
special syscall clobbers fewer registers.
This version clobbers r9-r12, XER, CTR, and CR0-1,5-7.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2015-03-28 17:35:16 +07:00
|
|
|
PPC64ONLY(switch_endian)
|
2015-09-08 12:16:09 +07:00
|
|
|
SYSCALL_SPU(userfaultfd)
|
2015-09-16 18:21:50 +07:00
|
|
|
SYSCALL_SPU(membarrier)
|
2015-12-16 17:26:28 +07:00
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
|
|
|
SYSCALL(ni_syscall)
|
2015-11-11 17:54:26 +07:00
|
|
|
SYSCALL(mlock2)
|
2016-01-13 23:50:22 +07:00
|
|
|
SYSCALL(copy_file_range)
|
2016-04-19 19:23:36 +07:00
|
|
|
COMPAT_SYS_SPU(preadv2)
|
|
|
|
COMPAT_SYS_SPU(pwritev2)
|
2016-11-29 19:45:53 +07:00
|
|
|
SYSCALL(kexec_file_load)
|
2017-03-16 16:07:11 +07:00
|
|
|
SYSCALL(statx)
|
2018-01-19 08:50:45 +07:00
|
|
|
SYSCALL(pkey_alloc)
|
|
|
|
SYSCALL(pkey_free)
|
2018-01-19 08:50:46 +07:00
|
|
|
SYSCALL(pkey_mprotect)
|