/
usr
/
src
/
linux-headers-5.15.0-190-generic
/
scripts
/
/usr/src/linux-headers-5.15.0-190-generic/scripts
mkdir
upload
Name
Size
Mode
Actions
atomic/
-
0755
rm
basic/
-
0755
rm
clang-tools/
-
0755
rm
coccinelle/
-
0755
rm
dtc/
-
0755
rm
dummy-tools/
-
0755
rm
gcc-plugins/
-
0755
rm
gdb/
-
0755
rm
genksyms/
-
0755
rm
kconfig/
-
0755
rm
ksymoops/
-
0755
rm
mod/
-
0755
rm
package/
-
0755
rm
selinux/
-
0755
rm
tracing/
-
0755
rm
.asn1_compiler.cmd
636
0644
edit
dl
rm
.bin2c.cmd
385
0644
edit
dl
rm
.extract-cert.cmd
463
0644
edit
dl
rm
.insert-sys-cert.cmd
485
0644
edit
dl
rm
.kallsyms.cmd
415
0644
edit
dl
rm
.sign-file.cmd
433
0644
edit
dl
rm
.sorttable.cmd
674
0644
edit
dl
rm
adjust_autoksyms.sh
2122
0755
edit
dl
rm
as-version.sh
2081
0755
edit
dl
rm
asn1_compiler
35112
0755
edit
dl
rm
asn1_compiler.c
36180
0644
edit
dl
rm
bin2c
16096
0755
edit
dl
rm
bin2c.c
743
0644
edit
dl
rm
bloat-o-meter
3445
0755
edit
dl
rm
bootgraph.pl
5780
0755
edit
dl
rm
bpf_doc.py
25582
0755
edit
dl
rm
cc-can-link.sh
166
0755
edit
dl
rm
cc-version.sh
1549
0755
edit
dl
rm
check-sysctl-docs
4472
0755
edit
dl
rm
checkdeclares.pl
1123
0755
edit
dl
rm
checkincludes.pl
1988
0755
edit
dl
rm
checkkconfigsymbols.py
16126
0755
edit
dl
rm
checkpatch.pl
229426
0755
edit
dl
rm
checkstack.pl
6001
0755
edit
dl
rm
checksyscalls.sh
7600
0755
edit
dl
rm
checkversion.pl
2211
0755
edit
dl
rm
check_extable.sh
5048
0755
edit
dl
rm
cleanfile
3542
0755
edit
dl
rm
cleanpatch
5182
0755
edit
dl
rm
coccicheck
8075
0755
edit
dl
rm
config
4899
0755
edit
dl
rm
const_structs.checkpatch
1009
0644
edit
dl
rm
decodecode
2952
0755
edit
dl
rm
decode_stacktrace.sh
7691
0755
edit
dl
rm
depmod.sh
1441
0755
edit
dl
rm
dev-needs.sh
6219
0755
edit
dl
rm
diffconfig
4222
0755
edit
dl
rm
documentation-file-ref-check
5687
0755
edit
dl
rm
export_report.pl
4605
0755
edit
dl
rm
extract-cert
17648
0755
edit
dl
rm
extract-cert.c
3720
0644
edit
dl
rm
extract-ikconfig
1734
0755
edit
dl
rm
extract-module-sig.pl
3746
0755
edit
dl
rm
extract-sys-certs.pl
3836
0755
edit
dl
rm
extract-vmlinux
1695
0755
edit
dl
rm
extract_xc3028.pl
45686
0755
edit
dl
rm
faddr2line
8364
0755
edit
dl
rm
file-size.sh
86
0755
edit
dl
rm
find-unused-docs.sh
1304
0755
edit
dl
rm
gcc-goto.sh
511
0755
edit
dl
rm
gcc-ld
711
0755
edit
dl
rm
gcc-x86_32-has-stack-protector.sh
405
0755
edit
dl
rm
gcc-x86_64-has-stack-protector.sh
195
0755
edit
dl
rm
generate_initcall_order.pl
6090
0755
edit
dl
rm
gen_autoksyms.sh
1509
0755
edit
dl
rm
gen_ksymdeps.sh
556
0755
edit
dl
rm
get_abi.pl
15463
0755
edit
dl
rm
get_dvb_firmware
25128
0755
edit
dl
rm
get_feat.pl
14689
0755
edit
dl
rm
get_maintainer.pl
68744
0755
edit
dl
rm
gfp-translate
1732
0755
edit
dl
rm
headerdep.pl
3587
0755
edit
dl
rm
headers_check.pl
3819
0755
edit
dl
rm
headers_install.sh
3431
0755
edit
dl
rm
insert-sys-cert
21976
0755
edit
dl
rm
insert-sys-cert.c
13392
0644
edit
dl
rm
jobserver-exec
2213
0755
edit
dl
rm
kallsyms
22136
0755
edit
dl
rm
kallsyms.c
18498
0644
edit
dl
rm
Kbuild.include
10392
0644
edit
dl
rm
Kconfig.include
2635
0644
edit
dl
rm
kernel-doc
70388
0755
edit
dl
rm
ld-version.sh
1864
0755
edit
dl
rm
leaking_addresses.pl
13112
0755
edit
dl
rm
Lindent
502
0755
edit
dl
rm
link-vmlinux.sh
11181
0755
edit
dl
rm
Makefile
1681
0644
edit
dl
rm
Makefile.asm-generic
1864
0644
edit
dl
rm
Makefile.build
20135
0644
edit
dl
rm
Makefile.clang
1602
0644
edit
dl
rm
Makefile.clean
2254
0644
edit
dl
rm
Makefile.compiler
2806
0644
edit
dl
rm
Makefile.dtbinst
1007
0644
edit
dl
rm
Makefile.extrawarn
3092
0644
edit
dl
rm
Makefile.gcc-plugins
2778
0644
edit
dl
rm
Makefile.headersinst
2950
0644
edit
dl
rm
Makefile.host
4743
0644
edit
dl
rm
Makefile.kasan
1715
0644
edit
dl
rm
Makefile.kcov
333
0644
edit
dl
rm
Makefile.kcsan
739
0644
edit
dl
rm
Makefile.lib
18455
0644
edit
dl
rm
Makefile.modfinal
2793
0644
edit
dl
rm
Makefile.modinst
2581
0644
edit
dl
rm
Makefile.modpost
4478
0644
edit
dl
rm
Makefile.package
6771
0644
edit
dl
rm
Makefile.ubsan
770
0644
edit
dl
rm
Makefile.userprogs
1607
0644
edit
dl
rm
makelst
808
0755
edit
dl
rm
markup_oops.pl
8110
0755
edit
dl
rm
min-tool-version.sh
558
0755
edit
dl
rm
mkcompile_h
2541
0755
edit
dl
rm
mksysmap
1369
0755
edit
dl
rm
mkuboot.sh
414
0755
edit
dl
rm
module.lds
597
0644
edit
dl
rm
module.lds.S
1691
0644
edit
dl
rm
modules-check.sh
427
0755
edit
dl
rm
nsdeps
1765
0644
edit
dl
rm
objdiff
2905
0755
edit
dl
rm
pahole-flags.sh
749
0755
edit
dl
rm
pahole-version.sh
269
0755
edit
dl
rm
parse-maintainers.pl
4646
0755
edit
dl
rm
patch-kernel
10185
0755
edit
dl
rm
profile2linkerlist.pl
414
0755
edit
dl
rm
prune-kernel
708
0755
edit
dl
rm
recordmcount.c
17152
0644
edit
dl
rm
recordmcount.h
19832
0644
edit
dl
rm
recordmcount.pl
18049
0755
edit
dl
rm
remove-stale-files
1336
0755
edit
dl
rm
setlocalversion
3580
0755
edit
dl
rm
show_delta
3087
0755
edit
dl
rm
sign-file
26424
0755
edit
dl
rm
sign-file.c
10172
0644
edit
dl
rm
sorttable
21320
0755
edit
dl
rm
sorttable.c
8949
0644
edit
dl
rm
sorttable.h
10063
0644
edit
dl
rm
spdxcheck-test.sh
277
0644
edit
dl
rm
spdxcheck.py
10334
0755
edit
dl
rm
spelling.txt
32646
0644
edit
dl
rm
sphinx-pre-install
25035
0755
edit
dl
rm
split-man.pl
604
0755
edit
dl
rm
stackdelta
1887
0755
edit
dl
rm
stackusage
794
0755
edit
dl
rm
subarch.include
619
0644
edit
dl
rm
syscallhdr.sh
1935
0755
edit
dl
rm
syscallnr.sh
1485
0755
edit
dl
rm
syscalltbl.sh
1489
0755
edit
dl
rm
tags.sh
10110
0755
edit
dl
rm
tools-support-relr.sh
546
0755
edit
dl
rm
ubuntu-retpoline-extract-one
7434
0644
edit
dl
rm
unifdef.c
35637
0644
edit
dl
rm
ver_linux
2648
0755
edit
dl
rm
xen-hypercalls.sh
386
0755
edit
dl
rm
xz_wrap.sh
563
0755
edit
dl
rm
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 <asm/types.h> #include <asm/unistd.h> /* *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
Save
cmd:
run