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