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 */
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2002, Greg Ungerer (gerg@snapgear.com)
|
|
|
|
*
|
|
|
|
* Based on older entry.S files, the following copyrights apply:
|
|
|
|
*
|
|
|
|
* Copyright (C) 1998 D. Jeff Dionne <jeff@lineo.ca>,
|
|
|
|
* Kenneth Albanowski <kjahds@kjahds.com>,
|
|
|
|
* Copyright (C) 2000 Lineo Inc. (www.lineo.com)
|
|
|
|
* Copyright (C) 1991, 1992 Linus Torvalds
|
2011-04-07 03:12:53 +07:00
|
|
|
*
|
|
|
|
* Linux/m68k support by Hamish Macdonald
|
2005-04-17 05:20:36 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
|
2011-04-07 03:12:53 +07:00
|
|
|
#ifndef CONFIG_MMU
|
|
|
|
#define sys_mmap2 sys_mmap_pgoff
|
|
|
|
#endif
|
|
|
|
|
|
|
|
.section .rodata
|
2005-04-17 05:20:36 +07:00
|
|
|
ALIGN
|
|
|
|
ENTRY(sys_call_table)
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_restart_syscall /* 0 - old "setup()" system call, used for restarting */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_exit
|
2012-10-22 03:41:46 +07:00
|
|
|
.long __sys_fork
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_read
|
|
|
|
.long sys_write
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_open /* 5 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_close
|
|
|
|
.long sys_waitpid
|
|
|
|
.long sys_creat
|
|
|
|
.long sys_link
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_unlink /* 10 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_execve
|
|
|
|
.long sys_chdir
|
|
|
|
.long sys_time
|
|
|
|
.long sys_mknod
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_chmod /* 15 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_chown16
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_ni_syscall /* old break syscall holder */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_stat
|
|
|
|
.long sys_lseek
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_getpid /* 20 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_mount
|
|
|
|
.long sys_oldumount
|
|
|
|
.long sys_setuid16
|
|
|
|
.long sys_getuid16
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_stime /* 25 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_ptrace
|
|
|
|
.long sys_alarm
|
|
|
|
.long sys_fstat
|
|
|
|
.long sys_pause
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_utime /* 30 */
|
|
|
|
.long sys_ni_syscall /* old stty syscall holder */
|
|
|
|
.long sys_ni_syscall /* old gtty syscall holder */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_access
|
|
|
|
.long sys_nice
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_ni_syscall /* 35 - old ftime syscall holder */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_sync
|
|
|
|
.long sys_kill
|
|
|
|
.long sys_rename
|
|
|
|
.long sys_mkdir
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_rmdir /* 40 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_dup
|
|
|
|
.long sys_pipe
|
|
|
|
.long sys_times
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_ni_syscall /* old prof syscall holder */
|
|
|
|
.long sys_brk /* 45 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_setgid16
|
|
|
|
.long sys_getgid16
|
|
|
|
.long sys_signal
|
|
|
|
.long sys_geteuid16
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_getegid16 /* 50 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_acct
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_umount /* recycled never used phys() */
|
|
|
|
.long sys_ni_syscall /* old lock syscall holder */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_ioctl
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_fcntl /* 55 */
|
|
|
|
.long sys_ni_syscall /* old mpx syscall holder */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_setpgid
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_ni_syscall /* old ulimit syscall holder */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_ni_syscall
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_umask /* 60 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_chroot
|
|
|
|
.long sys_ustat
|
|
|
|
.long sys_dup2
|
|
|
|
.long sys_getppid
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_getpgrp /* 65 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_setsid
|
|
|
|
.long sys_sigaction
|
|
|
|
.long sys_sgetmask
|
|
|
|
.long sys_ssetmask
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_setreuid16 /* 70 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_setregid16
|
|
|
|
.long sys_sigsuspend
|
|
|
|
.long sys_sigpending
|
|
|
|
.long sys_sethostname
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_setrlimit /* 75 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_old_getrlimit
|
|
|
|
.long sys_getrusage
|
|
|
|
.long sys_gettimeofday
|
|
|
|
.long sys_settimeofday
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_getgroups16 /* 80 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_setgroups16
|
2010-03-11 06:21:13 +07:00
|
|
|
.long sys_old_select
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_symlink
|
|
|
|
.long sys_lstat
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_readlink /* 85 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_uselib
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_swapon
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_reboot
|
2009-01-14 20:13:55 +07:00
|
|
|
.long sys_old_readdir
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_old_mmap /* 90 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_munmap
|
|
|
|
.long sys_truncate
|
|
|
|
.long sys_ftruncate
|
|
|
|
.long sys_fchmod
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_fchown16 /* 95 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_getpriority
|
|
|
|
.long sys_setpriority
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_ni_syscall /* old profil syscall holder */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_statfs
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_fstatfs /* 100 */
|
|
|
|
.long sys_ni_syscall /* ioperm for i386 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_socketcall
|
|
|
|
.long sys_syslog
|
|
|
|
.long sys_setitimer
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_getitimer /* 105 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_newstat
|
|
|
|
.long sys_newlstat
|
|
|
|
.long sys_newfstat
|
|
|
|
.long sys_ni_syscall
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_ni_syscall /* 110 - iopl for i386 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_vhangup
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_ni_syscall /* obsolete idle() syscall */
|
|
|
|
.long sys_ni_syscall /* vm86old for i386 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_wait4
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_swapoff /* 115 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_sysinfo
|
|
|
|
.long sys_ipc
|
|
|
|
.long sys_fsync
|
|
|
|
.long sys_sigreturn
|
2012-10-22 03:41:46 +07:00
|
|
|
.long __sys_clone /* 120 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_setdomainname
|
|
|
|
.long sys_newuname
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_cacheflush /* modify_ldt for i386 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_adjtimex
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_mprotect /* 125 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_sigprocmask
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_ni_syscall /* old "create_module" */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_init_module
|
|
|
|
.long sys_delete_module
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_ni_syscall /* 130 - old "get_kernel_syms" */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_quotactl
|
|
|
|
.long sys_getpgid
|
|
|
|
.long sys_fchdir
|
|
|
|
.long sys_bdflush
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_sysfs /* 135 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_personality
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_ni_syscall /* for afs_syscall */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_setfsuid16
|
|
|
|
.long sys_setfsgid16
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_llseek /* 140 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_getdents
|
|
|
|
.long sys_select
|
|
|
|
.long sys_flock
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_msync
|
|
|
|
.long sys_readv /* 145 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_writev
|
|
|
|
.long sys_getsid
|
|
|
|
.long sys_fdatasync
|
|
|
|
.long sys_sysctl
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_mlock /* 150 */
|
|
|
|
.long sys_munlock
|
|
|
|
.long sys_mlockall
|
|
|
|
.long sys_munlockall
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_sched_setparam
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_sched_getparam /* 155 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_sched_setscheduler
|
|
|
|
.long sys_sched_getscheduler
|
|
|
|
.long sys_sched_yield
|
|
|
|
.long sys_sched_get_priority_max
|
|
|
|
.long sys_sched_get_priority_min /* 160 */
|
|
|
|
.long sys_sched_rr_get_interval
|
|
|
|
.long sys_nanosleep
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_mremap
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_setresuid16
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_getresuid16 /* 165 */
|
|
|
|
.long sys_getpagesize
|
|
|
|
.long sys_ni_syscall /* old "query_module" */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_poll
|
2011-08-27 05:03:11 +07:00
|
|
|
.long sys_ni_syscall /* old nfsservctl */
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_setresgid16 /* 170 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_getresgid16
|
|
|
|
.long sys_prctl
|
|
|
|
.long sys_rt_sigreturn
|
|
|
|
.long sys_rt_sigaction
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_rt_sigprocmask /* 175 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_rt_sigpending
|
|
|
|
.long sys_rt_sigtimedwait
|
|
|
|
.long sys_rt_sigqueueinfo
|
|
|
|
.long sys_rt_sigsuspend
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_pread64 /* 180 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_pwrite64
|
|
|
|
.long sys_lchown16
|
|
|
|
.long sys_getcwd
|
|
|
|
.long sys_capget
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_capset /* 185 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_sigaltstack
|
|
|
|
.long sys_sendfile
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_ni_syscall /* streams1 */
|
|
|
|
.long sys_ni_syscall /* streams2 */
|
2012-10-22 03:41:46 +07:00
|
|
|
.long __sys_vfork /* 190 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_getrlimit
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_mmap2
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_truncate64
|
|
|
|
.long sys_ftruncate64
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_stat64 /* 195 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_lstat64
|
|
|
|
.long sys_fstat64
|
|
|
|
.long sys_chown
|
|
|
|
.long sys_getuid
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_getgid /* 200 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_geteuid
|
|
|
|
.long sys_getegid
|
|
|
|
.long sys_setreuid
|
|
|
|
.long sys_setregid
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_getgroups /* 205 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_setgroups
|
|
|
|
.long sys_fchown
|
|
|
|
.long sys_setresuid
|
|
|
|
.long sys_getresuid
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_setresgid /* 210 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_getresgid
|
|
|
|
.long sys_lchown
|
|
|
|
.long sys_setuid
|
|
|
|
.long sys_setgid
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_setfsuid /* 215 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_setfsgid
|
|
|
|
.long sys_pivot_root
|
|
|
|
.long sys_ni_syscall
|
|
|
|
.long sys_ni_syscall
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_getdents64 /* 220 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_gettid
|
|
|
|
.long sys_tkill
|
|
|
|
.long sys_setxattr
|
|
|
|
.long sys_lsetxattr
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_fsetxattr /* 225 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_getxattr
|
|
|
|
.long sys_lgetxattr
|
|
|
|
.long sys_fgetxattr
|
|
|
|
.long sys_listxattr
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_llistxattr /* 230 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_flistxattr
|
|
|
|
.long sys_removexattr
|
|
|
|
.long sys_lremovexattr
|
|
|
|
.long sys_fremovexattr
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_futex /* 235 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_sendfile64
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_mincore
|
|
|
|
.long sys_madvise
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_fcntl64
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_readahead /* 240 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_io_setup
|
|
|
|
.long sys_io_destroy
|
|
|
|
.long sys_io_getevents
|
|
|
|
.long sys_io_submit
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_io_cancel /* 245 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_fadvise64
|
|
|
|
.long sys_exit_group
|
|
|
|
.long sys_lookup_dcookie
|
|
|
|
.long sys_epoll_create
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_epoll_ctl /* 250 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_epoll_wait
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_remap_file_pages
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_set_tid_address
|
|
|
|
.long sys_timer_create
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_timer_settime /* 255 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_timer_gettime
|
|
|
|
.long sys_timer_getoverrun
|
|
|
|
.long sys_timer_delete
|
|
|
|
.long sys_clock_settime
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_clock_gettime /* 260 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_clock_getres
|
|
|
|
.long sys_clock_nanosleep
|
|
|
|
.long sys_statfs64
|
|
|
|
.long sys_fstatfs64
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_tgkill /* 265 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_utimes
|
|
|
|
.long sys_fadvise64_64
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_mbind
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_get_mempolicy
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_set_mempolicy /* 270 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_mq_open
|
|
|
|
.long sys_mq_unlink
|
|
|
|
.long sys_mq_timedsend
|
|
|
|
.long sys_mq_timedreceive
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_mq_notify /* 275 */
|
2005-04-17 05:20:36 +07:00
|
|
|
.long sys_mq_getsetattr
|
|
|
|
.long sys_waitid
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_ni_syscall /* for sys_vserver */
|
2006-10-13 04:18:53 +07:00
|
|
|
.long sys_add_key
|
2011-04-07 03:12:53 +07:00
|
|
|
.long sys_request_key /* 280 */
|
2006-10-13 04:18:53 +07:00
|
|
|
.long sys_keyctl
|
|
|
|
.long sys_ioprio_set
|
|
|
|
.long sys_ioprio_get
|
|
|
|
.long sys_inotify_init
|
|
|
|
.long sys_inotify_add_watch /* 285 */
|
|
|
|
.long sys_inotify_rm_watch
|
|
|
|
.long sys_migrate_pages
|
|
|
|
.long sys_openat
|
|
|
|
.long sys_mkdirat
|
|
|
|
.long sys_mknodat /* 290 */
|
|
|
|
.long sys_fchownat
|
|
|
|
.long sys_futimesat
|
|
|
|
.long sys_fstatat64
|
|
|
|
.long sys_unlinkat
|
|
|
|
.long sys_renameat /* 295 */
|
|
|
|
.long sys_linkat
|
|
|
|
.long sys_symlinkat
|
|
|
|
.long sys_readlinkat
|
|
|
|
.long sys_fchmodat
|
|
|
|
.long sys_faccessat /* 300 */
|
2011-05-07 01:57:11 +07:00
|
|
|
.long sys_pselect6
|
|
|
|
.long sys_ppoll
|
2006-10-13 04:18:53 +07:00
|
|
|
.long sys_unshare
|
|
|
|
.long sys_set_robust_list
|
|
|
|
.long sys_get_robust_list /* 305 */
|
|
|
|
.long sys_splice
|
|
|
|
.long sys_sync_file_range
|
|
|
|
.long sys_tee
|
|
|
|
.long sys_vmsplice
|
|
|
|
.long sys_move_pages /* 310 */
|
2007-09-12 05:23:56 +07:00
|
|
|
.long sys_sched_setaffinity
|
|
|
|
.long sys_sched_getaffinity
|
|
|
|
.long sys_kexec_load
|
|
|
|
.long sys_getcpu
|
|
|
|
.long sys_epoll_pwait /* 315 */
|
|
|
|
.long sys_utimensat
|
|
|
|
.long sys_signalfd
|
2008-03-04 15:18:16 +07:00
|
|
|
.long sys_timerfd_create
|
2007-09-12 05:23:56 +07:00
|
|
|
.long sys_eventfd
|
|
|
|
.long sys_fallocate /* 320 */
|
2008-03-04 15:18:16 +07:00
|
|
|
.long sys_timerfd_settime
|
|
|
|
.long sys_timerfd_gettime
|
2008-08-11 14:00:30 +07:00
|
|
|
.long sys_signalfd4
|
|
|
|
.long sys_eventfd2
|
|
|
|
.long sys_epoll_create1 /* 325 */
|
|
|
|
.long sys_dup3
|
|
|
|
.long sys_pipe2
|
|
|
|
.long sys_inotify_init1
|
2009-04-10 03:23:51 +07:00
|
|
|
.long sys_preadv
|
|
|
|
.long sys_pwritev /* 330 */
|
2009-08-22 03:03:54 +07:00
|
|
|
.long sys_rt_tgsigqueueinfo
|
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
|
|
|
.long sys_perf_event_open
|
2009-12-07 01:08:14 +07:00
|
|
|
.long sys_get_thread_area
|
|
|
|
.long sys_set_thread_area
|
|
|
|
.long sys_atomic_cmpxchg_32 /* 335 */
|
|
|
|
.long sys_atomic_barrier
|
2010-08-16 19:05:20 +07:00
|
|
|
.long sys_fanotify_init
|
|
|
|
.long sys_fanotify_mark
|
|
|
|
.long sys_prlimit64
|
2011-04-13 03:24:45 +07:00
|
|
|
.long sys_name_to_handle_at /* 340 */
|
|
|
|
.long sys_open_by_handle_at
|
|
|
|
.long sys_clock_adjtime
|
|
|
|
.long sys_syncfs
|
2011-05-28 09:28:27 +07:00
|
|
|
.long sys_setns
|
2011-11-16 04:22:49 +07:00
|
|
|
.long sys_process_vm_readv /* 345 */
|
|
|
|
.long sys_process_vm_writev
|
2012-09-23 16:03:00 +07:00
|
|
|
.long sys_kcmp
|
2012-12-23 16:28:00 +07:00
|
|
|
.long sys_finit_module
|
2014-02-03 21:07:13 +07:00
|
|
|
.long sys_sched_setattr
|
|
|
|
.long sys_sched_getattr /* 350 */
|
2014-05-20 15:59:37 +07:00
|
|
|
.long sys_renameat2
|
2014-08-12 02:41:41 +07:00
|
|
|
.long sys_getrandom
|
2014-08-12 02:42:49 +07:00
|
|
|
.long sys_memfd_create
|
2014-10-10 01:30:06 +07:00
|
|
|
.long sys_bpf
|
m68k: Wire up execveat
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, '/root/selftest-exec/exec/execveat', 0)... [OK]
Check success of execveat(99, '/root/selftest-exec/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, '/root/selftest-exec/...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, '/root/selftest-exec/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, '/root/selftest-exec/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]
Check success of execveat(5, 'xxxxxxxxxxxxxxxxxxxx...yyyyyyyyyyyyyyyyyyyy', 0)... [OK]
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
2014-12-21 17:51:22 +07:00
|
|
|
.long sys_execveat /* 355 */
|
2015-09-06 16:59:27 +07:00
|
|
|
.long sys_socket
|
|
|
|
.long sys_socketpair
|
|
|
|
.long sys_bind
|
|
|
|
.long sys_connect
|
|
|
|
.long sys_listen /* 360 */
|
|
|
|
.long sys_accept4
|
|
|
|
.long sys_getsockopt
|
|
|
|
.long sys_setsockopt
|
|
|
|
.long sys_getsockname
|
|
|
|
.long sys_getpeername /* 365 */
|
|
|
|
.long sys_sendto
|
|
|
|
.long sys_sendmsg
|
|
|
|
.long sys_recvfrom
|
|
|
|
.long sys_recvmsg
|
|
|
|
.long sys_shutdown /* 370 */
|
|
|
|
.long sys_recvmmsg
|
|
|
|
.long sys_sendmmsg
|
m68k: Wire up userfaultfd
$ ./userfaultfd 10 99
nr_pages: 2560, nr_pages_per_cpu: 2560
bounces: 98, mode: racing, userfaults: 1121
bounces: 97, mode: rnd, userfaults: 977
bounces: 96, mode:, userfaults: 1119
bounces: 95, mode: rnd racing ver poll, userfaults: 1040
bounces: 94, mode: racing ver poll, userfaults: 1022
bounces: 93, mode: rnd ver poll, userfaults: 946
bounces: 92, mode: ver poll, userfaults: 1115
bounces: 91, mode: rnd racing poll, userfaults: 977
bounces: 90, mode: racing poll, userfaults: 899
bounces: 89, mode: rnd poll, userfaults: 881
bounces: 88, mode: poll, userfaults: 1069
bounces: 87, mode: rnd racing ver, userfaults: 1114
bounces: 86, mode: racing ver, userfaults: 1109
bounces: 85, mode: rnd ver, userfaults: 1165
bounces: 84, mode: ver, userfaults: 1107
bounces: 83, mode: rnd racing, userfaults: 1134
bounces: 82, mode: racing, userfaults: 1105
bounces: 81, mode: rnd, userfaults: 1323
bounces: 80, mode:, userfaults: 1103
bounces: 79, mode: rnd racing ver poll, userfaults: 909
bounces: 78, mode: racing ver poll, userfaults: 1095
bounces: 77, mode: rnd ver poll, userfaults: 951
bounces: 76, mode: ver poll, userfaults: 1099
bounces: 75, mode: rnd racing poll, userfaults: 1035
bounces: 74, mode: racing poll, userfaults: 1097
bounces: 73, mode: rnd poll, userfaults: 1159
bounces: 72, mode: poll, userfaults: 1042
bounces: 71, mode: rnd racing ver, userfaults: 848
bounces: 70, mode: racing ver, userfaults: 1093
bounces: 69, mode: rnd ver, userfaults: 892
bounces: 68, mode: ver, userfaults: 1091
bounces: 67, mode: rnd racing, userfaults: 1219
bounces: 66, mode: racing, userfaults: 1089
bounces: 65, mode: rnd, userfaults: 988
bounces: 64, mode:, userfaults: 1087
bounces: 63, mode: rnd racing ver poll, userfaults: 882
bounces: 62, mode: racing ver poll, userfaults: 984
bounces: 61, mode: rnd ver poll, userfaults: 701
bounces: 60, mode: ver poll, userfaults: 1071
bounces: 59, mode: rnd racing poll, userfaults: 1137
bounces: 58, mode: racing poll, userfaults: 1032
bounces: 57, mode: rnd poll, userfaults: 911
bounces: 56, mode: poll, userfaults: 1079
bounces: 55, mode: rnd racing ver, userfaults: 1106
bounces: 54, mode: racing ver, userfaults: 1077
bounces: 53, mode: rnd ver, userfaults: 886
bounces: 52, mode: ver, userfaults: 1075
bounces: 51, mode: rnd racing, userfaults: 1101
bounces: 50, mode: racing, userfaults: 1073
bounces: 49, mode: rnd, userfaults: 1070
bounces: 48, mode:, userfaults: 1071
bounces: 47, mode: rnd racing ver poll, userfaults: 1077
bounces: 46, mode: racing ver poll, userfaults: 910
bounces: 45, mode: rnd ver poll, userfaults: 1063
bounces: 44, mode: ver poll, userfaults: 1028
bounces: 43, mode: rnd racing poll, userfaults: 1043
bounces: 42, mode: racing poll, userfaults: 1065
bounces: 41, mode: rnd poll, userfaults: 912
bounces: 40, mode: poll, userfaults: 1063
bounces: 39, mode: rnd racing ver, userfaults: 880
bounces: 38, mode: racing ver, userfaults: 1061
bounces: 37, mode: rnd ver, userfaults: 1144
bounces: 36, mode: ver, userfaults: 1059
bounces: 35, mode: rnd racing, userfaults: 967
bounces: 34, mode: racing, userfaults: 1057
bounces: 33, mode: rnd, userfaults: 1076
bounces: 32, mode:, userfaults: 1055
bounces: 31, mode: rnd racing ver poll, userfaults: 997
bounces: 30, mode: racing ver poll, userfaults: 1053
bounces: 29, mode: rnd ver poll, userfaults: 968
bounces: 28, mode: ver poll, userfaults: 978
bounces: 27, mode: rnd racing poll, userfaults: 1008
bounces: 26, mode: racing poll, userfaults: 1049
bounces: 25, mode: rnd poll, userfaults: 900
bounces: 24, mode: poll, userfaults: 1047
bounces: 23, mode: rnd racing ver, userfaults: 988
bounces: 22, mode: racing ver, userfaults: 1045
bounces: 21, mode: rnd ver, userfaults: 1027
bounces: 20, mode: ver, userfaults: 1043
bounces: 19, mode: rnd racing, userfaults: 1017
bounces: 18, mode: racing, userfaults: 1041
bounces: 17, mode: rnd, userfaults: 979
bounces: 16, mode:, userfaults: 1039
bounces: 15, mode: rnd racing ver poll, userfaults: 1134
bounces: 14, mode: racing ver poll, userfaults: 1037
bounces: 13, mode: rnd ver poll, userfaults: 1046
bounces: 12, mode: ver poll, userfaults: 1035
bounces: 11, mode: rnd racing poll, userfaults: 1060
bounces: 10, mode: racing poll, userfaults: 1033
bounces: 9, mode: rnd poll, userfaults: 1003
bounces: 8, mode: poll, userfaults: 929
bounces: 7, mode: rnd racing ver, userfaults: 964
bounces: 6, mode: racing ver, userfaults: 1029
bounces: 5, mode: rnd ver, userfaults: 1053
bounces: 4, mode: ver, userfaults: 1027
bounces: 3, mode: rnd racing, userfaults: 863
bounces: 2, mode: racing, userfaults: 1025
bounces: 1, mode: rnd, userfaults: 1043
bounces: 0, mode:, userfaults: 950
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Greg Ungerer <gerg@uclinux.org>
2015-09-06 17:01:40 +07:00
|
|
|
.long sys_userfaultfd
|
2015-09-13 16:49:13 +07:00
|
|
|
.long sys_membarrier
|
2015-11-09 16:53:26 +07:00
|
|
|
.long sys_mlock2 /* 375 */
|
2016-01-15 20:31:30 +07:00
|
|
|
.long sys_copy_file_range
|
2016-03-21 17:29:12 +07:00
|
|
|
.long sys_preadv2
|
|
|
|
.long sys_pwritev2
|
2017-03-06 17:04:22 +07:00
|
|
|
.long sys_statx
|