libclues
Linux C++ Tracing Library
Loading...
Searching...
No Matches
i386.cxx
1#include <clues/sysnrs/i386.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 SystemCallNrI386::RESTART_SYSCALL: return clues::SystemCallNr::RESTART_SYSCALL;
26 case SystemCallNrI386::EXIT: return clues::SystemCallNr::EXIT;
27 case SystemCallNrI386::FORK: return clues::SystemCallNr::FORK;
28 case SystemCallNrI386::READ: return clues::SystemCallNr::READ;
29 case SystemCallNrI386::WRITE: return clues::SystemCallNr::WRITE;
30 case SystemCallNrI386::OPEN: return clues::SystemCallNr::OPEN;
31 case SystemCallNrI386::CLOSE: return clues::SystemCallNr::CLOSE;
32 case SystemCallNrI386::WAITPID: return clues::SystemCallNr::WAITPID;
33 case SystemCallNrI386::CREAT: return clues::SystemCallNr::CREAT;
34 case SystemCallNrI386::LINK: return clues::SystemCallNr::LINK;
35 case SystemCallNrI386::UNLINK: return clues::SystemCallNr::UNLINK;
36 case SystemCallNrI386::EXECVE: return clues::SystemCallNr::EXECVE;
37 case SystemCallNrI386::CHDIR: return clues::SystemCallNr::CHDIR;
38 case SystemCallNrI386::TIME: return clues::SystemCallNr::TIME;
39 case SystemCallNrI386::MKNOD: return clues::SystemCallNr::MKNOD;
40 case SystemCallNrI386::CHMOD: return clues::SystemCallNr::CHMOD;
41 case SystemCallNrI386::LCHOWN: return clues::SystemCallNr::LCHOWN;
42 case SystemCallNrI386::BREAK: return clues::SystemCallNr::BREAK;
43 case SystemCallNrI386::OLDSTAT: return clues::SystemCallNr::OLDSTAT;
44 case SystemCallNrI386::LSEEK: return clues::SystemCallNr::LSEEK;
45 case SystemCallNrI386::GETPID: return clues::SystemCallNr::GETPID;
46 case SystemCallNrI386::MOUNT: return clues::SystemCallNr::MOUNT;
47 case SystemCallNrI386::UMOUNT: return clues::SystemCallNr::UMOUNT;
48 case SystemCallNrI386::SETUID: return clues::SystemCallNr::SETUID;
49 case SystemCallNrI386::GETUID: return clues::SystemCallNr::GETUID;
50 case SystemCallNrI386::STIME: return clues::SystemCallNr::STIME;
51 case SystemCallNrI386::PTRACE: return clues::SystemCallNr::PTRACE;
52 case SystemCallNrI386::ALARM: return clues::SystemCallNr::ALARM;
53 case SystemCallNrI386::OLDFSTAT: return clues::SystemCallNr::OLDFSTAT;
54 case SystemCallNrI386::PAUSE: return clues::SystemCallNr::PAUSE;
55 case SystemCallNrI386::UTIME: return clues::SystemCallNr::UTIME;
56 case SystemCallNrI386::STTY: return clues::SystemCallNr::STTY;
57 case SystemCallNrI386::GTTY: return clues::SystemCallNr::GTTY;
58 case SystemCallNrI386::ACCESS: return clues::SystemCallNr::ACCESS;
59 case SystemCallNrI386::NICE: return clues::SystemCallNr::NICE;
60 case SystemCallNrI386::FTIME: return clues::SystemCallNr::FTIME;
61 case SystemCallNrI386::SYNC: return clues::SystemCallNr::SYNC;
62 case SystemCallNrI386::KILL: return clues::SystemCallNr::KILL;
63 case SystemCallNrI386::RENAME: return clues::SystemCallNr::RENAME;
64 case SystemCallNrI386::MKDIR: return clues::SystemCallNr::MKDIR;
65 case SystemCallNrI386::RMDIR: return clues::SystemCallNr::RMDIR;
66 case SystemCallNrI386::DUP: return clues::SystemCallNr::DUP;
67 case SystemCallNrI386::PIPE: return clues::SystemCallNr::PIPE;
68 case SystemCallNrI386::TIMES: return clues::SystemCallNr::TIMES;
69 case SystemCallNrI386::PROF: return clues::SystemCallNr::PROF;
70 case SystemCallNrI386::BRK: return clues::SystemCallNr::BRK;
71 case SystemCallNrI386::SETGID: return clues::SystemCallNr::SETGID;
72 case SystemCallNrI386::GETGID: return clues::SystemCallNr::GETGID;
73 case SystemCallNrI386::SIGNAL: return clues::SystemCallNr::SIGNAL;
74 case SystemCallNrI386::GETEUID: return clues::SystemCallNr::GETEUID;
75 case SystemCallNrI386::GETEGID: return clues::SystemCallNr::GETEGID;
76 case SystemCallNrI386::ACCT: return clues::SystemCallNr::ACCT;
77 case SystemCallNrI386::UMOUNT2: return clues::SystemCallNr::UMOUNT2;
78 case SystemCallNrI386::LOCK: return clues::SystemCallNr::LOCK;
79 case SystemCallNrI386::IOCTL: return clues::SystemCallNr::IOCTL;
80 case SystemCallNrI386::FCNTL: return clues::SystemCallNr::FCNTL;
81 case SystemCallNrI386::MPX: return clues::SystemCallNr::MPX;
82 case SystemCallNrI386::SETPGID: return clues::SystemCallNr::SETPGID;
83 case SystemCallNrI386::ULIMIT: return clues::SystemCallNr::ULIMIT;
84 case SystemCallNrI386::OLDOLDUNAME: return clues::SystemCallNr::OLDOLDUNAME;
85 case SystemCallNrI386::UMASK: return clues::SystemCallNr::UMASK;
86 case SystemCallNrI386::CHROOT: return clues::SystemCallNr::CHROOT;
87 case SystemCallNrI386::USTAT: return clues::SystemCallNr::USTAT;
88 case SystemCallNrI386::DUP2: return clues::SystemCallNr::DUP2;
89 case SystemCallNrI386::GETPPID: return clues::SystemCallNr::GETPPID;
90 case SystemCallNrI386::GETPGRP: return clues::SystemCallNr::GETPGRP;
91 case SystemCallNrI386::SETSID: return clues::SystemCallNr::SETSID;
92 case SystemCallNrI386::SIGACTION: return clues::SystemCallNr::SIGACTION;
93 case SystemCallNrI386::SGETMASK: return clues::SystemCallNr::SGETMASK;
94 case SystemCallNrI386::SSETMASK: return clues::SystemCallNr::SSETMASK;
95 case SystemCallNrI386::SETREUID: return clues::SystemCallNr::SETREUID;
96 case SystemCallNrI386::SETREGID: return clues::SystemCallNr::SETREGID;
97 case SystemCallNrI386::SIGSUSPEND: return clues::SystemCallNr::SIGSUSPEND;
98 case SystemCallNrI386::SIGPENDING: return clues::SystemCallNr::SIGPENDING;
99 case SystemCallNrI386::SETHOSTNAME: return clues::SystemCallNr::SETHOSTNAME;
100 case SystemCallNrI386::SETRLIMIT: return clues::SystemCallNr::SETRLIMIT;
101 case SystemCallNrI386::GETRLIMIT: return clues::SystemCallNr::GETRLIMIT;
102 case SystemCallNrI386::GETRUSAGE: return clues::SystemCallNr::GETRUSAGE;
103 case SystemCallNrI386::GETTIMEOFDAY: return clues::SystemCallNr::GETTIMEOFDAY;
104 case SystemCallNrI386::SETTIMEOFDAY: return clues::SystemCallNr::SETTIMEOFDAY;
105 case SystemCallNrI386::GETGROUPS: return clues::SystemCallNr::GETGROUPS;
106 case SystemCallNrI386::SETGROUPS: return clues::SystemCallNr::SETGROUPS;
107 case SystemCallNrI386::SELECT: return clues::SystemCallNr::SELECT;
108 case SystemCallNrI386::SYMLINK: return clues::SystemCallNr::SYMLINK;
109 case SystemCallNrI386::OLDLSTAT: return clues::SystemCallNr::OLDLSTAT;
110 case SystemCallNrI386::READLINK: return clues::SystemCallNr::READLINK;
111 case SystemCallNrI386::USELIB: return clues::SystemCallNr::USELIB;
112 case SystemCallNrI386::SWAPON: return clues::SystemCallNr::SWAPON;
113 case SystemCallNrI386::REBOOT: return clues::SystemCallNr::REBOOT;
114 case SystemCallNrI386::READDIR: return clues::SystemCallNr::READDIR;
115 case SystemCallNrI386::MMAP: return clues::SystemCallNr::MMAP;
116 case SystemCallNrI386::MUNMAP: return clues::SystemCallNr::MUNMAP;
117 case SystemCallNrI386::TRUNCATE: return clues::SystemCallNr::TRUNCATE;
118 case SystemCallNrI386::FTRUNCATE: return clues::SystemCallNr::FTRUNCATE;
119 case SystemCallNrI386::FCHMOD: return clues::SystemCallNr::FCHMOD;
120 case SystemCallNrI386::FCHOWN: return clues::SystemCallNr::FCHOWN;
121 case SystemCallNrI386::GETPRIORITY: return clues::SystemCallNr::GETPRIORITY;
122 case SystemCallNrI386::SETPRIORITY: return clues::SystemCallNr::SETPRIORITY;
123 case SystemCallNrI386::PROFIL: return clues::SystemCallNr::PROFIL;
124 case SystemCallNrI386::STATFS: return clues::SystemCallNr::STATFS;
125 case SystemCallNrI386::FSTATFS: return clues::SystemCallNr::FSTATFS;
126 case SystemCallNrI386::IOPERM: return clues::SystemCallNr::IOPERM;
127 case SystemCallNrI386::SOCKETCALL: return clues::SystemCallNr::SOCKETCALL;
128 case SystemCallNrI386::SYSLOG: return clues::SystemCallNr::SYSLOG;
129 case SystemCallNrI386::SETITIMER: return clues::SystemCallNr::SETITIMER;
130 case SystemCallNrI386::GETITIMER: return clues::SystemCallNr::GETITIMER;
131 case SystemCallNrI386::STAT: return clues::SystemCallNr::STAT;
132 case SystemCallNrI386::LSTAT: return clues::SystemCallNr::LSTAT;
133 case SystemCallNrI386::FSTAT: return clues::SystemCallNr::FSTAT;
134 case SystemCallNrI386::OLDUNAME: return clues::SystemCallNr::OLDUNAME;
135 case SystemCallNrI386::IOPL: return clues::SystemCallNr::IOPL;
136 case SystemCallNrI386::VHANGUP: return clues::SystemCallNr::VHANGUP;
137 case SystemCallNrI386::IDLE: return clues::SystemCallNr::IDLE;
138 case SystemCallNrI386::VM86OLD: return clues::SystemCallNr::VM86OLD;
139 case SystemCallNrI386::WAIT4: return clues::SystemCallNr::WAIT4;
140 case SystemCallNrI386::SWAPOFF: return clues::SystemCallNr::SWAPOFF;
141 case SystemCallNrI386::SYSINFO: return clues::SystemCallNr::SYSINFO;
142 case SystemCallNrI386::IPC: return clues::SystemCallNr::IPC;
143 case SystemCallNrI386::FSYNC: return clues::SystemCallNr::FSYNC;
144 case SystemCallNrI386::SIGRETURN: return clues::SystemCallNr::SIGRETURN;
145 case SystemCallNrI386::CLONE: return clues::SystemCallNr::CLONE;
146 case SystemCallNrI386::SETDOMAINNAME: return clues::SystemCallNr::SETDOMAINNAME;
147 case SystemCallNrI386::UNAME: return clues::SystemCallNr::UNAME;
148 case SystemCallNrI386::MODIFY_LDT: return clues::SystemCallNr::MODIFY_LDT;
149 case SystemCallNrI386::ADJTIMEX: return clues::SystemCallNr::ADJTIMEX;
150 case SystemCallNrI386::MPROTECT: return clues::SystemCallNr::MPROTECT;
151 case SystemCallNrI386::SIGPROCMASK: return clues::SystemCallNr::SIGPROCMASK;
152 case SystemCallNrI386::CREATE_MODULE: return clues::SystemCallNr::CREATE_MODULE;
153 case SystemCallNrI386::INIT_MODULE: return clues::SystemCallNr::INIT_MODULE;
154 case SystemCallNrI386::DELETE_MODULE: return clues::SystemCallNr::DELETE_MODULE;
155 case SystemCallNrI386::GET_KERNEL_SYMS: return clues::SystemCallNr::GET_KERNEL_SYMS;
156 case SystemCallNrI386::QUOTACTL: return clues::SystemCallNr::QUOTACTL;
157 case SystemCallNrI386::GETPGID: return clues::SystemCallNr::GETPGID;
158 case SystemCallNrI386::FCHDIR: return clues::SystemCallNr::FCHDIR;
159 case SystemCallNrI386::BDFLUSH: return clues::SystemCallNr::BDFLUSH;
160 case SystemCallNrI386::SYSFS: return clues::SystemCallNr::SYSFS;
161 case SystemCallNrI386::PERSONALITY: return clues::SystemCallNr::PERSONALITY;
162 case SystemCallNrI386::AFS_SYSCALL: return clues::SystemCallNr::AFS_SYSCALL;
163 case SystemCallNrI386::SETFSUID: return clues::SystemCallNr::SETFSUID;
164 case SystemCallNrI386::SETFSGID: return clues::SystemCallNr::SETFSGID;
165 case SystemCallNrI386::LLSEEK: return clues::SystemCallNr::LLSEEK;
166 case SystemCallNrI386::GETDENTS: return clues::SystemCallNr::GETDENTS;
167 case SystemCallNrI386::NEWSELECT: return clues::SystemCallNr::NEWSELECT;
168 case SystemCallNrI386::FLOCK: return clues::SystemCallNr::FLOCK;
169 case SystemCallNrI386::MSYNC: return clues::SystemCallNr::MSYNC;
170 case SystemCallNrI386::READV: return clues::SystemCallNr::READV;
171 case SystemCallNrI386::WRITEV: return clues::SystemCallNr::WRITEV;
172 case SystemCallNrI386::GETSID: return clues::SystemCallNr::GETSID;
173 case SystemCallNrI386::FDATASYNC: return clues::SystemCallNr::FDATASYNC;
174 case SystemCallNrI386::SYSCTL: return clues::SystemCallNr::SYSCTL;
175 case SystemCallNrI386::MLOCK: return clues::SystemCallNr::MLOCK;
176 case SystemCallNrI386::MUNLOCK: return clues::SystemCallNr::MUNLOCK;
177 case SystemCallNrI386::MLOCKALL: return clues::SystemCallNr::MLOCKALL;
178 case SystemCallNrI386::MUNLOCKALL: return clues::SystemCallNr::MUNLOCKALL;
179 case SystemCallNrI386::SCHED_SETPARAM: return clues::SystemCallNr::SCHED_SETPARAM;
180 case SystemCallNrI386::SCHED_GETPARAM: return clues::SystemCallNr::SCHED_GETPARAM;
181 case SystemCallNrI386::SCHED_SETSCHEDULER: return clues::SystemCallNr::SCHED_SETSCHEDULER;
182 case SystemCallNrI386::SCHED_GETSCHEDULER: return clues::SystemCallNr::SCHED_GETSCHEDULER;
183 case SystemCallNrI386::SCHED_YIELD: return clues::SystemCallNr::SCHED_YIELD;
184 case SystemCallNrI386::SCHED_GET_PRIORITY_MAX: return clues::SystemCallNr::SCHED_GET_PRIORITY_MAX;
185 case SystemCallNrI386::SCHED_GET_PRIORITY_MIN: return clues::SystemCallNr::SCHED_GET_PRIORITY_MIN;
186 case SystemCallNrI386::SCHED_RR_GET_INTERVAL: return clues::SystemCallNr::SCHED_RR_GET_INTERVAL;
187 case SystemCallNrI386::NANOSLEEP: return clues::SystemCallNr::NANOSLEEP;
188 case SystemCallNrI386::MREMAP: return clues::SystemCallNr::MREMAP;
189 case SystemCallNrI386::SETRESUID: return clues::SystemCallNr::SETRESUID;
190 case SystemCallNrI386::GETRESUID: return clues::SystemCallNr::GETRESUID;
191 case SystemCallNrI386::VM86: return clues::SystemCallNr::VM86;
192 case SystemCallNrI386::QUERY_MODULE: return clues::SystemCallNr::QUERY_MODULE;
193 case SystemCallNrI386::POLL: return clues::SystemCallNr::POLL;
194 case SystemCallNrI386::NFSSERVCTL: return clues::SystemCallNr::NFSSERVCTL;
195 case SystemCallNrI386::SETRESGID: return clues::SystemCallNr::SETRESGID;
196 case SystemCallNrI386::GETRESGID: return clues::SystemCallNr::GETRESGID;
197 case SystemCallNrI386::PRCTL: return clues::SystemCallNr::PRCTL;
198 case SystemCallNrI386::RT_SIGRETURN: return clues::SystemCallNr::RT_SIGRETURN;
199 case SystemCallNrI386::RT_SIGACTION: return clues::SystemCallNr::RT_SIGACTION;
200 case SystemCallNrI386::RT_SIGPROCMASK: return clues::SystemCallNr::RT_SIGPROCMASK;
201 case SystemCallNrI386::RT_SIGPENDING: return clues::SystemCallNr::RT_SIGPENDING;
202 case SystemCallNrI386::RT_SIGTIMEDWAIT: return clues::SystemCallNr::RT_SIGTIMEDWAIT;
203 case SystemCallNrI386::RT_SIGQUEUEINFO: return clues::SystemCallNr::RT_SIGQUEUEINFO;
204 case SystemCallNrI386::RT_SIGSUSPEND: return clues::SystemCallNr::RT_SIGSUSPEND;
205 case SystemCallNrI386::PREAD64: return clues::SystemCallNr::PREAD64;
206 case SystemCallNrI386::PWRITE64: return clues::SystemCallNr::PWRITE64;
207 case SystemCallNrI386::CHOWN: return clues::SystemCallNr::CHOWN;
208 case SystemCallNrI386::GETCWD: return clues::SystemCallNr::GETCWD;
209 case SystemCallNrI386::CAPGET: return clues::SystemCallNr::CAPGET;
210 case SystemCallNrI386::CAPSET: return clues::SystemCallNr::CAPSET;
211 case SystemCallNrI386::SIGALTSTACK: return clues::SystemCallNr::SIGALTSTACK;
212 case SystemCallNrI386::SENDFILE: return clues::SystemCallNr::SENDFILE;
213 case SystemCallNrI386::GETPMSG: return clues::SystemCallNr::GETPMSG;
214 case SystemCallNrI386::PUTPMSG: return clues::SystemCallNr::PUTPMSG;
215 case SystemCallNrI386::VFORK: return clues::SystemCallNr::VFORK;
216 case SystemCallNrI386::UGETRLIMIT: return clues::SystemCallNr::UGETRLIMIT;
217 case SystemCallNrI386::MMAP2: return clues::SystemCallNr::MMAP2;
218 case SystemCallNrI386::TRUNCATE64: return clues::SystemCallNr::TRUNCATE64;
219 case SystemCallNrI386::FTRUNCATE64: return clues::SystemCallNr::FTRUNCATE64;
220 case SystemCallNrI386::STAT64: return clues::SystemCallNr::STAT64;
221 case SystemCallNrI386::LSTAT64: return clues::SystemCallNr::LSTAT64;
222 case SystemCallNrI386::FSTAT64: return clues::SystemCallNr::FSTAT64;
223 case SystemCallNrI386::LCHOWN32: return clues::SystemCallNr::LCHOWN32;
224 case SystemCallNrI386::GETUID32: return clues::SystemCallNr::GETUID32;
225 case SystemCallNrI386::GETGID32: return clues::SystemCallNr::GETGID32;
226 case SystemCallNrI386::GETEUID32: return clues::SystemCallNr::GETEUID32;
227 case SystemCallNrI386::GETEGID32: return clues::SystemCallNr::GETEGID32;
228 case SystemCallNrI386::SETREUID32: return clues::SystemCallNr::SETREUID32;
229 case SystemCallNrI386::SETREGID32: return clues::SystemCallNr::SETREGID32;
230 case SystemCallNrI386::GETGROUPS32: return clues::SystemCallNr::GETGROUPS32;
231 case SystemCallNrI386::SETGROUPS32: return clues::SystemCallNr::SETGROUPS32;
232 case SystemCallNrI386::FCHOWN32: return clues::SystemCallNr::FCHOWN32;
233 case SystemCallNrI386::SETRESUID32: return clues::SystemCallNr::SETRESUID32;
234 case SystemCallNrI386::GETRESUID32: return clues::SystemCallNr::GETRESUID32;
235 case SystemCallNrI386::SETRESGID32: return clues::SystemCallNr::SETRESGID32;
236 case SystemCallNrI386::GETRESGID32: return clues::SystemCallNr::GETRESGID32;
237 case SystemCallNrI386::CHOWN32: return clues::SystemCallNr::CHOWN32;
238 case SystemCallNrI386::SETUID32: return clues::SystemCallNr::SETUID32;
239 case SystemCallNrI386::SETGID32: return clues::SystemCallNr::SETGID32;
240 case SystemCallNrI386::SETFSUID32: return clues::SystemCallNr::SETFSUID32;
241 case SystemCallNrI386::SETFSGID32: return clues::SystemCallNr::SETFSGID32;
242 case SystemCallNrI386::PIVOT_ROOT: return clues::SystemCallNr::PIVOT_ROOT;
243 case SystemCallNrI386::MINCORE: return clues::SystemCallNr::MINCORE;
244 case SystemCallNrI386::MADVISE: return clues::SystemCallNr::MADVISE;
245 case SystemCallNrI386::GETDENTS64: return clues::SystemCallNr::GETDENTS64;
246 case SystemCallNrI386::FCNTL64: return clues::SystemCallNr::FCNTL64;
247 case SystemCallNrI386::GETTID: return clues::SystemCallNr::GETTID;
248 case SystemCallNrI386::READAHEAD: return clues::SystemCallNr::READAHEAD;
249 case SystemCallNrI386::SETXATTR: return clues::SystemCallNr::SETXATTR;
250 case SystemCallNrI386::LSETXATTR: return clues::SystemCallNr::LSETXATTR;
251 case SystemCallNrI386::FSETXATTR: return clues::SystemCallNr::FSETXATTR;
252 case SystemCallNrI386::GETXATTR: return clues::SystemCallNr::GETXATTR;
253 case SystemCallNrI386::LGETXATTR: return clues::SystemCallNr::LGETXATTR;
254 case SystemCallNrI386::FGETXATTR: return clues::SystemCallNr::FGETXATTR;
255 case SystemCallNrI386::LISTXATTR: return clues::SystemCallNr::LISTXATTR;
256 case SystemCallNrI386::LLISTXATTR: return clues::SystemCallNr::LLISTXATTR;
257 case SystemCallNrI386::FLISTXATTR: return clues::SystemCallNr::FLISTXATTR;
258 case SystemCallNrI386::REMOVEXATTR: return clues::SystemCallNr::REMOVEXATTR;
259 case SystemCallNrI386::LREMOVEXATTR: return clues::SystemCallNr::LREMOVEXATTR;
260 case SystemCallNrI386::FREMOVEXATTR: return clues::SystemCallNr::FREMOVEXATTR;
261 case SystemCallNrI386::TKILL: return clues::SystemCallNr::TKILL;
262 case SystemCallNrI386::SENDFILE64: return clues::SystemCallNr::SENDFILE64;
263 case SystemCallNrI386::FUTEX: return clues::SystemCallNr::FUTEX;
264 case SystemCallNrI386::SCHED_SETAFFINITY: return clues::SystemCallNr::SCHED_SETAFFINITY;
265 case SystemCallNrI386::SCHED_GETAFFINITY: return clues::SystemCallNr::SCHED_GETAFFINITY;
266 case SystemCallNrI386::SET_THREAD_AREA: return clues::SystemCallNr::SET_THREAD_AREA;
267 case SystemCallNrI386::GET_THREAD_AREA: return clues::SystemCallNr::GET_THREAD_AREA;
268 case SystemCallNrI386::IO_SETUP: return clues::SystemCallNr::IO_SETUP;
269 case SystemCallNrI386::IO_DESTROY: return clues::SystemCallNr::IO_DESTROY;
270 case SystemCallNrI386::IO_GETEVENTS: return clues::SystemCallNr::IO_GETEVENTS;
271 case SystemCallNrI386::IO_SUBMIT: return clues::SystemCallNr::IO_SUBMIT;
272 case SystemCallNrI386::IO_CANCEL: return clues::SystemCallNr::IO_CANCEL;
273 case SystemCallNrI386::FADVISE64: return clues::SystemCallNr::FADVISE64;
274 case SystemCallNrI386::EXIT_GROUP: return clues::SystemCallNr::EXIT_GROUP;
275 case SystemCallNrI386::LOOKUP_DCOOKIE: return clues::SystemCallNr::LOOKUP_DCOOKIE;
276 case SystemCallNrI386::EPOLL_CREATE: return clues::SystemCallNr::EPOLL_CREATE;
277 case SystemCallNrI386::EPOLL_CTL: return clues::SystemCallNr::EPOLL_CTL;
278 case SystemCallNrI386::EPOLL_WAIT: return clues::SystemCallNr::EPOLL_WAIT;
279 case SystemCallNrI386::REMAP_FILE_PAGES: return clues::SystemCallNr::REMAP_FILE_PAGES;
280 case SystemCallNrI386::SET_TID_ADDRESS: return clues::SystemCallNr::SET_TID_ADDRESS;
281 case SystemCallNrI386::TIMER_CREATE: return clues::SystemCallNr::TIMER_CREATE;
282 case SystemCallNrI386::TIMER_SETTIME: return clues::SystemCallNr::TIMER_SETTIME;
283 case SystemCallNrI386::TIMER_GETTIME: return clues::SystemCallNr::TIMER_GETTIME;
284 case SystemCallNrI386::TIMER_GETOVERRUN: return clues::SystemCallNr::TIMER_GETOVERRUN;
285 case SystemCallNrI386::TIMER_DELETE: return clues::SystemCallNr::TIMER_DELETE;
286 case SystemCallNrI386::CLOCK_SETTIME: return clues::SystemCallNr::CLOCK_SETTIME;
287 case SystemCallNrI386::CLOCK_GETTIME: return clues::SystemCallNr::CLOCK_GETTIME;
288 case SystemCallNrI386::CLOCK_GETRES: return clues::SystemCallNr::CLOCK_GETRES;
289 case SystemCallNrI386::CLOCK_NANOSLEEP: return clues::SystemCallNr::CLOCK_NANOSLEEP;
290 case SystemCallNrI386::STATFS64: return clues::SystemCallNr::STATFS64;
291 case SystemCallNrI386::FSTATFS64: return clues::SystemCallNr::FSTATFS64;
292 case SystemCallNrI386::TGKILL: return clues::SystemCallNr::TGKILL;
293 case SystemCallNrI386::UTIMES: return clues::SystemCallNr::UTIMES;
294 case SystemCallNrI386::FADVISE64_64: return clues::SystemCallNr::FADVISE64_64;
295 case SystemCallNrI386::VSERVER: return clues::SystemCallNr::VSERVER;
296 case SystemCallNrI386::MBIND: return clues::SystemCallNr::MBIND;
297 case SystemCallNrI386::GET_MEMPOLICY: return clues::SystemCallNr::GET_MEMPOLICY;
298 case SystemCallNrI386::SET_MEMPOLICY: return clues::SystemCallNr::SET_MEMPOLICY;
299 case SystemCallNrI386::MQ_OPEN: return clues::SystemCallNr::MQ_OPEN;
300 case SystemCallNrI386::MQ_UNLINK: return clues::SystemCallNr::MQ_UNLINK;
301 case SystemCallNrI386::MQ_TIMEDSEND: return clues::SystemCallNr::MQ_TIMEDSEND;
302 case SystemCallNrI386::MQ_TIMEDRECEIVE: return clues::SystemCallNr::MQ_TIMEDRECEIVE;
303 case SystemCallNrI386::MQ_NOTIFY: return clues::SystemCallNr::MQ_NOTIFY;
304 case SystemCallNrI386::MQ_GETSETATTR: return clues::SystemCallNr::MQ_GETSETATTR;
305 case SystemCallNrI386::KEXEC_LOAD: return clues::SystemCallNr::KEXEC_LOAD;
306 case SystemCallNrI386::WAITID: return clues::SystemCallNr::WAITID;
307 case SystemCallNrI386::ADD_KEY: return clues::SystemCallNr::ADD_KEY;
308 case SystemCallNrI386::REQUEST_KEY: return clues::SystemCallNr::REQUEST_KEY;
309 case SystemCallNrI386::KEYCTL: return clues::SystemCallNr::KEYCTL;
310 case SystemCallNrI386::IOPRIO_SET: return clues::SystemCallNr::IOPRIO_SET;
311 case SystemCallNrI386::IOPRIO_GET: return clues::SystemCallNr::IOPRIO_GET;
312 case SystemCallNrI386::INOTIFY_INIT: return clues::SystemCallNr::INOTIFY_INIT;
313 case SystemCallNrI386::INOTIFY_ADD_WATCH: return clues::SystemCallNr::INOTIFY_ADD_WATCH;
314 case SystemCallNrI386::INOTIFY_RM_WATCH: return clues::SystemCallNr::INOTIFY_RM_WATCH;
315 case SystemCallNrI386::MIGRATE_PAGES: return clues::SystemCallNr::MIGRATE_PAGES;
316 case SystemCallNrI386::OPENAT: return clues::SystemCallNr::OPENAT;
317 case SystemCallNrI386::MKDIRAT: return clues::SystemCallNr::MKDIRAT;
318 case SystemCallNrI386::MKNODAT: return clues::SystemCallNr::MKNODAT;
319 case SystemCallNrI386::FCHOWNAT: return clues::SystemCallNr::FCHOWNAT;
320 case SystemCallNrI386::FUTIMESAT: return clues::SystemCallNr::FUTIMESAT;
321 case SystemCallNrI386::FSTATAT64: return clues::SystemCallNr::FSTATAT64;
322 case SystemCallNrI386::UNLINKAT: return clues::SystemCallNr::UNLINKAT;
323 case SystemCallNrI386::RENAMEAT: return clues::SystemCallNr::RENAMEAT;
324 case SystemCallNrI386::LINKAT: return clues::SystemCallNr::LINKAT;
325 case SystemCallNrI386::SYMLINKAT: return clues::SystemCallNr::SYMLINKAT;
326 case SystemCallNrI386::READLINKAT: return clues::SystemCallNr::READLINKAT;
327 case SystemCallNrI386::FCHMODAT: return clues::SystemCallNr::FCHMODAT;
328 case SystemCallNrI386::FACCESSAT: return clues::SystemCallNr::FACCESSAT;
329 case SystemCallNrI386::PSELECT6: return clues::SystemCallNr::PSELECT6;
330 case SystemCallNrI386::PPOLL: return clues::SystemCallNr::PPOLL;
331 case SystemCallNrI386::UNSHARE: return clues::SystemCallNr::UNSHARE;
332 case SystemCallNrI386::SET_ROBUST_LIST: return clues::SystemCallNr::SET_ROBUST_LIST;
333 case SystemCallNrI386::GET_ROBUST_LIST: return clues::SystemCallNr::GET_ROBUST_LIST;
334 case SystemCallNrI386::SPLICE: return clues::SystemCallNr::SPLICE;
335 case SystemCallNrI386::SYNC_FILE_RANGE: return clues::SystemCallNr::SYNC_FILE_RANGE;
336 case SystemCallNrI386::TEE: return clues::SystemCallNr::TEE;
337 case SystemCallNrI386::VMSPLICE: return clues::SystemCallNr::VMSPLICE;
338 case SystemCallNrI386::MOVE_PAGES: return clues::SystemCallNr::MOVE_PAGES;
339 case SystemCallNrI386::GETCPU: return clues::SystemCallNr::GETCPU;
340 case SystemCallNrI386::EPOLL_PWAIT: return clues::SystemCallNr::EPOLL_PWAIT;
341 case SystemCallNrI386::UTIMENSAT: return clues::SystemCallNr::UTIMENSAT;
342 case SystemCallNrI386::SIGNALFD: return clues::SystemCallNr::SIGNALFD;
343 case SystemCallNrI386::TIMERFD_CREATE: return clues::SystemCallNr::TIMERFD_CREATE;
344 case SystemCallNrI386::EVENTFD: return clues::SystemCallNr::EVENTFD;
345 case SystemCallNrI386::FALLOCATE: return clues::SystemCallNr::FALLOCATE;
346 case SystemCallNrI386::TIMERFD_SETTIME: return clues::SystemCallNr::TIMERFD_SETTIME;
347 case SystemCallNrI386::TIMERFD_GETTIME: return clues::SystemCallNr::TIMERFD_GETTIME;
348 case SystemCallNrI386::SIGNALFD4: return clues::SystemCallNr::SIGNALFD4;
349 case SystemCallNrI386::EVENTFD2: return clues::SystemCallNr::EVENTFD2;
350 case SystemCallNrI386::EPOLL_CREATE1: return clues::SystemCallNr::EPOLL_CREATE1;
351 case SystemCallNrI386::DUP3: return clues::SystemCallNr::DUP3;
352 case SystemCallNrI386::PIPE2: return clues::SystemCallNr::PIPE2;
353 case SystemCallNrI386::INOTIFY_INIT1: return clues::SystemCallNr::INOTIFY_INIT1;
354 case SystemCallNrI386::PREADV: return clues::SystemCallNr::PREADV;
355 case SystemCallNrI386::PWRITEV: return clues::SystemCallNr::PWRITEV;
356 case SystemCallNrI386::RT_TGSIGQUEUEINFO: return clues::SystemCallNr::RT_TGSIGQUEUEINFO;
357 case SystemCallNrI386::PERF_EVENT_OPEN: return clues::SystemCallNr::PERF_EVENT_OPEN;
358 case SystemCallNrI386::RECVMMSG: return clues::SystemCallNr::RECVMMSG;
359 case SystemCallNrI386::FANOTIFY_INIT: return clues::SystemCallNr::FANOTIFY_INIT;
360 case SystemCallNrI386::FANOTIFY_MARK: return clues::SystemCallNr::FANOTIFY_MARK;
361 case SystemCallNrI386::PRLIMIT64: return clues::SystemCallNr::PRLIMIT64;
362 case SystemCallNrI386::NAME_TO_HANDLE_AT: return clues::SystemCallNr::NAME_TO_HANDLE_AT;
363 case SystemCallNrI386::OPEN_BY_HANDLE_AT: return clues::SystemCallNr::OPEN_BY_HANDLE_AT;
364 case SystemCallNrI386::CLOCK_ADJTIME: return clues::SystemCallNr::CLOCK_ADJTIME;
365 case SystemCallNrI386::SYNCFS: return clues::SystemCallNr::SYNCFS;
366 case SystemCallNrI386::SENDMMSG: return clues::SystemCallNr::SENDMMSG;
367 case SystemCallNrI386::SETNS: return clues::SystemCallNr::SETNS;
368 case SystemCallNrI386::PROCESS_VM_READV: return clues::SystemCallNr::PROCESS_VM_READV;
369 case SystemCallNrI386::PROCESS_VM_WRITEV: return clues::SystemCallNr::PROCESS_VM_WRITEV;
370 case SystemCallNrI386::KCMP: return clues::SystemCallNr::KCMP;
371 case SystemCallNrI386::FINIT_MODULE: return clues::SystemCallNr::FINIT_MODULE;
372 case SystemCallNrI386::SCHED_SETATTR: return clues::SystemCallNr::SCHED_SETATTR;
373 case SystemCallNrI386::SCHED_GETATTR: return clues::SystemCallNr::SCHED_GETATTR;
374 case SystemCallNrI386::RENAMEAT2: return clues::SystemCallNr::RENAMEAT2;
375 case SystemCallNrI386::SECCOMP: return clues::SystemCallNr::SECCOMP;
376 case SystemCallNrI386::GETRANDOM: return clues::SystemCallNr::GETRANDOM;
377 case SystemCallNrI386::MEMFD_CREATE: return clues::SystemCallNr::MEMFD_CREATE;
378 case SystemCallNrI386::BPF: return clues::SystemCallNr::BPF;
379 case SystemCallNrI386::EXECVEAT: return clues::SystemCallNr::EXECVEAT;
380 case SystemCallNrI386::SOCKET: return clues::SystemCallNr::SOCKET;
381 case SystemCallNrI386::SOCKETPAIR: return clues::SystemCallNr::SOCKETPAIR;
382 case SystemCallNrI386::BIND: return clues::SystemCallNr::BIND;
383 case SystemCallNrI386::CONNECT: return clues::SystemCallNr::CONNECT;
384 case SystemCallNrI386::LISTEN: return clues::SystemCallNr::LISTEN;
385 case SystemCallNrI386::ACCEPT4: return clues::SystemCallNr::ACCEPT4;
386 case SystemCallNrI386::GETSOCKOPT: return clues::SystemCallNr::GETSOCKOPT;
387 case SystemCallNrI386::SETSOCKOPT: return clues::SystemCallNr::SETSOCKOPT;
388 case SystemCallNrI386::GETSOCKNAME: return clues::SystemCallNr::GETSOCKNAME;
389 case SystemCallNrI386::GETPEERNAME: return clues::SystemCallNr::GETPEERNAME;
390 case SystemCallNrI386::SENDTO: return clues::SystemCallNr::SENDTO;
391 case SystemCallNrI386::SENDMSG: return clues::SystemCallNr::SENDMSG;
392 case SystemCallNrI386::RECVFROM: return clues::SystemCallNr::RECVFROM;
393 case SystemCallNrI386::RECVMSG: return clues::SystemCallNr::RECVMSG;
394 case SystemCallNrI386::SHUTDOWN: return clues::SystemCallNr::SHUTDOWN;
395 case SystemCallNrI386::USERFAULTFD: return clues::SystemCallNr::USERFAULTFD;
396 case SystemCallNrI386::MEMBARRIER: return clues::SystemCallNr::MEMBARRIER;
397 case SystemCallNrI386::MLOCK2: return clues::SystemCallNr::MLOCK2;
398 case SystemCallNrI386::COPY_FILE_RANGE: return clues::SystemCallNr::COPY_FILE_RANGE;
399 case SystemCallNrI386::PREADV2: return clues::SystemCallNr::PREADV2;
400 case SystemCallNrI386::PWRITEV2: return clues::SystemCallNr::PWRITEV2;
401 case SystemCallNrI386::PKEY_MPROTECT: return clues::SystemCallNr::PKEY_MPROTECT;
402 case SystemCallNrI386::PKEY_ALLOC: return clues::SystemCallNr::PKEY_ALLOC;
403 case SystemCallNrI386::PKEY_FREE: return clues::SystemCallNr::PKEY_FREE;
404 case SystemCallNrI386::STATX: return clues::SystemCallNr::STATX;
405 case SystemCallNrI386::ARCH_PRCTL: return clues::SystemCallNr::ARCH_PRCTL;
406 case SystemCallNrI386::IO_PGETEVENTS: return clues::SystemCallNr::IO_PGETEVENTS;
407 case SystemCallNrI386::RSEQ: return clues::SystemCallNr::RSEQ;
408 case SystemCallNrI386::SEMGET: return clues::SystemCallNr::SEMGET;
409 case SystemCallNrI386::SEMCTL: return clues::SystemCallNr::SEMCTL;
410 case SystemCallNrI386::SHMGET: return clues::SystemCallNr::SHMGET;
411 case SystemCallNrI386::SHMCTL: return clues::SystemCallNr::SHMCTL;
412 case SystemCallNrI386::SHMAT: return clues::SystemCallNr::SHMAT;
413 case SystemCallNrI386::SHMDT: return clues::SystemCallNr::SHMDT;
414 case SystemCallNrI386::MSGGET: return clues::SystemCallNr::MSGGET;
415 case SystemCallNrI386::MSGSND: return clues::SystemCallNr::MSGSND;
416 case SystemCallNrI386::MSGRCV: return clues::SystemCallNr::MSGRCV;
417 case SystemCallNrI386::MSGCTL: return clues::SystemCallNr::MSGCTL;
418 case SystemCallNrI386::CLOCK_GETTIME64: return clues::SystemCallNr::CLOCK_GETTIME64;
419 case SystemCallNrI386::CLOCK_SETTIME64: return clues::SystemCallNr::CLOCK_SETTIME64;
420 case SystemCallNrI386::CLOCK_ADJTIME64: return clues::SystemCallNr::CLOCK_ADJTIME64;
421 case SystemCallNrI386::CLOCK_GETRES_TIME64: return clues::SystemCallNr::CLOCK_GETRES_TIME64;
422 case SystemCallNrI386::CLOCK_NANOSLEEP_TIME64: return clues::SystemCallNr::CLOCK_NANOSLEEP_TIME64;
423 case SystemCallNrI386::TIMER_GETTIME64: return clues::SystemCallNr::TIMER_GETTIME64;
424 case SystemCallNrI386::TIMER_SETTIME64: return clues::SystemCallNr::TIMER_SETTIME64;
425 case SystemCallNrI386::TIMERFD_GETTIME64: return clues::SystemCallNr::TIMERFD_GETTIME64;
426 case SystemCallNrI386::TIMERFD_SETTIME64: return clues::SystemCallNr::TIMERFD_SETTIME64;
427 case SystemCallNrI386::UTIMENSAT_TIME64: return clues::SystemCallNr::UTIMENSAT_TIME64;
428 case SystemCallNrI386::PSELECT6_TIME64: return clues::SystemCallNr::PSELECT6_TIME64;
429 case SystemCallNrI386::PPOLL_TIME64: return clues::SystemCallNr::PPOLL_TIME64;
430 case SystemCallNrI386::IO_PGETEVENTS_TIME64: return clues::SystemCallNr::IO_PGETEVENTS_TIME64;
431 case SystemCallNrI386::RECVMMSG_TIME64: return clues::SystemCallNr::RECVMMSG_TIME64;
432 case SystemCallNrI386::MQ_TIMEDSEND_TIME64: return clues::SystemCallNr::MQ_TIMEDSEND_TIME64;
433 case SystemCallNrI386::MQ_TIMEDRECEIVE_TIME64: return clues::SystemCallNr::MQ_TIMEDRECEIVE_TIME64;
434 case SystemCallNrI386::SEMTIMEDOP_TIME64: return clues::SystemCallNr::SEMTIMEDOP_TIME64;
435 case SystemCallNrI386::RT_SIGTIMEDWAIT_TIME64: return clues::SystemCallNr::RT_SIGTIMEDWAIT_TIME64;
436 case SystemCallNrI386::FUTEX_TIME64: return clues::SystemCallNr::FUTEX_TIME64;
437 case SystemCallNrI386::SCHED_RR_GET_INTERVAL_TIME64: return clues::SystemCallNr::SCHED_RR_GET_INTERVAL_TIME64;
438 case SystemCallNrI386::PIDFD_SEND_SIGNAL: return clues::SystemCallNr::PIDFD_SEND_SIGNAL;
439 case SystemCallNrI386::IO_URING_SETUP: return clues::SystemCallNr::IO_URING_SETUP;
440 case SystemCallNrI386::IO_URING_ENTER: return clues::SystemCallNr::IO_URING_ENTER;
441 case SystemCallNrI386::IO_URING_REGISTER: return clues::SystemCallNr::IO_URING_REGISTER;
442 case SystemCallNrI386::OPEN_TREE: return clues::SystemCallNr::OPEN_TREE;
443 case SystemCallNrI386::MOVE_MOUNT: return clues::SystemCallNr::MOVE_MOUNT;
444 case SystemCallNrI386::FSOPEN: return clues::SystemCallNr::FSOPEN;
445 case SystemCallNrI386::FSCONFIG: return clues::SystemCallNr::FSCONFIG;
446 case SystemCallNrI386::FSMOUNT: return clues::SystemCallNr::FSMOUNT;
447 case SystemCallNrI386::FSPICK: return clues::SystemCallNr::FSPICK;
448 case SystemCallNrI386::PIDFD_OPEN: return clues::SystemCallNr::PIDFD_OPEN;
449 case SystemCallNrI386::CLONE3: return clues::SystemCallNr::CLONE3;
450 case SystemCallNrI386::CLOSE_RANGE: return clues::SystemCallNr::CLOSE_RANGE;
451 case SystemCallNrI386::OPENAT2: return clues::SystemCallNr::OPENAT2;
452 case SystemCallNrI386::PIDFD_GETFD: return clues::SystemCallNr::PIDFD_GETFD;
453 case SystemCallNrI386::FACCESSAT2: return clues::SystemCallNr::FACCESSAT2;
454 case SystemCallNrI386::PROCESS_MADVISE: return clues::SystemCallNr::PROCESS_MADVISE;
455 case SystemCallNrI386::EPOLL_PWAIT2: return clues::SystemCallNr::EPOLL_PWAIT2;
456 case SystemCallNrI386::MOUNT_SETATTR: return clues::SystemCallNr::MOUNT_SETATTR;
457 case SystemCallNrI386::QUOTACTL_FD: return clues::SystemCallNr::QUOTACTL_FD;
458 case SystemCallNrI386::LANDLOCK_CREATE_RULESET: return clues::SystemCallNr::LANDLOCK_CREATE_RULESET;
459 case SystemCallNrI386::LANDLOCK_ADD_RULE: return clues::SystemCallNr::LANDLOCK_ADD_RULE;
460 case SystemCallNrI386::LANDLOCK_RESTRICT_SELF: return clues::SystemCallNr::LANDLOCK_RESTRICT_SELF;
461 case SystemCallNrI386::MEMFD_SECRET: return clues::SystemCallNr::MEMFD_SECRET;
462 case SystemCallNrI386::PROCESS_MRELEASE: return clues::SystemCallNr::PROCESS_MRELEASE;
463 case SystemCallNrI386::FUTEX_WAITV: return clues::SystemCallNr::FUTEX_WAITV;
464 case SystemCallNrI386::SET_MEMPOLICY_HOME_NODE: return clues::SystemCallNr::SET_MEMPOLICY_HOME_NODE;
465 case SystemCallNrI386::CACHESTAT: return clues::SystemCallNr::CACHESTAT;
466 case SystemCallNrI386::FCHMODAT2: return clues::SystemCallNr::FCHMODAT2;
467 case SystemCallNrI386::MAP_SHADOW_STACK: return clues::SystemCallNr::MAP_SHADOW_STACK;
468 case SystemCallNrI386::_FUTEX_WAKE: return clues::SystemCallNr::_FUTEX_WAKE;
469 case SystemCallNrI386::_FUTEX_WAIT: return clues::SystemCallNr::_FUTEX_WAIT;
470 case SystemCallNrI386::_FUTEX_REQUEUE: return clues::SystemCallNr::_FUTEX_REQUEUE;
471 case SystemCallNrI386::STATMOUNT: return clues::SystemCallNr::STATMOUNT;
472 case SystemCallNrI386::LISTMOUNT: return clues::SystemCallNr::LISTMOUNT;
473 case SystemCallNrI386::LSM_GET_SELF_ATTR: return clues::SystemCallNr::LSM_GET_SELF_ATTR;
474 case SystemCallNrI386::LSM_SET_SELF_ATTR: return clues::SystemCallNr::LSM_SET_SELF_ATTR;
475 case SystemCallNrI386::LSM_LIST_MODULES: return clues::SystemCallNr::LSM_LIST_MODULES;
476 case SystemCallNrI386::MSEAL: return clues::SystemCallNr::MSEAL;
477 case SystemCallNrI386::SETXATTRAT: return clues::SystemCallNr::SETXATTRAT;
478 case SystemCallNrI386::GETXATTRAT: return clues::SystemCallNr::GETXATTRAT;
479 case SystemCallNrI386::LISTXATTRAT: return clues::SystemCallNr::LISTXATTRAT;
480 case SystemCallNrI386::REMOVEXATTRAT: return clues::SystemCallNr::REMOVEXATTRAT;
481 case SystemCallNrI386::OPEN_TREE_ATTR: return clues::SystemCallNr::OPEN_TREE_ATTR;
482 case SystemCallNrI386::FILE_GETATTR: return clues::SystemCallNr::FILE_GETATTR;
483 case SystemCallNrI386::FILE_SETATTR: return clues::SystemCallNr::FILE_SETATTR;
484 }
485}
486
487} // 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
SystemCallNrI386
Native system call numbers as used by Linux on the i386 ABI.
Definition i386.hxx:32