Update syscall lists for Linux 5.15

Linux 5.15 has one new syscall, process_mrelease (and also enables the
clone3 syscall for RV32).  It also has a macro __NR_SYSCALL_MASK for
Arm, which is not a syscall but matches the pattern used for syscall
macro names.

Add __NR_SYSCALL_MASK to the names filtered out in the code dealing
with syscall lists, update syscall-names.list for the new syscall and
regenerate the arch-syscall.h headers with build-many-glibcs.py
update-syscalls.

Tested with build-many-glibcs.py.
This commit is contained in:
Joseph Myers 2021-11-10 15:21:19 +00:00
parent 98966749f2
commit 3387c40a8b
28 changed files with 31 additions and 4 deletions

View File

@ -180,6 +180,7 @@
#define __NR_preadv2 286
#define __NR_prlimit64 261
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 270
#define __NR_process_vm_writev 271
#define __NR_pselect6 72

View File

@ -328,6 +328,7 @@
#define __NR_preadv2 520
#define __NR_prlimit64 496
#define __NR_process_madvise 550
#define __NR_process_mrelease 558
#define __NR_process_vm_readv 504
#define __NR_process_vm_writev 505
#define __NR_pselect6 463

View File

@ -182,6 +182,7 @@
#define __NR_preadv2 286
#define __NR_prlimit64 261
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 270
#define __NR_process_vm_writev 271
#define __NR_pselect6_time64 413

View File

@ -235,6 +235,7 @@
#define __NR_preadv2 392
#define __NR_prlimit64 369
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 376
#define __NR_process_vm_writev 377
#define __NR_pselect6 335

View File

@ -190,6 +190,7 @@
#define __NR_preadv2 286
#define __NR_prlimit64 261
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 270
#define __NR_process_vm_writev 271
#define __NR_pselect6 72

View File

@ -22,7 +22,7 @@
}
# Skip pseudo-system calls which describe ranges.
/^#define __NR_(syscalls|arch_specific_syscall|(OABI_)?SYSCALL_BASE) / {
/^#define __NR_(syscalls|arch_specific_syscall|(OABI_)?SYSCALL_BASE|SYSCALL_MASK) / {
next;
}
/^#define __NR_(|64_|[NO]32_)Linux(_syscalls)? / {

View File

@ -41,7 +41,7 @@ RE_PSEUDO_SYSCALL = re.compile(r"""__NR_(
(unused|reserved)[0-9]+
# Pseudo-system call which describes a range.
|(syscalls|arch_specific_syscall|(OABI_)?SYSCALL_BASE)
|(syscalls|arch_specific_syscall|(OABI_)?SYSCALL_BASE|SYSCALL_MASK)
|(|64_|[NO]32_)Linux(_syscalls)?
)""", re.X)

View File

@ -222,6 +222,7 @@
#define __NR_preadv2 347
#define __NR_prlimit64 321
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 330
#define __NR_process_vm_writev 331
#define __NR_pselect6 273

View File

@ -254,6 +254,7 @@
#define __NR_preadv2 378
#define __NR_prlimit64 340
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 347
#define __NR_process_vm_writev 348
#define __NR_prof 44

View File

@ -209,6 +209,7 @@
#define __NR_preadv2 1348
#define __NR_prlimit64 1325
#define __NR_process_madvise 1464
#define __NR_process_mrelease 1472
#define __NR_process_vm_readv 1332
#define __NR_process_vm_writev 1333
#define __NR_pselect6 1294

View File

@ -243,6 +243,7 @@
#define __NR_preadv2 377
#define __NR_prlimit64 339
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 345
#define __NR_process_vm_writev 346
#define __NR_pselect6 301

View File

@ -253,6 +253,7 @@
#define __NR_preadv2 393
#define __NR_prlimit64 370
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 377
#define __NR_process_vm_writev 378
#define __NR_prof 44

View File

@ -238,6 +238,7 @@
#define __NR_preadv2 4361
#define __NR_prlimit64 4338
#define __NR_process_madvise 4440
#define __NR_process_mrelease 4448
#define __NR_process_vm_readv 4345
#define __NR_process_vm_writev 4346
#define __NR_prof 4044

View File

@ -221,6 +221,7 @@
#define __NR_preadv2 6325
#define __NR_prlimit64 6302
#define __NR_process_madvise 6440
#define __NR_process_mrelease 6448
#define __NR_process_vm_readv 6309
#define __NR_process_vm_writev 6310
#define __NR_pselect6 6264

View File

@ -209,6 +209,7 @@
#define __NR_preadv2 5321
#define __NR_prlimit64 5297
#define __NR_process_madvise 5440
#define __NR_process_mrelease 5448
#define __NR_process_vm_readv 5304
#define __NR_process_vm_writev 5305
#define __NR_pselect6 5260

View File

@ -189,6 +189,7 @@
#define __NR_preadv2 286
#define __NR_prlimit64 261
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 270
#define __NR_process_vm_writev 271
#define __NR_pselect6 72

View File

@ -247,6 +247,7 @@
#define __NR_preadv2 380
#define __NR_prlimit64 325
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 351
#define __NR_process_vm_writev 352
#define __NR_prof 44

View File

@ -231,6 +231,7 @@
#define __NR_preadv2 380
#define __NR_prlimit64 325
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 351
#define __NR_process_vm_writev 352
#define __NR_prof 44

View File

@ -16,6 +16,7 @@
#define __NR_clock_nanosleep_time64 407
#define __NR_clock_settime64 404
#define __NR_clone 220
#define __NR_clone3 435
#define __NR_close 57
#define __NR_close_range 436
#define __NR_connect 203
@ -171,6 +172,7 @@
#define __NR_preadv2 286
#define __NR_prlimit64 261
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 270
#define __NR_process_vm_writev 271
#define __NR_pselect6_time64 413

View File

@ -179,6 +179,7 @@
#define __NR_preadv2 286
#define __NR_prlimit64 261
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 270
#define __NR_process_vm_writev 271
#define __NR_pselect6 72

View File

@ -240,6 +240,7 @@
#define __NR_preadv2 376
#define __NR_prlimit64 334
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 340
#define __NR_process_vm_writev 341
#define __NR_pselect6 301

View File

@ -211,6 +211,7 @@
#define __NR_preadv2 376
#define __NR_prlimit64 334
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 340
#define __NR_process_vm_writev 341
#define __NR_pselect6 301

View File

@ -237,6 +237,7 @@
#define __NR_preadv2 381
#define __NR_prlimit64 339
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 365
#define __NR_process_vm_writev 366
#define __NR_pselect6 308

View File

@ -242,6 +242,7 @@
#define __NR_preadv2 358
#define __NR_prlimit64 331
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 338
#define __NR_process_vm_writev 339
#define __NR_pselect6 297

View File

@ -222,6 +222,7 @@
#define __NR_preadv2 358
#define __NR_prlimit64 331
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 338
#define __NR_process_vm_writev 339
#define __NR_pselect6 297

View File

@ -21,8 +21,8 @@
# This file can list all potential system calls. The names are only
# used if the installed kernel headers also provide them.
# The list of system calls is current as of Linux 5.14.
kernel 5.14
# The list of system calls is current as of Linux 5.15.
kernel 5.15
FAST_atomic_update
FAST_cmpxchg
@ -440,6 +440,7 @@ preadv
preadv2
prlimit64
process_madvise
process_mrelease
process_vm_readv
process_vm_writev
prof

View File

@ -215,6 +215,7 @@
#define __NR_preadv2 327
#define __NR_prlimit64 302
#define __NR_process_madvise 440
#define __NR_process_mrelease 448
#define __NR_process_vm_readv 310
#define __NR_process_vm_writev 311
#define __NR_pselect6 270

View File

@ -208,6 +208,7 @@
#define __NR_preadv2 1073742370
#define __NR_prlimit64 1073742126
#define __NR_process_madvise 1073742264
#define __NR_process_mrelease 1073742272
#define __NR_process_vm_readv 1073742363
#define __NR_process_vm_writev 1073742364
#define __NR_pselect6 1073742094