libclues
Linux C++ Tracing Library
Loading...
Searching...
No Matches
x32.cxx
1#include <clues/sysnrs/x32.hxx>
2#include <clues/sysnrs/generic.hxx>
3
4
5/********************************************************************************
6 * this file was generated by parse_syscall_tables.py
7 * based on Linux kernel sources 6.18.18-gentoo
8 ********************************************************************************/
9
10namespace clues {
11
12/*
13 * TODO: this is a very big switch statement which will need to be
14 * invoked for every new system call entry.
15 * for now we trust the compiler to generate efficient code here, but
16 * it could hurt tracing performance if this is not as good as we hope
17 * it to be. Using an alternative data structure like std::map could
18 * help here in this case.
19 * This needs a closer investigation at a later time.
20 */
21clues::SystemCallNr to_generic(const SystemCallNrX32 nr) {
22
23 switch (nr) {
24 default: return SystemCallNr::UNKNOWN;
25 case SystemCallNrX32::READ: return clues::SystemCallNr::READ;
26 case SystemCallNrX32::WRITE: return clues::SystemCallNr::WRITE;
27 case SystemCallNrX32::OPEN: return clues::SystemCallNr::OPEN;
28 case SystemCallNrX32::CLOSE: return clues::SystemCallNr::CLOSE;
29 case SystemCallNrX32::STAT: return clues::SystemCallNr::STAT;
30 case SystemCallNrX32::FSTAT: return clues::SystemCallNr::FSTAT;
31 case SystemCallNrX32::LSTAT: return clues::SystemCallNr::LSTAT;
32 case SystemCallNrX32::POLL: return clues::SystemCallNr::POLL;
33 case SystemCallNrX32::LSEEK: return clues::SystemCallNr::LSEEK;
34 case SystemCallNrX32::MMAP: return clues::SystemCallNr::MMAP;
35 case SystemCallNrX32::MPROTECT: return clues::SystemCallNr::MPROTECT;
36 case SystemCallNrX32::MUNMAP: return clues::SystemCallNr::MUNMAP;
37 case SystemCallNrX32::BRK: return clues::SystemCallNr::BRK;
38 case SystemCallNrX32::RT_SIGPROCMASK: return clues::SystemCallNr::RT_SIGPROCMASK;
39 case SystemCallNrX32::PREAD64: return clues::SystemCallNr::PREAD64;
40 case SystemCallNrX32::PWRITE64: return clues::SystemCallNr::PWRITE64;
41 case SystemCallNrX32::ACCESS: return clues::SystemCallNr::ACCESS;
42 case SystemCallNrX32::PIPE: return clues::SystemCallNr::PIPE;
43 case SystemCallNrX32::SELECT: return clues::SystemCallNr::SELECT;
44 case SystemCallNrX32::SCHED_YIELD: return clues::SystemCallNr::SCHED_YIELD;
45 case SystemCallNrX32::MREMAP: return clues::SystemCallNr::MREMAP;
46 case SystemCallNrX32::MSYNC: return clues::SystemCallNr::MSYNC;
47 case SystemCallNrX32::MINCORE: return clues::SystemCallNr::MINCORE;
48 case SystemCallNrX32::MADVISE: return clues::SystemCallNr::MADVISE;
49 case SystemCallNrX32::SHMGET: return clues::SystemCallNr::SHMGET;
50 case SystemCallNrX32::SHMAT: return clues::SystemCallNr::SHMAT;
51 case SystemCallNrX32::SHMCTL: return clues::SystemCallNr::SHMCTL;
52 case SystemCallNrX32::DUP: return clues::SystemCallNr::DUP;
53 case SystemCallNrX32::DUP2: return clues::SystemCallNr::DUP2;
54 case SystemCallNrX32::PAUSE: return clues::SystemCallNr::PAUSE;
55 case SystemCallNrX32::NANOSLEEP: return clues::SystemCallNr::NANOSLEEP;
56 case SystemCallNrX32::GETITIMER: return clues::SystemCallNr::GETITIMER;
57 case SystemCallNrX32::ALARM: return clues::SystemCallNr::ALARM;
58 case SystemCallNrX32::SETITIMER: return clues::SystemCallNr::SETITIMER;
59 case SystemCallNrX32::GETPID: return clues::SystemCallNr::GETPID;
60 case SystemCallNrX32::SENDFILE: return clues::SystemCallNr::SENDFILE;
61 case SystemCallNrX32::SOCKET: return clues::SystemCallNr::SOCKET;
62 case SystemCallNrX32::CONNECT: return clues::SystemCallNr::CONNECT;
63 case SystemCallNrX32::ACCEPT: return clues::SystemCallNr::ACCEPT;
64 case SystemCallNrX32::SENDTO: return clues::SystemCallNr::SENDTO;
65 case SystemCallNrX32::SHUTDOWN: return clues::SystemCallNr::SHUTDOWN;
66 case SystemCallNrX32::BIND: return clues::SystemCallNr::BIND;
67 case SystemCallNrX32::LISTEN: return clues::SystemCallNr::LISTEN;
68 case SystemCallNrX32::GETSOCKNAME: return clues::SystemCallNr::GETSOCKNAME;
69 case SystemCallNrX32::GETPEERNAME: return clues::SystemCallNr::GETPEERNAME;
70 case SystemCallNrX32::SOCKETPAIR: return clues::SystemCallNr::SOCKETPAIR;
71 case SystemCallNrX32::CLONE: return clues::SystemCallNr::CLONE;
72 case SystemCallNrX32::FORK: return clues::SystemCallNr::FORK;
73 case SystemCallNrX32::VFORK: return clues::SystemCallNr::VFORK;
74 case SystemCallNrX32::EXIT: return clues::SystemCallNr::EXIT;
75 case SystemCallNrX32::WAIT4: return clues::SystemCallNr::WAIT4;
76 case SystemCallNrX32::KILL: return clues::SystemCallNr::KILL;
77 case SystemCallNrX32::UNAME: return clues::SystemCallNr::UNAME;
78 case SystemCallNrX32::SEMGET: return clues::SystemCallNr::SEMGET;
79 case SystemCallNrX32::SEMOP: return clues::SystemCallNr::SEMOP;
80 case SystemCallNrX32::SEMCTL: return clues::SystemCallNr::SEMCTL;
81 case SystemCallNrX32::SHMDT: return clues::SystemCallNr::SHMDT;
82 case SystemCallNrX32::MSGGET: return clues::SystemCallNr::MSGGET;
83 case SystemCallNrX32::MSGSND: return clues::SystemCallNr::MSGSND;
84 case SystemCallNrX32::MSGRCV: return clues::SystemCallNr::MSGRCV;
85 case SystemCallNrX32::MSGCTL: return clues::SystemCallNr::MSGCTL;
86 case SystemCallNrX32::FCNTL: return clues::SystemCallNr::FCNTL;
87 case SystemCallNrX32::FLOCK: return clues::SystemCallNr::FLOCK;
88 case SystemCallNrX32::FSYNC: return clues::SystemCallNr::FSYNC;
89 case SystemCallNrX32::FDATASYNC: return clues::SystemCallNr::FDATASYNC;
90 case SystemCallNrX32::TRUNCATE: return clues::SystemCallNr::TRUNCATE;
91 case SystemCallNrX32::FTRUNCATE: return clues::SystemCallNr::FTRUNCATE;
92 case SystemCallNrX32::GETDENTS: return clues::SystemCallNr::GETDENTS;
93 case SystemCallNrX32::GETCWD: return clues::SystemCallNr::GETCWD;
94 case SystemCallNrX32::CHDIR: return clues::SystemCallNr::CHDIR;
95 case SystemCallNrX32::FCHDIR: return clues::SystemCallNr::FCHDIR;
96 case SystemCallNrX32::RENAME: return clues::SystemCallNr::RENAME;
97 case SystemCallNrX32::MKDIR: return clues::SystemCallNr::MKDIR;
98 case SystemCallNrX32::RMDIR: return clues::SystemCallNr::RMDIR;
99 case SystemCallNrX32::CREAT: return clues::SystemCallNr::CREAT;
100 case SystemCallNrX32::LINK: return clues::SystemCallNr::LINK;
101 case SystemCallNrX32::UNLINK: return clues::SystemCallNr::UNLINK;
102 case SystemCallNrX32::SYMLINK: return clues::SystemCallNr::SYMLINK;
103 case SystemCallNrX32::READLINK: return clues::SystemCallNr::READLINK;
104 case SystemCallNrX32::CHMOD: return clues::SystemCallNr::CHMOD;
105 case SystemCallNrX32::FCHMOD: return clues::SystemCallNr::FCHMOD;
106 case SystemCallNrX32::CHOWN: return clues::SystemCallNr::CHOWN;
107 case SystemCallNrX32::FCHOWN: return clues::SystemCallNr::FCHOWN;
108 case SystemCallNrX32::LCHOWN: return clues::SystemCallNr::LCHOWN;
109 case SystemCallNrX32::UMASK: return clues::SystemCallNr::UMASK;
110 case SystemCallNrX32::GETTIMEOFDAY: return clues::SystemCallNr::GETTIMEOFDAY;
111 case SystemCallNrX32::GETRLIMIT: return clues::SystemCallNr::GETRLIMIT;
112 case SystemCallNrX32::GETRUSAGE: return clues::SystemCallNr::GETRUSAGE;
113 case SystemCallNrX32::SYSINFO: return clues::SystemCallNr::SYSINFO;
114 case SystemCallNrX32::TIMES: return clues::SystemCallNr::TIMES;
115 case SystemCallNrX32::GETUID: return clues::SystemCallNr::GETUID;
116 case SystemCallNrX32::SYSLOG: return clues::SystemCallNr::SYSLOG;
117 case SystemCallNrX32::GETGID: return clues::SystemCallNr::GETGID;
118 case SystemCallNrX32::SETUID: return clues::SystemCallNr::SETUID;
119 case SystemCallNrX32::SETGID: return clues::SystemCallNr::SETGID;
120 case SystemCallNrX32::GETEUID: return clues::SystemCallNr::GETEUID;
121 case SystemCallNrX32::GETEGID: return clues::SystemCallNr::GETEGID;
122 case SystemCallNrX32::SETPGID: return clues::SystemCallNr::SETPGID;
123 case SystemCallNrX32::GETPPID: return clues::SystemCallNr::GETPPID;
124 case SystemCallNrX32::GETPGRP: return clues::SystemCallNr::GETPGRP;
125 case SystemCallNrX32::SETSID: return clues::SystemCallNr::SETSID;
126 case SystemCallNrX32::SETREUID: return clues::SystemCallNr::SETREUID;
127 case SystemCallNrX32::SETREGID: return clues::SystemCallNr::SETREGID;
128 case SystemCallNrX32::GETGROUPS: return clues::SystemCallNr::GETGROUPS;
129 case SystemCallNrX32::SETGROUPS: return clues::SystemCallNr::SETGROUPS;
130 case SystemCallNrX32::SETRESUID: return clues::SystemCallNr::SETRESUID;
131 case SystemCallNrX32::GETRESUID: return clues::SystemCallNr::GETRESUID;
132 case SystemCallNrX32::SETRESGID: return clues::SystemCallNr::SETRESGID;
133 case SystemCallNrX32::GETRESGID: return clues::SystemCallNr::GETRESGID;
134 case SystemCallNrX32::GETPGID: return clues::SystemCallNr::GETPGID;
135 case SystemCallNrX32::SETFSUID: return clues::SystemCallNr::SETFSUID;
136 case SystemCallNrX32::SETFSGID: return clues::SystemCallNr::SETFSGID;
137 case SystemCallNrX32::GETSID: return clues::SystemCallNr::GETSID;
138 case SystemCallNrX32::CAPGET: return clues::SystemCallNr::CAPGET;
139 case SystemCallNrX32::CAPSET: return clues::SystemCallNr::CAPSET;
140 case SystemCallNrX32::RT_SIGSUSPEND: return clues::SystemCallNr::RT_SIGSUSPEND;
141 case SystemCallNrX32::UTIME: return clues::SystemCallNr::UTIME;
142 case SystemCallNrX32::MKNOD: return clues::SystemCallNr::MKNOD;
143 case SystemCallNrX32::PERSONALITY: return clues::SystemCallNr::PERSONALITY;
144 case SystemCallNrX32::USTAT: return clues::SystemCallNr::USTAT;
145 case SystemCallNrX32::STATFS: return clues::SystemCallNr::STATFS;
146 case SystemCallNrX32::FSTATFS: return clues::SystemCallNr::FSTATFS;
147 case SystemCallNrX32::SYSFS: return clues::SystemCallNr::SYSFS;
148 case SystemCallNrX32::GETPRIORITY: return clues::SystemCallNr::GETPRIORITY;
149 case SystemCallNrX32::SETPRIORITY: return clues::SystemCallNr::SETPRIORITY;
150 case SystemCallNrX32::SCHED_SETPARAM: return clues::SystemCallNr::SCHED_SETPARAM;
151 case SystemCallNrX32::SCHED_GETPARAM: return clues::SystemCallNr::SCHED_GETPARAM;
152 case SystemCallNrX32::SCHED_SETSCHEDULER: return clues::SystemCallNr::SCHED_SETSCHEDULER;
153 case SystemCallNrX32::SCHED_GETSCHEDULER: return clues::SystemCallNr::SCHED_GETSCHEDULER;
154 case SystemCallNrX32::SCHED_GET_PRIORITY_MAX: return clues::SystemCallNr::SCHED_GET_PRIORITY_MAX;
155 case SystemCallNrX32::SCHED_GET_PRIORITY_MIN: return clues::SystemCallNr::SCHED_GET_PRIORITY_MIN;
156 case SystemCallNrX32::SCHED_RR_GET_INTERVAL: return clues::SystemCallNr::SCHED_RR_GET_INTERVAL;
157 case SystemCallNrX32::MLOCK: return clues::SystemCallNr::MLOCK;
158 case SystemCallNrX32::MUNLOCK: return clues::SystemCallNr::MUNLOCK;
159 case SystemCallNrX32::MLOCKALL: return clues::SystemCallNr::MLOCKALL;
160 case SystemCallNrX32::MUNLOCKALL: return clues::SystemCallNr::MUNLOCKALL;
161 case SystemCallNrX32::VHANGUP: return clues::SystemCallNr::VHANGUP;
162 case SystemCallNrX32::MODIFY_LDT: return clues::SystemCallNr::MODIFY_LDT;
163 case SystemCallNrX32::PIVOT_ROOT: return clues::SystemCallNr::PIVOT_ROOT;
164 case SystemCallNrX32::PRCTL: return clues::SystemCallNr::PRCTL;
165 case SystemCallNrX32::ARCH_PRCTL: return clues::SystemCallNr::ARCH_PRCTL;
166 case SystemCallNrX32::ADJTIMEX: return clues::SystemCallNr::ADJTIMEX;
167 case SystemCallNrX32::SETRLIMIT: return clues::SystemCallNr::SETRLIMIT;
168 case SystemCallNrX32::CHROOT: return clues::SystemCallNr::CHROOT;
169 case SystemCallNrX32::SYNC: return clues::SystemCallNr::SYNC;
170 case SystemCallNrX32::ACCT: return clues::SystemCallNr::ACCT;
171 case SystemCallNrX32::SETTIMEOFDAY: return clues::SystemCallNr::SETTIMEOFDAY;
172 case SystemCallNrX32::MOUNT: return clues::SystemCallNr::MOUNT;
173 case SystemCallNrX32::UMOUNT2: return clues::SystemCallNr::UMOUNT2;
174 case SystemCallNrX32::SWAPON: return clues::SystemCallNr::SWAPON;
175 case SystemCallNrX32::SWAPOFF: return clues::SystemCallNr::SWAPOFF;
176 case SystemCallNrX32::REBOOT: return clues::SystemCallNr::REBOOT;
177 case SystemCallNrX32::SETHOSTNAME: return clues::SystemCallNr::SETHOSTNAME;
178 case SystemCallNrX32::SETDOMAINNAME: return clues::SystemCallNr::SETDOMAINNAME;
179 case SystemCallNrX32::IOPL: return clues::SystemCallNr::IOPL;
180 case SystemCallNrX32::IOPERM: return clues::SystemCallNr::IOPERM;
181 case SystemCallNrX32::INIT_MODULE: return clues::SystemCallNr::INIT_MODULE;
182 case SystemCallNrX32::DELETE_MODULE: return clues::SystemCallNr::DELETE_MODULE;
183 case SystemCallNrX32::QUOTACTL: return clues::SystemCallNr::QUOTACTL;
184 case SystemCallNrX32::GETPMSG: return clues::SystemCallNr::GETPMSG;
185 case SystemCallNrX32::PUTPMSG: return clues::SystemCallNr::PUTPMSG;
186 case SystemCallNrX32::AFS_SYSCALL: return clues::SystemCallNr::AFS_SYSCALL;
187 case SystemCallNrX32::TUXCALL: return clues::SystemCallNr::TUXCALL;
188 case SystemCallNrX32::SECURITY: return clues::SystemCallNr::SECURITY;
189 case SystemCallNrX32::GETTID: return clues::SystemCallNr::GETTID;
190 case SystemCallNrX32::READAHEAD: return clues::SystemCallNr::READAHEAD;
191 case SystemCallNrX32::SETXATTR: return clues::SystemCallNr::SETXATTR;
192 case SystemCallNrX32::LSETXATTR: return clues::SystemCallNr::LSETXATTR;
193 case SystemCallNrX32::FSETXATTR: return clues::SystemCallNr::FSETXATTR;
194 case SystemCallNrX32::GETXATTR: return clues::SystemCallNr::GETXATTR;
195 case SystemCallNrX32::LGETXATTR: return clues::SystemCallNr::LGETXATTR;
196 case SystemCallNrX32::FGETXATTR: return clues::SystemCallNr::FGETXATTR;
197 case SystemCallNrX32::LISTXATTR: return clues::SystemCallNr::LISTXATTR;
198 case SystemCallNrX32::LLISTXATTR: return clues::SystemCallNr::LLISTXATTR;
199 case SystemCallNrX32::FLISTXATTR: return clues::SystemCallNr::FLISTXATTR;
200 case SystemCallNrX32::REMOVEXATTR: return clues::SystemCallNr::REMOVEXATTR;
201 case SystemCallNrX32::LREMOVEXATTR: return clues::SystemCallNr::LREMOVEXATTR;
202 case SystemCallNrX32::FREMOVEXATTR: return clues::SystemCallNr::FREMOVEXATTR;
203 case SystemCallNrX32::TKILL: return clues::SystemCallNr::TKILL;
204 case SystemCallNrX32::TIME: return clues::SystemCallNr::TIME;
205 case SystemCallNrX32::FUTEX: return clues::SystemCallNr::FUTEX;
206 case SystemCallNrX32::SCHED_SETAFFINITY: return clues::SystemCallNr::SCHED_SETAFFINITY;
207 case SystemCallNrX32::SCHED_GETAFFINITY: return clues::SystemCallNr::SCHED_GETAFFINITY;
208 case SystemCallNrX32::IO_DESTROY: return clues::SystemCallNr::IO_DESTROY;
209 case SystemCallNrX32::IO_GETEVENTS: return clues::SystemCallNr::IO_GETEVENTS;
210 case SystemCallNrX32::IO_CANCEL: return clues::SystemCallNr::IO_CANCEL;
211 case SystemCallNrX32::LOOKUP_DCOOKIE: return clues::SystemCallNr::LOOKUP_DCOOKIE;
212 case SystemCallNrX32::EPOLL_CREATE: return clues::SystemCallNr::EPOLL_CREATE;
213 case SystemCallNrX32::REMAP_FILE_PAGES: return clues::SystemCallNr::REMAP_FILE_PAGES;
214 case SystemCallNrX32::GETDENTS64: return clues::SystemCallNr::GETDENTS64;
215 case SystemCallNrX32::SET_TID_ADDRESS: return clues::SystemCallNr::SET_TID_ADDRESS;
216 case SystemCallNrX32::RESTART_SYSCALL: return clues::SystemCallNr::RESTART_SYSCALL;
217 case SystemCallNrX32::SEMTIMEDOP: return clues::SystemCallNr::SEMTIMEDOP;
218 case SystemCallNrX32::FADVISE64: return clues::SystemCallNr::FADVISE64;
219 case SystemCallNrX32::TIMER_SETTIME: return clues::SystemCallNr::TIMER_SETTIME;
220 case SystemCallNrX32::TIMER_GETTIME: return clues::SystemCallNr::TIMER_GETTIME;
221 case SystemCallNrX32::TIMER_GETOVERRUN: return clues::SystemCallNr::TIMER_GETOVERRUN;
222 case SystemCallNrX32::TIMER_DELETE: return clues::SystemCallNr::TIMER_DELETE;
223 case SystemCallNrX32::CLOCK_SETTIME: return clues::SystemCallNr::CLOCK_SETTIME;
224 case SystemCallNrX32::CLOCK_GETTIME: return clues::SystemCallNr::CLOCK_GETTIME;
225 case SystemCallNrX32::CLOCK_GETRES: return clues::SystemCallNr::CLOCK_GETRES;
226 case SystemCallNrX32::CLOCK_NANOSLEEP: return clues::SystemCallNr::CLOCK_NANOSLEEP;
227 case SystemCallNrX32::EXIT_GROUP: return clues::SystemCallNr::EXIT_GROUP;
228 case SystemCallNrX32::EPOLL_WAIT: return clues::SystemCallNr::EPOLL_WAIT;
229 case SystemCallNrX32::EPOLL_CTL: return clues::SystemCallNr::EPOLL_CTL;
230 case SystemCallNrX32::TGKILL: return clues::SystemCallNr::TGKILL;
231 case SystemCallNrX32::UTIMES: return clues::SystemCallNr::UTIMES;
232 case SystemCallNrX32::MBIND: return clues::SystemCallNr::MBIND;
233 case SystemCallNrX32::SET_MEMPOLICY: return clues::SystemCallNr::SET_MEMPOLICY;
234 case SystemCallNrX32::GET_MEMPOLICY: return clues::SystemCallNr::GET_MEMPOLICY;
235 case SystemCallNrX32::MQ_OPEN: return clues::SystemCallNr::MQ_OPEN;
236 case SystemCallNrX32::MQ_UNLINK: return clues::SystemCallNr::MQ_UNLINK;
237 case SystemCallNrX32::MQ_TIMEDSEND: return clues::SystemCallNr::MQ_TIMEDSEND;
238 case SystemCallNrX32::MQ_TIMEDRECEIVE: return clues::SystemCallNr::MQ_TIMEDRECEIVE;
239 case SystemCallNrX32::MQ_GETSETATTR: return clues::SystemCallNr::MQ_GETSETATTR;
240 case SystemCallNrX32::ADD_KEY: return clues::SystemCallNr::ADD_KEY;
241 case SystemCallNrX32::REQUEST_KEY: return clues::SystemCallNr::REQUEST_KEY;
242 case SystemCallNrX32::KEYCTL: return clues::SystemCallNr::KEYCTL;
243 case SystemCallNrX32::IOPRIO_SET: return clues::SystemCallNr::IOPRIO_SET;
244 case SystemCallNrX32::IOPRIO_GET: return clues::SystemCallNr::IOPRIO_GET;
245 case SystemCallNrX32::INOTIFY_INIT: return clues::SystemCallNr::INOTIFY_INIT;
246 case SystemCallNrX32::INOTIFY_ADD_WATCH: return clues::SystemCallNr::INOTIFY_ADD_WATCH;
247 case SystemCallNrX32::INOTIFY_RM_WATCH: return clues::SystemCallNr::INOTIFY_RM_WATCH;
248 case SystemCallNrX32::MIGRATE_PAGES: return clues::SystemCallNr::MIGRATE_PAGES;
249 case SystemCallNrX32::OPENAT: return clues::SystemCallNr::OPENAT;
250 case SystemCallNrX32::MKDIRAT: return clues::SystemCallNr::MKDIRAT;
251 case SystemCallNrX32::MKNODAT: return clues::SystemCallNr::MKNODAT;
252 case SystemCallNrX32::FCHOWNAT: return clues::SystemCallNr::FCHOWNAT;
253 case SystemCallNrX32::FUTIMESAT: return clues::SystemCallNr::FUTIMESAT;
254 case SystemCallNrX32::NEWFSTATAT: return clues::SystemCallNr::NEWFSTATAT;
255 case SystemCallNrX32::UNLINKAT: return clues::SystemCallNr::UNLINKAT;
256 case SystemCallNrX32::RENAMEAT: return clues::SystemCallNr::RENAMEAT;
257 case SystemCallNrX32::LINKAT: return clues::SystemCallNr::LINKAT;
258 case SystemCallNrX32::SYMLINKAT: return clues::SystemCallNr::SYMLINKAT;
259 case SystemCallNrX32::READLINKAT: return clues::SystemCallNr::READLINKAT;
260 case SystemCallNrX32::FCHMODAT: return clues::SystemCallNr::FCHMODAT;
261 case SystemCallNrX32::FACCESSAT: return clues::SystemCallNr::FACCESSAT;
262 case SystemCallNrX32::PSELECT6: return clues::SystemCallNr::PSELECT6;
263 case SystemCallNrX32::PPOLL: return clues::SystemCallNr::PPOLL;
264 case SystemCallNrX32::UNSHARE: return clues::SystemCallNr::UNSHARE;
265 case SystemCallNrX32::SPLICE: return clues::SystemCallNr::SPLICE;
266 case SystemCallNrX32::TEE: return clues::SystemCallNr::TEE;
267 case SystemCallNrX32::SYNC_FILE_RANGE: return clues::SystemCallNr::SYNC_FILE_RANGE;
268 case SystemCallNrX32::UTIMENSAT: return clues::SystemCallNr::UTIMENSAT;
269 case SystemCallNrX32::EPOLL_PWAIT: return clues::SystemCallNr::EPOLL_PWAIT;
270 case SystemCallNrX32::SIGNALFD: return clues::SystemCallNr::SIGNALFD;
271 case SystemCallNrX32::TIMERFD_CREATE: return clues::SystemCallNr::TIMERFD_CREATE;
272 case SystemCallNrX32::EVENTFD: return clues::SystemCallNr::EVENTFD;
273 case SystemCallNrX32::FALLOCATE: return clues::SystemCallNr::FALLOCATE;
274 case SystemCallNrX32::TIMERFD_SETTIME: return clues::SystemCallNr::TIMERFD_SETTIME;
275 case SystemCallNrX32::TIMERFD_GETTIME: return clues::SystemCallNr::TIMERFD_GETTIME;
276 case SystemCallNrX32::ACCEPT4: return clues::SystemCallNr::ACCEPT4;
277 case SystemCallNrX32::SIGNALFD4: return clues::SystemCallNr::SIGNALFD4;
278 case SystemCallNrX32::EVENTFD2: return clues::SystemCallNr::EVENTFD2;
279 case SystemCallNrX32::EPOLL_CREATE1: return clues::SystemCallNr::EPOLL_CREATE1;
280 case SystemCallNrX32::DUP3: return clues::SystemCallNr::DUP3;
281 case SystemCallNrX32::PIPE2: return clues::SystemCallNr::PIPE2;
282 case SystemCallNrX32::INOTIFY_INIT1: return clues::SystemCallNr::INOTIFY_INIT1;
283 case SystemCallNrX32::PERF_EVENT_OPEN: return clues::SystemCallNr::PERF_EVENT_OPEN;
284 case SystemCallNrX32::FANOTIFY_INIT: return clues::SystemCallNr::FANOTIFY_INIT;
285 case SystemCallNrX32::FANOTIFY_MARK: return clues::SystemCallNr::FANOTIFY_MARK;
286 case SystemCallNrX32::PRLIMIT64: return clues::SystemCallNr::PRLIMIT64;
287 case SystemCallNrX32::NAME_TO_HANDLE_AT: return clues::SystemCallNr::NAME_TO_HANDLE_AT;
288 case SystemCallNrX32::OPEN_BY_HANDLE_AT: return clues::SystemCallNr::OPEN_BY_HANDLE_AT;
289 case SystemCallNrX32::CLOCK_ADJTIME: return clues::SystemCallNr::CLOCK_ADJTIME;
290 case SystemCallNrX32::SYNCFS: return clues::SystemCallNr::SYNCFS;
291 case SystemCallNrX32::SETNS: return clues::SystemCallNr::SETNS;
292 case SystemCallNrX32::GETCPU: return clues::SystemCallNr::GETCPU;
293 case SystemCallNrX32::KCMP: return clues::SystemCallNr::KCMP;
294 case SystemCallNrX32::FINIT_MODULE: return clues::SystemCallNr::FINIT_MODULE;
295 case SystemCallNrX32::SCHED_SETATTR: return clues::SystemCallNr::SCHED_SETATTR;
296 case SystemCallNrX32::SCHED_GETATTR: return clues::SystemCallNr::SCHED_GETATTR;
297 case SystemCallNrX32::RENAMEAT2: return clues::SystemCallNr::RENAMEAT2;
298 case SystemCallNrX32::SECCOMP: return clues::SystemCallNr::SECCOMP;
299 case SystemCallNrX32::GETRANDOM: return clues::SystemCallNr::GETRANDOM;
300 case SystemCallNrX32::MEMFD_CREATE: return clues::SystemCallNr::MEMFD_CREATE;
301 case SystemCallNrX32::KEXEC_FILE_LOAD: return clues::SystemCallNr::KEXEC_FILE_LOAD;
302 case SystemCallNrX32::BPF: return clues::SystemCallNr::BPF;
303 case SystemCallNrX32::USERFAULTFD: return clues::SystemCallNr::USERFAULTFD;
304 case SystemCallNrX32::MEMBARRIER: return clues::SystemCallNr::MEMBARRIER;
305 case SystemCallNrX32::MLOCK2: return clues::SystemCallNr::MLOCK2;
306 case SystemCallNrX32::COPY_FILE_RANGE: return clues::SystemCallNr::COPY_FILE_RANGE;
307 case SystemCallNrX32::PKEY_MPROTECT: return clues::SystemCallNr::PKEY_MPROTECT;
308 case SystemCallNrX32::PKEY_ALLOC: return clues::SystemCallNr::PKEY_ALLOC;
309 case SystemCallNrX32::PKEY_FREE: return clues::SystemCallNr::PKEY_FREE;
310 case SystemCallNrX32::STATX: return clues::SystemCallNr::STATX;
311 case SystemCallNrX32::IO_PGETEVENTS: return clues::SystemCallNr::IO_PGETEVENTS;
312 case SystemCallNrX32::RSEQ: return clues::SystemCallNr::RSEQ;
313 case SystemCallNrX32::URETPROBE: return clues::SystemCallNr::URETPROBE;
314 case SystemCallNrX32::UPROBE: return clues::SystemCallNr::UPROBE;
315 case SystemCallNrX32::PIDFD_SEND_SIGNAL: return clues::SystemCallNr::PIDFD_SEND_SIGNAL;
316 case SystemCallNrX32::IO_URING_SETUP: return clues::SystemCallNr::IO_URING_SETUP;
317 case SystemCallNrX32::IO_URING_ENTER: return clues::SystemCallNr::IO_URING_ENTER;
318 case SystemCallNrX32::IO_URING_REGISTER: return clues::SystemCallNr::IO_URING_REGISTER;
319 case SystemCallNrX32::OPEN_TREE: return clues::SystemCallNr::OPEN_TREE;
320 case SystemCallNrX32::MOVE_MOUNT: return clues::SystemCallNr::MOVE_MOUNT;
321 case SystemCallNrX32::FSOPEN: return clues::SystemCallNr::FSOPEN;
322 case SystemCallNrX32::FSCONFIG: return clues::SystemCallNr::FSCONFIG;
323 case SystemCallNrX32::FSMOUNT: return clues::SystemCallNr::FSMOUNT;
324 case SystemCallNrX32::FSPICK: return clues::SystemCallNr::FSPICK;
325 case SystemCallNrX32::PIDFD_OPEN: return clues::SystemCallNr::PIDFD_OPEN;
326 case SystemCallNrX32::CLONE3: return clues::SystemCallNr::CLONE3;
327 case SystemCallNrX32::CLOSE_RANGE: return clues::SystemCallNr::CLOSE_RANGE;
328 case SystemCallNrX32::OPENAT2: return clues::SystemCallNr::OPENAT2;
329 case SystemCallNrX32::PIDFD_GETFD: return clues::SystemCallNr::PIDFD_GETFD;
330 case SystemCallNrX32::FACCESSAT2: return clues::SystemCallNr::FACCESSAT2;
331 case SystemCallNrX32::PROCESS_MADVISE: return clues::SystemCallNr::PROCESS_MADVISE;
332 case SystemCallNrX32::EPOLL_PWAIT2: return clues::SystemCallNr::EPOLL_PWAIT2;
333 case SystemCallNrX32::MOUNT_SETATTR: return clues::SystemCallNr::MOUNT_SETATTR;
334 case SystemCallNrX32::QUOTACTL_FD: return clues::SystemCallNr::QUOTACTL_FD;
335 case SystemCallNrX32::LANDLOCK_CREATE_RULESET: return clues::SystemCallNr::LANDLOCK_CREATE_RULESET;
336 case SystemCallNrX32::LANDLOCK_ADD_RULE: return clues::SystemCallNr::LANDLOCK_ADD_RULE;
337 case SystemCallNrX32::LANDLOCK_RESTRICT_SELF: return clues::SystemCallNr::LANDLOCK_RESTRICT_SELF;
338 case SystemCallNrX32::MEMFD_SECRET: return clues::SystemCallNr::MEMFD_SECRET;
339 case SystemCallNrX32::PROCESS_MRELEASE: return clues::SystemCallNr::PROCESS_MRELEASE;
340 case SystemCallNrX32::FUTEX_WAITV: return clues::SystemCallNr::FUTEX_WAITV;
341 case SystemCallNrX32::SET_MEMPOLICY_HOME_NODE: return clues::SystemCallNr::SET_MEMPOLICY_HOME_NODE;
342 case SystemCallNrX32::CACHESTAT: return clues::SystemCallNr::CACHESTAT;
343 case SystemCallNrX32::FCHMODAT2: return clues::SystemCallNr::FCHMODAT2;
344 case SystemCallNrX32::MAP_SHADOW_STACK: return clues::SystemCallNr::MAP_SHADOW_STACK;
345 case SystemCallNrX32::_FUTEX_WAKE: return clues::SystemCallNr::_FUTEX_WAKE;
346 case SystemCallNrX32::_FUTEX_WAIT: return clues::SystemCallNr::_FUTEX_WAIT;
347 case SystemCallNrX32::_FUTEX_REQUEUE: return clues::SystemCallNr::_FUTEX_REQUEUE;
348 case SystemCallNrX32::STATMOUNT: return clues::SystemCallNr::STATMOUNT;
349 case SystemCallNrX32::LISTMOUNT: return clues::SystemCallNr::LISTMOUNT;
350 case SystemCallNrX32::LSM_GET_SELF_ATTR: return clues::SystemCallNr::LSM_GET_SELF_ATTR;
351 case SystemCallNrX32::LSM_SET_SELF_ATTR: return clues::SystemCallNr::LSM_SET_SELF_ATTR;
352 case SystemCallNrX32::LSM_LIST_MODULES: return clues::SystemCallNr::LSM_LIST_MODULES;
353 case SystemCallNrX32::MSEAL: return clues::SystemCallNr::MSEAL;
354 case SystemCallNrX32::SETXATTRAT: return clues::SystemCallNr::SETXATTRAT;
355 case SystemCallNrX32::GETXATTRAT: return clues::SystemCallNr::GETXATTRAT;
356 case SystemCallNrX32::LISTXATTRAT: return clues::SystemCallNr::LISTXATTRAT;
357 case SystemCallNrX32::REMOVEXATTRAT: return clues::SystemCallNr::REMOVEXATTRAT;
358 case SystemCallNrX32::OPEN_TREE_ATTR: return clues::SystemCallNr::OPEN_TREE_ATTR;
359 case SystemCallNrX32::FILE_GETATTR: return clues::SystemCallNr::FILE_GETATTR;
360 case SystemCallNrX32::FILE_SETATTR: return clues::SystemCallNr::FILE_SETATTR;
361 case SystemCallNrX32::RT_SIGACTION: return clues::SystemCallNr::RT_SIGACTION;
362 case SystemCallNrX32::RT_SIGRETURN: return clues::SystemCallNr::RT_SIGRETURN;
363 case SystemCallNrX32::IOCTL: return clues::SystemCallNr::IOCTL;
364 case SystemCallNrX32::READV: return clues::SystemCallNr::READV;
365 case SystemCallNrX32::WRITEV: return clues::SystemCallNr::WRITEV;
366 case SystemCallNrX32::RECVFROM: return clues::SystemCallNr::RECVFROM;
367 case SystemCallNrX32::SENDMSG: return clues::SystemCallNr::SENDMSG;
368 case SystemCallNrX32::RECVMSG: return clues::SystemCallNr::RECVMSG;
369 case SystemCallNrX32::EXECVE: return clues::SystemCallNr::EXECVE;
370 case SystemCallNrX32::PTRACE: return clues::SystemCallNr::PTRACE;
371 case SystemCallNrX32::RT_SIGPENDING: return clues::SystemCallNr::RT_SIGPENDING;
372 case SystemCallNrX32::RT_SIGTIMEDWAIT: return clues::SystemCallNr::RT_SIGTIMEDWAIT;
373 case SystemCallNrX32::RT_SIGQUEUEINFO: return clues::SystemCallNr::RT_SIGQUEUEINFO;
374 case SystemCallNrX32::SIGALTSTACK: return clues::SystemCallNr::SIGALTSTACK;
375 case SystemCallNrX32::TIMER_CREATE: return clues::SystemCallNr::TIMER_CREATE;
376 case SystemCallNrX32::MQ_NOTIFY: return clues::SystemCallNr::MQ_NOTIFY;
377 case SystemCallNrX32::KEXEC_LOAD: return clues::SystemCallNr::KEXEC_LOAD;
378 case SystemCallNrX32::WAITID: return clues::SystemCallNr::WAITID;
379 case SystemCallNrX32::SET_ROBUST_LIST: return clues::SystemCallNr::SET_ROBUST_LIST;
380 case SystemCallNrX32::GET_ROBUST_LIST: return clues::SystemCallNr::GET_ROBUST_LIST;
381 case SystemCallNrX32::VMSPLICE: return clues::SystemCallNr::VMSPLICE;
382 case SystemCallNrX32::MOVE_PAGES: return clues::SystemCallNr::MOVE_PAGES;
383 case SystemCallNrX32::PREADV: return clues::SystemCallNr::PREADV;
384 case SystemCallNrX32::PWRITEV: return clues::SystemCallNr::PWRITEV;
385 case SystemCallNrX32::RT_TGSIGQUEUEINFO: return clues::SystemCallNr::RT_TGSIGQUEUEINFO;
386 case SystemCallNrX32::RECVMMSG: return clues::SystemCallNr::RECVMMSG;
387 case SystemCallNrX32::SENDMMSG: return clues::SystemCallNr::SENDMMSG;
388 case SystemCallNrX32::PROCESS_VM_READV: return clues::SystemCallNr::PROCESS_VM_READV;
389 case SystemCallNrX32::PROCESS_VM_WRITEV: return clues::SystemCallNr::PROCESS_VM_WRITEV;
390 case SystemCallNrX32::SETSOCKOPT: return clues::SystemCallNr::SETSOCKOPT;
391 case SystemCallNrX32::GETSOCKOPT: return clues::SystemCallNr::GETSOCKOPT;
392 case SystemCallNrX32::IO_SETUP: return clues::SystemCallNr::IO_SETUP;
393 case SystemCallNrX32::IO_SUBMIT: return clues::SystemCallNr::IO_SUBMIT;
394 case SystemCallNrX32::EXECVEAT: return clues::SystemCallNr::EXECVEAT;
395 case SystemCallNrX32::PREADV2: return clues::SystemCallNr::PREADV2;
396 case SystemCallNrX32::PWRITEV2: return clues::SystemCallNr::PWRITEV2;
397 }
398}
399
400} // end ns
SystemCallNr
Abstract system call number usable across architectures and ABIs.
Definition generic.hxx:29
clues::SystemCallNr to_generic(const SystemCallNrAARCH64 nr)
Convert the native system call nr. into its generic representation.
Definition aarch64.cxx:21