/usr/src/linux-headers-5.15.0-190/scripts
NameSizeModeActions
atomic/-0755rm
basic/-0755rm
clang-tools/-0755rm
coccinelle/-0755rm
dtc/-0755rm
dummy-tools/-0755rm
gcc-plugins/-0755rm
gdb/-0755rm
genksyms/-0755rm
kconfig/-0755rm
ksymoops/-0755rm
mod/-0755rm
package/-0755rm
selinux/-0755rm
tracing/-0755rm
.gitignore1600644editdlrm
adjust_autoksyms.sh21220755editdlrm
as-version.sh20810755editdlrm
asn1_compiler.c361800644editdlrm
bin2c.c7430644editdlrm
bloat-o-meter34450755editdlrm
bootgraph.pl57800755editdlrm
bpf_doc.py255820755editdlrm
cc-can-link.sh1660755editdlrm
cc-version.sh15490755editdlrm
check-sysctl-docs44720755editdlrm
checkdeclares.pl11230755editdlrm
checkincludes.pl19880755editdlrm
checkkconfigsymbols.py161260755editdlrm
checkpatch.pl2294260755editdlrm
checkstack.pl60010755editdlrm
checksyscalls.sh76000755editdlrm
checkversion.pl22110755editdlrm
check_extable.sh50480755editdlrm
cleanfile35420755editdlrm
cleanpatch51820755editdlrm
coccicheck80750755editdlrm
config48990755editdlrm
const_structs.checkpatch10090644editdlrm
decodecode29520755editdlrm
decode_stacktrace.sh76910755editdlrm
depmod.sh14410755editdlrm
dev-needs.sh62190755editdlrm
diffconfig42220755editdlrm
documentation-file-ref-check56870755editdlrm
export_report.pl46050755editdlrm
extract-cert.c37200644editdlrm
extract-ikconfig17340755editdlrm
extract-module-sig.pl37460755editdlrm
extract-sys-certs.pl38360755editdlrm
extract-vmlinux16950755editdlrm
extract_xc3028.pl456860755editdlrm
faddr2line83640755editdlrm
file-size.sh860755editdlrm
find-unused-docs.sh13040755editdlrm
gcc-goto.sh5110755editdlrm
gcc-ld7110755editdlrm
gcc-x86_32-has-stack-protector.sh4050755editdlrm
gcc-x86_64-has-stack-protector.sh1950755editdlrm
generate_initcall_order.pl60900755editdlrm
gen_autoksyms.sh15090755editdlrm
gen_ksymdeps.sh5560755editdlrm
get_abi.pl154630755editdlrm
get_dvb_firmware251280755editdlrm
get_feat.pl146890755editdlrm
get_maintainer.pl687440755editdlrm
gfp-translate17320755editdlrm
headerdep.pl35870755editdlrm
headers_check.pl38190755editdlrm
headers_install.sh34310755editdlrm
insert-sys-cert.c133920644editdlrm
jobserver-exec22130755editdlrm
kallsyms.c184980644editdlrm
Kbuild.include103920644editdlrm
Kconfig.include26350644editdlrm
kernel-doc703880755editdlrm
ld-version.sh18640755editdlrm
leaking_addresses.pl131120755editdlrm
Lindent5020755editdlrm
link-vmlinux.sh111810755editdlrm
Makefile16810644editdlrm
Makefile.asm-generic18640644editdlrm
Makefile.build201350644editdlrm
Makefile.clang16020644editdlrm
Makefile.clean22540644editdlrm
Makefile.compiler28060644editdlrm
Makefile.dtbinst10070644editdlrm
Makefile.extrawarn30920644editdlrm
Makefile.gcc-plugins27780644editdlrm
Makefile.headersinst29500644editdlrm
Makefile.host47430644editdlrm
Makefile.kasan17150644editdlrm
Makefile.kcov3330644editdlrm
Makefile.kcsan7390644editdlrm
Makefile.lib184550644editdlrm
Makefile.modfinal27930644editdlrm
Makefile.modinst25810644editdlrm
Makefile.modpost44780644editdlrm
Makefile.package67710644editdlrm
Makefile.ubsan7700644editdlrm
Makefile.userprogs16070644editdlrm
makelst8080755editdlrm
markup_oops.pl81100755editdlrm
min-tool-version.sh5580755editdlrm
mkcompile_h25410755editdlrm
mksysmap13690755editdlrm
mkuboot.sh4140755editdlrm
module.lds.S16910644editdlrm
modules-check.sh4270755editdlrm
nsdeps17650644editdlrm
objdiff29050755editdlrm
pahole-flags.sh7490755editdlrm
pahole-version.sh2690755editdlrm
parse-maintainers.pl46460755editdlrm
patch-kernel101850755editdlrm
profile2linkerlist.pl4140755editdlrm
prune-kernel7080755editdlrm
recordmcount.c171520644editdlrm
recordmcount.h198320644editdlrm
recordmcount.pl180490755editdlrm
remove-stale-files13360755editdlrm
setlocalversion35800755editdlrm
show_delta30870755editdlrm
sign-file.c101720644editdlrm
sorttable.c89490644editdlrm
sorttable.h100630644editdlrm
spdxcheck-test.sh2770644editdlrm
spdxcheck.py103340755editdlrm
spelling.txt326460644editdlrm
sphinx-pre-install250350755editdlrm
split-man.pl6040755editdlrm
stackdelta18870755editdlrm
stackusage7940755editdlrm
subarch.include6190644editdlrm
syscallhdr.sh19350755editdlrm
syscallnr.sh14850755editdlrm
syscalltbl.sh14890755editdlrm
tags.sh101100755editdlrm
tools-support-relr.sh5460755editdlrm
ubuntu-retpoline-extract-one74340644editdlrm
unifdef.c356370644editdlrm
ver_linux26480755editdlrm
xen-hypercalls.sh3860755editdlrm
xz_wrap.sh5630755editdlrm
Edit: /usr/src/linux-headers-5.15.0-190/scripts/checksyscalls.sh (7600B)
#!/bin/sh # SPDX-License-Identifier: GPL-2.0 # # Check if current architecture are missing any function calls compared # to i386. # i386 define a number of legacy system calls that are i386 specific # and listed below so they are ignored. # # Usage: # checksyscalls.sh gcc gcc-options # ignore_list() { cat << EOF #include #include /* *at */ #define __IGNORE_open /* openat */ #define __IGNORE_link /* linkat */ #define __IGNORE_unlink /* unlinkat */ #define __IGNORE_mknod /* mknodat */ #define __IGNORE_chmod /* fchmodat */ #define __IGNORE_chown /* fchownat */ #define __IGNORE_mkdir /* mkdirat */ #define __IGNORE_rmdir /* unlinkat */ #define __IGNORE_lchown /* fchownat */ #define __IGNORE_access /* faccessat */ #define __IGNORE_rename /* renameat2 */ #define __IGNORE_readlink /* readlinkat */ #define __IGNORE_symlink /* symlinkat */ #define __IGNORE_utimes /* futimesat */ #define __IGNORE_stat /* fstatat */ #define __IGNORE_lstat /* fstatat */ #define __IGNORE_stat64 /* fstatat64 */ #define __IGNORE_lstat64 /* fstatat64 */ #ifndef __ARCH_WANT_SET_GET_RLIMIT #define __IGNORE_getrlimit /* getrlimit */ #define __IGNORE_setrlimit /* setrlimit */ #endif #ifndef __ARCH_WANT_MEMFD_SECRET #define __IGNORE_memfd_secret #endif /* Missing flags argument */ #define __IGNORE_renameat /* renameat2 */ /* CLOEXEC flag */ #define __IGNORE_pipe /* pipe2 */ #define __IGNORE_dup2 /* dup3 */ #define __IGNORE_epoll_create /* epoll_create1 */ #define __IGNORE_inotify_init /* inotify_init1 */ #define __IGNORE_eventfd /* eventfd2 */ #define __IGNORE_signalfd /* signalfd4 */ /* MMU */ #ifndef CONFIG_MMU #define __IGNORE_madvise #define __IGNORE_mbind #define __IGNORE_mincore #define __IGNORE_mlock #define __IGNORE_mlockall #define __IGNORE_munlock #define __IGNORE_munlockall #define __IGNORE_mprotect #define __IGNORE_msync #define __IGNORE_migrate_pages #define __IGNORE_move_pages #define __IGNORE_remap_file_pages #define __IGNORE_get_mempolicy #define __IGNORE_set_mempolicy #define __IGNORE_swapoff #define __IGNORE_swapon #endif /* System calls for 32-bit kernels only */ #if BITS_PER_LONG == 64 #define __IGNORE_sendfile64 #define __IGNORE_ftruncate64 #define __IGNORE_truncate64 #define __IGNORE_stat64 #define __IGNORE_lstat64 #define __IGNORE_fcntl64 #define __IGNORE_fadvise64_64 #define __IGNORE_fstatfs64 #define __IGNORE_statfs64 #define __IGNORE_llseek #define __IGNORE_mmap2 #define __IGNORE_clock_gettime64 #define __IGNORE_clock_settime64 #define __IGNORE_clock_adjtime64 #define __IGNORE_clock_getres_time64 #define __IGNORE_clock_nanosleep_time64 #define __IGNORE_timer_gettime64 #define __IGNORE_timer_settime64 #define __IGNORE_timerfd_gettime64 #define __IGNORE_timerfd_settime64 #define __IGNORE_utimensat_time64 #define __IGNORE_pselect6_time64 #define __IGNORE_ppoll_time64 #define __IGNORE_io_pgetevents_time64 #define __IGNORE_recvmmsg_time64 #define __IGNORE_mq_timedsend_time64 #define __IGNORE_mq_timedreceive_time64 #define __IGNORE_semtimedop_time64 #define __IGNORE_rt_sigtimedwait_time64 #define __IGNORE_futex_time64 #define __IGNORE_sched_rr_get_interval_time64 #else #define __IGNORE_sendfile #define __IGNORE_ftruncate #define __IGNORE_truncate #define __IGNORE_stat #define __IGNORE_lstat #define __IGNORE_fstat #define __IGNORE_fcntl #define __IGNORE_fadvise64 #define __IGNORE_newfstatat #define __IGNORE_fstatfs #define __IGNORE_statfs #define __IGNORE_lseek #define __IGNORE_mmap #define __IGNORE_clock_gettime #define __IGNORE_clock_settime #define __IGNORE_clock_adjtime #define __IGNORE_clock_getres #define __IGNORE_clock_nanosleep #define __IGNORE_timer_gettime #define __IGNORE_timer_settime #define __IGNORE_timerfd_gettime #define __IGNORE_timerfd_settime #define __IGNORE_utimensat #define __IGNORE_pselect6 #define __IGNORE_ppoll #define __IGNORE_io_pgetevents #define __IGNORE_recvmmsg #define __IGNORE_mq_timedsend #define __IGNORE_mq_timedreceive #define __IGNORE_semtimedop #define __IGNORE_rt_sigtimedwait #define __IGNORE_futex #define __IGNORE_sched_rr_get_interval #define __IGNORE_gettimeofday #define __IGNORE_settimeofday #define __IGNORE_wait4 #define __IGNORE_adjtimex #define __IGNORE_nanosleep #define __IGNORE_io_getevents #define __IGNORE_recvmmsg #endif /* i386-specific or historical system calls */ #define __IGNORE_break #define __IGNORE_stty #define __IGNORE_gtty #define __IGNORE_ftime #define __IGNORE_prof #define __IGNORE_lock #define __IGNORE_mpx #define __IGNORE_ulimit #define __IGNORE_profil #define __IGNORE_ioperm #define __IGNORE_iopl #define __IGNORE_idle #define __IGNORE_modify_ldt #define __IGNORE_ugetrlimit #define __IGNORE_vm86 #define __IGNORE_vm86old #define __IGNORE_set_thread_area #define __IGNORE_get_thread_area #define __IGNORE_madvise1 #define __IGNORE_oldstat #define __IGNORE_oldfstat #define __IGNORE_oldlstat #define __IGNORE_oldolduname #define __IGNORE_olduname #define __IGNORE_umount #define __IGNORE_waitpid #define __IGNORE_stime #define __IGNORE_nice #define __IGNORE_signal #define __IGNORE_sigaction #define __IGNORE_sgetmask #define __IGNORE_sigsuspend #define __IGNORE_sigpending #define __IGNORE_ssetmask #define __IGNORE_readdir #define __IGNORE_socketcall #define __IGNORE_ipc #define __IGNORE_sigreturn #define __IGNORE_sigprocmask #define __IGNORE_bdflush #define __IGNORE__llseek #define __IGNORE__newselect #define __IGNORE_create_module #define __IGNORE_query_module #define __IGNORE_get_kernel_syms #define __IGNORE_sysfs #define __IGNORE_uselib #define __IGNORE__sysctl #define __IGNORE_arch_prctl #define __IGNORE_nfsservctl /* ... including the "new" 32-bit uid syscalls */ #define __IGNORE_lchown32 #define __IGNORE_getuid32 #define __IGNORE_getgid32 #define __IGNORE_geteuid32 #define __IGNORE_getegid32 #define __IGNORE_setreuid32 #define __IGNORE_setregid32 #define __IGNORE_getgroups32 #define __IGNORE_setgroups32 #define __IGNORE_fchown32 #define __IGNORE_setresuid32 #define __IGNORE_getresuid32 #define __IGNORE_setresgid32 #define __IGNORE_getresgid32 #define __IGNORE_chown32 #define __IGNORE_setuid32 #define __IGNORE_setgid32 #define __IGNORE_setfsuid32 #define __IGNORE_setfsgid32 /* these can be expressed using other calls */ #define __IGNORE_alarm /* setitimer */ #define __IGNORE_creat /* open */ #define __IGNORE_fork /* clone */ #define __IGNORE_futimesat /* utimensat */ #define __IGNORE_getpgrp /* getpgid */ #define __IGNORE_getdents /* getdents64 */ #define __IGNORE_pause /* sigsuspend */ #define __IGNORE_poll /* ppoll */ #define __IGNORE_select /* pselect6 */ #define __IGNORE_epoll_wait /* epoll_pwait */ #define __IGNORE_time /* gettimeofday */ #define __IGNORE_uname /* newuname */ #define __IGNORE_ustat /* statfs */ #define __IGNORE_utime /* utimes */ #define __IGNORE_vfork /* clone */ /* sync_file_range had a stupid ABI. Allow sync_file_range2 instead */ #ifdef __NR_sync_file_range2 #define __IGNORE_sync_file_range #endif /* Unmerged syscalls for AFS, STREAMS, etc. */ #define __IGNORE_afs_syscall #define __IGNORE_getpmsg #define __IGNORE_putpmsg #define __IGNORE_vserver /* 64-bit ports never needed these, and new 32-bit ports can use statx */ #define __IGNORE_fstat64 #define __IGNORE_fstatat64 EOF } syscall_list() { grep '^[0-9]' "$1" | sort -n | while read nr abi name entry ; do echo "#if !defined(__NR_${name}) && !defined(__IGNORE_${name})" echo "#warning syscall ${name} not implemented" echo "#endif" done } (ignore_list && syscall_list $(dirname $0)/../arch/x86/entry/syscalls/syscall_32.tbl) | \ $* -Wno-error -E -x c - > /dev/null