Skip to content

Commit 2a345b2

Browse files
committed
syscall_table: Update to v6.12 kernel syscall
Some of our downstream communities are moving to 6.12 kernel, regenerated `syscall_table` from 6.12 kernel source to catch up. Signed-off-by: Ruoqing He <[email protected]>
1 parent a8b10e2 commit 2a345b2

File tree

3 files changed

+77
-8
lines changed

3 files changed

+77
-8
lines changed

src/syscall_table/aarch64.rs

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause
33

44
// This file is auto-generated by `tools/generate_syscall_tables`.
55
// Do NOT manually edit!
6-
// Generated on: Mon Jan 17 17:30:54 UTC 2022
7-
// Kernel version: 5.10
6+
// Generated on: Sat Dec 14 01:47:02 PM CST 2024
7+
// Kernel version: 6.12
88

99
use std::collections::HashMap;
1010

@@ -18,6 +18,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
1818
("bind", 200),
1919
("bpf", 280),
2020
("brk", 214),
21+
("cachestat", 451),
2122
("capget", 90),
2223
("capset", 91),
2324
("chdir", 49),
@@ -39,6 +40,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
3940
("epoll_create1", 20),
4041
("epoll_ctl", 21),
4142
("epoll_pwait", 22),
43+
("epoll_pwait2", 441),
4244
("eventfd2", 19),
4345
("execve", 221),
4446
("execveat", 281),
@@ -53,6 +55,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
5355
("fchdir", 50),
5456
("fchmod", 52),
5557
("fchmodat", 53),
58+
("fchmodat2", 452),
5659
("fchown", 55),
5760
("fchownat", 54),
5861
("fcntl", 25),
@@ -72,6 +75,10 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
7275
("fsync", 82),
7376
("ftruncate", 46),
7477
("futex", 98),
78+
("futex_requeue", 456),
79+
("futex_wait", 455),
80+
("futex_waitv", 449),
81+
("futex_wake", 454),
7582
("getcpu", 168),
7683
("getcwd", 17),
7784
("getdents64", 61),
@@ -120,19 +127,28 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
120127
("kexec_load", 104),
121128
("keyctl", 219),
122129
("kill", 129),
130+
("landlock_add_rule", 445),
131+
("landlock_create_ruleset", 444),
132+
("landlock_restrict_self", 446),
123133
("lgetxattr", 9),
124134
("linkat", 37),
125135
("listen", 201),
136+
("listmount", 458),
126137
("listxattr", 11),
127138
("llistxattr", 12),
128139
("lookup_dcookie", 18),
129140
("lremovexattr", 15),
130141
("lseek", 62),
131142
("lsetxattr", 6),
143+
("lsm_get_self_attr", 459),
144+
("lsm_list_modules", 461),
145+
("lsm_set_self_attr", 460),
132146
("madvise", 233),
147+
("map_shadow_stack", 453),
133148
("mbind", 235),
134149
("membarrier", 283),
135150
("memfd_create", 279),
151+
("memfd_secret", 447),
136152
("migrate_pages", 238),
137153
("mincore", 232),
138154
("mkdirat", 34),
@@ -142,6 +158,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
142158
("mlockall", 230),
143159
("mmap", 222),
144160
("mount", 40),
161+
("mount_setattr", 442),
145162
("move_mount", 429),
146163
("move_pages", 239),
147164
("mprotect", 226),
@@ -152,6 +169,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
152169
("mq_timedsend", 182),
153170
("mq_unlink", 181),
154171
("mremap", 216),
172+
("mseal", 462),
155173
("msgctl", 187),
156174
("msgget", 186),
157175
("msgrcv", 188),
@@ -185,6 +203,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
185203
("preadv2", 286),
186204
("prlimit64", 261),
187205
("process_madvise", 440),
206+
("process_mrelease", 448),
188207
("process_vm_readv", 270),
189208
("process_vm_writev", 271),
190209
("pselect6", 72),
@@ -193,6 +212,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
193212
("pwritev", 70),
194213
("pwritev2", 287),
195214
("quotactl", 60),
215+
("quotactl_fd", 443),
196216
("read", 63),
197217
("readahead", 213),
198218
("readlinkat", 78),
@@ -245,6 +265,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
245265
("sethostname", 161),
246266
("setitimer", 103),
247267
("set_mempolicy", 237),
268+
("set_mempolicy_home_node", 450),
248269
("setns", 268),
249270
("setpgid", 154),
250271
("setpriority", 140),
@@ -271,6 +292,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
271292
("socketpair", 199),
272293
("splice", 76),
273294
("statfs", 43),
295+
("statmount", 457),
274296
("statx", 291),
275297
("swapoff", 225),
276298
("swapon", 224),

src/syscall_table/riscv64.rs

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
// This file is auto-generated by `tools/generate_syscall_tables`.
55
// Do NOT manually edit!
6-
// Generated on: Thu Dec 5 19:14:32 HKT 2024
7-
// Kernel version: 5.10
6+
// Generated on: Sat Dec 14 01:47:02 PM CST 2024
7+
// Kernel version: 6.12
88

99
use std::collections::HashMap;
1010

@@ -18,6 +18,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
1818
("bind", 200),
1919
("bpf", 280),
2020
("brk", 214),
21+
("cachestat", 451),
2122
("capget", 90),
2223
("capset", 91),
2324
("chdir", 49),
@@ -39,6 +40,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
3940
("epoll_create1", 20),
4041
("epoll_ctl", 21),
4142
("epoll_pwait", 22),
43+
("epoll_pwait2", 441),
4244
("eventfd2", 19),
4345
("execve", 221),
4446
("execveat", 281),
@@ -53,6 +55,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
5355
("fchdir", 50),
5456
("fchmod", 52),
5557
("fchmodat", 53),
58+
("fchmodat2", 452),
5659
("fchown", 55),
5760
("fchownat", 54),
5861
("fcntl", 25),
@@ -72,6 +75,10 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
7275
("fsync", 82),
7376
("ftruncate", 46),
7477
("futex", 98),
78+
("futex_requeue", 456),
79+
("futex_wait", 455),
80+
("futex_waitv", 449),
81+
("futex_wake", 454),
7582
("getcpu", 168),
7683
("getcwd", 17),
7784
("getdents64", 61),
@@ -120,19 +127,28 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
120127
("kexec_load", 104),
121128
("keyctl", 219),
122129
("kill", 129),
130+
("landlock_add_rule", 445),
131+
("landlock_create_ruleset", 444),
132+
("landlock_restrict_self", 446),
123133
("lgetxattr", 9),
124134
("linkat", 37),
125135
("listen", 201),
136+
("listmount", 458),
126137
("listxattr", 11),
127138
("llistxattr", 12),
128139
("lookup_dcookie", 18),
129140
("lremovexattr", 15),
130141
("lseek", 62),
131142
("lsetxattr", 6),
143+
("lsm_get_self_attr", 459),
144+
("lsm_list_modules", 461),
145+
("lsm_set_self_attr", 460),
132146
("madvise", 233),
147+
("map_shadow_stack", 453),
133148
("mbind", 235),
134149
("membarrier", 283),
135150
("memfd_create", 279),
151+
("memfd_secret", 447),
136152
("migrate_pages", 238),
137153
("mincore", 232),
138154
("mkdirat", 34),
@@ -142,6 +158,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
142158
("mlockall", 230),
143159
("mmap", 222),
144160
("mount", 40),
161+
("mount_setattr", 442),
145162
("move_mount", 429),
146163
("move_pages", 239),
147164
("mprotect", 226),
@@ -152,6 +169,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
152169
("mq_timedsend", 182),
153170
("mq_unlink", 181),
154171
("mremap", 216),
172+
("mseal", 462),
155173
("msgctl", 187),
156174
("msgget", 186),
157175
("msgrcv", 188),
@@ -185,6 +203,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
185203
("preadv2", 286),
186204
("prlimit64", 261),
187205
("process_madvise", 440),
206+
("process_mrelease", 448),
188207
("process_vm_readv", 270),
189208
("process_vm_writev", 271),
190209
("pselect6", 72),
@@ -193,6 +212,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
193212
("pwritev", 70),
194213
("pwritev2", 287),
195214
("quotactl", 60),
215+
("quotactl_fd", 443),
196216
("read", 63),
197217
("readahead", 213),
198218
("readlinkat", 78),
@@ -206,6 +226,8 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
206226
("renameat2", 276),
207227
("request_key", 218),
208228
("restart_syscall", 128),
229+
("riscv_flush_icache", 259),
230+
("riscv_hwprobe", 258),
209231
("rseq", 293),
210232
("rt_sigaction", 134),
211233
("rt_sigpending", 136),
@@ -244,6 +266,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
244266
("sethostname", 161),
245267
("setitimer", 103),
246268
("set_mempolicy", 237),
269+
("set_mempolicy_home_node", 450),
247270
("setns", 268),
248271
("setpgid", 154),
249272
("setpriority", 140),
@@ -270,6 +293,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
270293
("socketpair", 199),
271294
("splice", 76),
272295
("statfs", 43),
296+
("statmount", 457),
273297
("statx", 291),
274298
("swapoff", 225),
275299
("swapon", 224),

src/syscall_table/x86_64.rs

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause
33

44
// This file is auto-generated by `tools/generate_syscall_tables`.
55
// Do NOT manually edit!
6-
// Generated on: Mon Jan 17 17:30:54 UTC 2022
7-
// Kernel version: 5.10
6+
// Generated on: Sat Dec 14 01:47:02 PM CST 2024
7+
// Kernel version: 6.12
88

99
use std::collections::HashMap;
1010

@@ -22,6 +22,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
2222
("bind", 49),
2323
("bpf", 321),
2424
("brk", 12),
25+
("cachestat", 451),
2526
("capget", 125),
2627
("capset", 126),
2728
("chdir", 80),
@@ -50,6 +51,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
5051
("epoll_ctl", 233),
5152
("epoll_ctl_old", 214),
5253
("epoll_pwait", 281),
54+
("epoll_pwait2", 441),
5355
("epoll_wait", 232),
5456
("epoll_wait_old", 215),
5557
("eventfd", 284),
@@ -67,6 +69,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
6769
("fchdir", 81),
6870
("fchmod", 91),
6971
("fchmodat", 268),
72+
("fchmodat2", 452),
7073
("fchown", 93),
7174
("fchownat", 260),
7275
("fcntl", 72),
@@ -87,6 +90,10 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
8790
("fsync", 74),
8891
("ftruncate", 77),
8992
("futex", 202),
93+
("futex_requeue", 456),
94+
("futex_wait", 455),
95+
("futex_waitv", 449),
96+
("futex_wake", 454),
9097
("futimesat", 261),
9198
("getcpu", 309),
9299
("getcwd", 79),
@@ -144,22 +151,31 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
144151
("kexec_load", 246),
145152
("keyctl", 250),
146153
("kill", 62),
154+
("landlock_add_rule", 445),
155+
("landlock_create_ruleset", 444),
156+
("landlock_restrict_self", 446),
147157
("lchown", 94),
148158
("lgetxattr", 192),
149159
("link", 86),
150160
("linkat", 265),
151161
("listen", 50),
162+
("listmount", 458),
152163
("listxattr", 194),
153164
("llistxattr", 195),
154165
("lookup_dcookie", 212),
155166
("lremovexattr", 198),
156167
("lseek", 8),
157168
("lsetxattr", 189),
169+
("lsm_get_self_attr", 459),
170+
("lsm_list_modules", 461),
171+
("lsm_set_self_attr", 460),
158172
("lstat", 6),
159173
("madvise", 28),
174+
("map_shadow_stack", 453),
160175
("mbind", 237),
161176
("membarrier", 324),
162177
("memfd_create", 319),
178+
("memfd_secret", 447),
163179
("migrate_pages", 256),
164180
("mincore", 27),
165181
("mkdir", 83),
@@ -172,6 +188,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
172188
("mmap", 9),
173189
("modify_ldt", 154),
174190
("mount", 165),
191+
("mount_setattr", 442),
175192
("move_mount", 429),
176193
("move_pages", 279),
177194
("mprotect", 10),
@@ -182,6 +199,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
182199
("mq_timedsend", 242),
183200
("mq_unlink", 241),
184201
("mremap", 25),
202+
("mseal", 462),
185203
("msgctl", 71),
186204
("msgget", 68),
187205
("msgrcv", 70),
@@ -219,6 +237,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
219237
("preadv2", 327),
220238
("prlimit64", 302),
221239
("process_madvise", 440),
240+
("process_mrelease", 448),
222241
("process_vm_readv", 310),
223242
("process_vm_writev", 311),
224243
("pselect6", 270),
@@ -229,6 +248,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
229248
("pwritev2", 328),
230249
("query_module", 178),
231250
("quotactl", 179),
251+
("quotactl_fd", 443),
232252
("read", 0),
233253
("readahead", 187),
234254
("readlink", 89),
@@ -286,6 +306,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
286306
("sethostname", 170),
287307
("setitimer", 38),
288308
("set_mempolicy", 238),
309+
("set_mempolicy_home_node", 450),
289310
("setns", 308),
290311
("setpgid", 109),
291312
("setpriority", 141),
@@ -315,6 +336,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
315336
("splice", 275),
316337
("stat", 4),
317338
("statfs", 137),
339+
("statmount", 457),
318340
("statx", 332),
319341
("swapoff", 168),
320342
("swapon", 167),
@@ -348,6 +370,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
348370
("unlink", 87),
349371
("unlinkat", 263),
350372
("unshare", 272),
373+
("uretprobe", 335),
351374
("uselib", 134),
352375
("userfaultfd", 323),
353376
("ustat", 136),

0 commit comments

Comments
 (0)