gem5  v22.1.0.0
syscall_tbl64.cc
Go to the documentation of this file.
1 /*
2  * Copyright 2020 Google Inc.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are
6  * met: redistributions of source code must retain the above copyright
7  * notice, this list of conditions and the following disclaimer;
8  * redistributions in binary form must reproduce the above copyright
9  * notice, this list of conditions and the following disclaimer in the
10  * documentation and/or other materials provided with the distribution;
11  * neither the name of the copyright holders nor the names of its
12  * contributors may be used to endorse or promote products derived from
13  * this software without specific prior written permission.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  */
27 
28 #include <sys/syscall.h>
29 
30 #include "arch/x86/linux/linux.hh"
33 #include "sim/syscall_emul.hh"
34 
35 namespace gem5
36 {
37 
38 namespace X86ISA
39 {
40 
41 SyscallDescTable<EmuLinux::SyscallABI64> EmuLinux::syscallDescs64 = {
42  { 0, "read", readFunc<X86Linux64> },
43  { 1, "write", writeFunc<X86Linux64> },
44  { 2, "open", openFunc<X86Linux64> },
45  { 3, "close", closeFunc },
46  { 4, "stat", stat64Func<X86Linux64> },
47  { 5, "fstat", fstat64Func<X86Linux64> },
48  { 6, "lstat", lstat64Func<X86Linux64> },
49  { 7, "poll", pollFunc<X86Linux64> },
50  { 8, "lseek", lseekFunc },
51  { 9, "mmap", mmapFunc<X86Linux64> },
52  { 10, "mprotect", ignoreFunc },
53  { 11, "munmap", munmapFunc<X86Linux64> },
54  { 12, "brk", brkFunc },
55  { 13, "rt_sigaction", ignoreWarnOnceFunc },
56  { 14, "rt_sigprocmask", ignoreWarnOnceFunc },
57  { 15, "rt_sigreturn" },
58  { 16, "ioctl", ioctlFunc<X86Linux64> },
59  { 17, "pread64", pread64Func<X86Linux64> },
60  { 18, "pwrite64", pwrite64Func<X86Linux64> },
61  { 19, "readv", readvFunc<X86Linux64> },
62  { 20, "writev", writevFunc<X86Linux64> },
63  { 21, "access", accessFunc },
64  { 22, "pipe", pipeFunc },
65  { 23, "select", selectFunc<X86Linux64> },
66  { 24, "sched_yield", ignoreWarnOnceFunc },
67  { 25, "mremap", mremapFunc<X86Linux64> },
68  { 26, "msync" },
69  { 27, "mincore" },
70  { 28, "madvise", ignoreFunc },
71  { 29, "shmget" },
72  { 30, "shmat" },
73  { 31, "shmctl" },
74  { 32, "dup", dupFunc },
75  { 33, "dup2", dup2Func },
76  { 34, "pause" },
77  { 35, "nanosleep", ignoreWarnOnceFunc },
78  { 36, "getitimer" },
79  { 37, "alarm" },
80  { 38, "setitimer" },
81  { 39, "getpid", getpidFunc },
82  { 40, "sendfile" },
83  { 41, "socket", socketFunc<X86Linux64> },
84  { 42, "connect", connectFunc },
85  { 43, "accept", acceptFunc<X86Linux64> },
86  { 44, "sendto", sendtoFunc<X86Linux64> },
87  { 45, "recvfrom", recvfromFunc<X86Linux64> },
88  { 46, "sendmsg", sendmsgFunc },
89  { 47, "recvmsg", recvmsgFunc },
90  { 48, "shutdown", shutdownFunc },
91  { 49, "bind", bindFunc },
92  { 50, "listen", listenFunc },
93  { 51, "getsockname", getsocknameFunc },
94  { 52, "getpeername", getpeernameFunc },
95  { 53, "socketpair", socketpairFunc<X86Linux64> },
96  { 54, "setsockopt", setsockoptFunc },
97  { 55, "getsockopt", getsockoptFunc },
98  { 56, "clone", cloneFunc<X86Linux64> },
99  { 57, "fork" },
100  { 58, "vfork" },
101  { 59, "execve", execveFunc<X86Linux64> },
102  { 60, "exit", exitFunc },
103  { 61, "wait4", wait4Func<X86Linux64> },
104  { 62, "kill" },
105  { 63, "uname", unameFunc },
106  { 64, "semget" },
107  { 65, "semop" },
108  { 66, "semctl" },
109  { 67, "shmdt" },
110  { 68, "msgget" },
111  { 69, "msgsnd" },
112  { 70, "msgrcv" },
113  { 71, "msgctl" },
114  { 72, "fcntl", fcntlFunc },
115  { 73, "flock" },
116  { 74, "fsync" },
117  { 75, "fdatasync", ignoreFunc },
118  { 76, "truncate", truncateFunc<X86Linux64> },
119  { 77, "ftruncate", ftruncateFunc<X86Linux64> },
120 #if defined(SYS_getdents)
121  { 78, "getdents", getdentsFunc },
122 #else
123  { 78, "getdents" },
124 #endif
125  { 79, "getcwd", getcwdFunc },
126  { 80, "chdir", chdirFunc },
127  { 81, "fchdir" },
128  { 82, "rename", renameFunc },
129  { 83, "mkdir", mkdirFunc },
130  { 84, "rmdir", rmdirFunc },
131  { 85, "creat" },
132  { 86, "link", linkFunc },
133  { 87, "unlink", unlinkFunc },
134  { 88, "symlink", symlinkFunc },
135  { 89, "readlink", readlinkFunc<X86Linux64> },
136  { 90, "chmod", chmodFunc<X86Linux64> },
137  { 91, "fchmod", fchmodFunc<X86Linux64> },
138  { 92, "chown", chownFunc },
139  { 93, "fchown", fchownFunc },
140  { 94, "lchown" },
141  { 95, "umask", umaskFunc },
142  { 96, "gettimeofday", gettimeofdayFunc<X86Linux64> },
143  { 97, "getrlimit", getrlimitFunc<X86Linux64> },
144  { 98, "getrusage", getrusageFunc<X86Linux64> },
145  { 99, "sysinfo", sysinfoFunc<X86Linux64> },
146  { 100, "times", timesFunc<X86Linux64> },
147  { 101, "ptrace" },
148  { 102, "getuid", getuidFunc },
149  { 103, "syslog" },
150  { 104, "getgid", getgidFunc },
151  { 105, "setuid" },
152  { 106, "setgid" },
153  { 107, "geteuid", geteuidFunc },
154  { 108, "getegid", getegidFunc },
155  { 109, "setpgid", setpgidFunc },
156  { 110, "getppid", getppidFunc },
157  { 111, "getpgrp", getpgrpFunc },
158  { 112, "setsid" },
159  { 113, "setreuid" },
160  { 114, "setregid" },
161  { 115, "getgroups" },
162  { 116, "setgroups" },
163  { 117, "setresuid", ignoreFunc },
164  { 118, "getresuid" },
165  { 119, "setresgid" },
166  { 120, "getresgid" },
167  { 121, "getpgid" },
168  { 122, "setfsuid" },
169  { 123, "setfsgid" },
170  { 124, "getsid" },
171  { 125, "capget" },
172  { 126, "capset" },
173  { 127, "rt_sigpending" },
174  { 128, "rt_sigtimedwait" },
175  { 129, "rt_sigqueueinfo" },
176  { 130, "rt_sigsuspend" },
177  { 131, "sigaltstack", ignoreFunc },
178  { 132, "utime" },
179  { 133, "mknod", mknodFunc },
180  { 134, "uselib" },
181  { 135, "personality" },
182  { 136, "ustat" },
183  { 137, "statfs", statfsFunc<X86Linux64> },
184  { 138, "fstatfs", fstatfsFunc<X86Linux64> },
185  { 139, "sysfs" },
186  { 140, "getpriority" },
187  { 141, "setpriority", ignoreFunc },
188  { 142, "sched_setparam" },
189  { 143, "sched_getparam" },
190  { 144, "sched_setscheduler" },
191  { 145, "sched_getscheduler" },
192  { 146, "sched_get_priority_max" },
193  { 147, "sched_get_priority_min" },
194  { 148, "sched_rr_get_interval" },
195  { 149, "mlock" },
196  { 150, "munlock" },
197  { 151, "mlockall" },
198  { 152, "munlockall" },
199  { 153, "vhangup" },
200  { 154, "modify_ldt" },
201  { 155, "pivot_root" },
202  { 156, "_sysctl" },
203  { 157, "prctl", ignoreFunc },
204  { 158, "arch_prctl", archPrctlFunc },
205  { 159, "adjtimex" },
206  { 160, "setrlimit", ignoreFunc },
207  { 161, "chroot" },
208  { 162, "sync" },
209  { 163, "acct" },
210  { 164, "settimeofday" },
211  { 165, "mount" },
212  { 166, "umount2" },
213  { 167, "swapon" },
214  { 168, "swapoff" },
215  { 169, "reboot" },
216  { 170, "sethostname" },
217  { 171, "setdomainname" },
218  { 172, "iopl" },
219  { 173, "ioperm" },
220  { 174, "create_module" },
221  { 175, "init_module" },
222  { 176, "delete_module" },
223  { 177, "get_kernel_syms" },
224  { 178, "query_module" },
225  { 179, "quotactl" },
226  { 180, "nfsservctl" },
227  { 181, "getpmsg" },
228  { 182, "putpmsg" },
229  { 183, "afs_syscall" },
230  { 184, "tuxcall" },
231  { 185, "security" },
232  { 186, "gettid", gettidFunc },
233  { 187, "readahead" },
234  { 188, "setxattr" },
235  { 189, "lsetxattr" },
236  { 190, "fsetxattr" },
237  { 191, "getxattr" },
238  { 192, "lgetxattr" },
239  { 193, "fgetxattr" },
240  { 194, "listxattr" },
241  { 195, "llistxattr" },
242  { 196, "flistxattr" },
243  { 197, "removexattr" },
244  { 198, "lremovexattr" },
245  { 199, "fremovexattr" },
246  { 200, "tkill" },
247  { 201, "time", timeFunc<X86Linux64> },
248  { 202, "futex", futexFunc<X86Linux64> },
249  { 203, "sched_setaffinity", ignoreFunc },
250  { 204, "sched_getaffinity", schedGetaffinityFunc<X86Linux64> },
251  { 205, "set_thread_area" },
252  { 206, "io_setup" },
253  { 207, "io_destroy" },
254  { 208, "io_getevents" },
255  { 209, "io_submit" },
256  { 210, "io_cancel" },
257  { 211, "get_thread_area" },
258  { 212, "lookup_dcookie" },
259  { 213, "epoll_create" },
260  { 214, "epoll_ctl_old" },
261  { 215, "epoll_wait_old" },
262  { 216, "remap_file_pages" },
263 #if defined(SYS_getdents64)
264  { 217, "getdents64", getdents64Func },
265 #else
266  { 217, "getdents64" },
267 #endif
268  { 218, "set_tid_address", setTidAddressFunc },
269  { 219, "restart_syscall" },
270  { 220, "semtimedop" },
271  { 221, "fadvise64", ignoreFunc },
272  { 222, "timer_create" },
273  { 223, "timer_settime" },
274  { 224, "timer_gettime" },
275  { 225, "timer_getoverrun" },
276  { 226, "timer_delete" },
277  { 227, "clock_settime" },
278  { 228, "clock_gettime", clock_gettimeFunc<X86Linux64> },
279  { 229, "clock_getres", clock_getresFunc<X86Linux64> },
280  { 230, "clock_nanosleep" },
281  { 231, "exit_group", exitGroupFunc },
282  { 232, "epoll_wait" },
283  { 233, "epoll_ctl" },
284  { 234, "tgkill", tgkillFunc<X86Linux64> },
285  { 235, "utimes", utimesFunc<X86Linux64> },
286  { 236, "vserver" },
287  { 237, "mbind", ignoreFunc },
288  { 238, "set_mempolicy" },
289  { 239, "get_mempolicy", ignoreFunc },
290  { 240, "mq_open" },
291  { 241, "mq_unlink" },
292  { 242, "mq_timedsend" },
293  { 243, "mq_timedreceive" },
294  { 244, "mq_notify" },
295  { 245, "mq_getsetattr" },
296  { 246, "kexec_load" },
297  { 247, "waitid" },
298  { 248, "add_key" },
299  { 249, "request_key" },
300  { 250, "keyctl" },
301  { 251, "ioprio_set" },
302  { 252, "ioprio_get" },
303  { 253, "inotify_init" },
304  { 254, "inotify_add_watch" },
305  { 255, "inotify_rm_watch" },
306  { 256, "migrate_pages" },
307  { 257, "openat", openatFunc<X86Linux64> },
308  { 258, "mkdirat", mkdiratFunc<X86Linux64> },
309  { 259, "mknodat", mknodatFunc<X86Linux64> },
310  { 260, "fchownat", fchownatFunc<X86Linux64> },
311  { 261, "futimesat", futimesatFunc<X86Linux64> },
312  { 262, "newfstatat", newfstatatFunc<X86Linux64> },
313  { 263, "unlinkat", unlinkatFunc<X86Linux64> },
314  { 264, "renameat", renameatFunc<X86Linux64> },
315  { 265, "linkat" },
316  { 266, "symlinkat" },
317  { 267, "readlinkat", readlinkFunc<X86Linux64> },
318  { 268, "fchmodat", fchmodatFunc<X86Linux64> },
319  { 269, "faccessat", faccessatFunc<X86Linux64> },
320  { 270, "pselect6" },
321  { 271, "ppoll" },
322  { 272, "unshare" },
323  { 273, "set_robust_list", ignoreFunc },
324  { 274, "get_robust_list" },
325  { 275, "splice" },
326  { 276, "tee" },
327  { 277, "sync_file_range" },
328  { 278, "vmsplice" },
329  { 279, "move_pages" },
330  { 280, "utimensat" },
331  { 281, "epoll_pwait" },
332  { 282, "signalfd" },
333  { 283, "timerfd_create" },
334  { 284, "eventfd", eventfdFunc<X86Linux64> },
335  { 285, "fallocate", fallocateFunc<X86Linux64> },
336  { 286, "timerfd_settime" },
337  { 287, "timerfd_gettime" },
338  { 288, "accept4" },
339  { 289, "signalfd4" },
340  { 290, "eventfd2", eventfdFunc<X86Linux64> },
341  { 291, "epoll_create1" },
342  { 292, "dup3" },
343  { 293, "pipe2", pipe2Func },
344  { 294, "inotify_init1" },
345  { 295, "preadv" },
346  { 296, "pwritev" },
347  { 297, "rt_tgsigqueueinfo" },
348  { 298, "perf_event_open" },
349  { 299, "recvmmsg" },
350  { 300, "fanotify_init" },
351  { 301, "fanotify_mark" },
352  { 302, "prlimit64", prlimitFunc<X86Linux64> },
353  { 303, "name_to_handle_at" },
354  { 304, "open_by_handle_at" },
355  { 305, "clock_adjtime" },
356  { 306, "syncfs" },
357  { 307, "sendmmsg" },
358  { 308, "setns" },
359  { 309, "getcpu", getcpuFunc },
360  { 310, "proess_vm_readv" },
361  { 311, "proess_vm_writev" },
362  { 312, "kcmp" },
363  { 313, "finit_module" },
364  { 318, "getrandom", getrandomFunc<X86Linux64> },
365  { 319, "memfd_create" },
366  { 320, "kexec_file_load" },
367  { 321, "bpf" },
368  { 322, "execveat" },
369  { 323, "userfaultfd" },
370  { 324, "membarrier" },
371  { 325, "mlock2" },
372  { 326, "copy_file_range" },
373  { 327, "preadv2" },
374  { 328, "pwritev2" },
375  { 329, "pkey_mprotect" },
376  { 330, "pkey_alloc" },
377  { 331, "pkey_free" },
378  { 332, "statx" },
379  { 333, "io_pgetevents" },
380  { 334, "rseq", ignoreFunc },
381  { 424, "pidfd_send_signal" },
382  { 425, "io_uring_setup" },
383  { 426, "io_uring_enter" },
384  { 427, "io_uring_register" },
385  { 428, "open_tree" },
386  { 429, "move_mount" },
387  { 430, "fsopen" },
388  { 431, "fsconfig" },
389  { 432, "fsmount" },
390  { 433, "fspick" },
391  { 434, "pidfd_open" },
392  { 435, "clone3", clone3Func<X86Linux64> },
393  { 436, "close_range" },
394  { 437, "openat2" },
395  { 438, "pidfd_getfd" },
396  { 439, "faccessat2" },
397  { 440, "process_madvise" },
398  { 441, "epoll_pwait2" },
399  { 442, "mount_setattr" },
400  { 443, "quotactl_fd" },
401  { 444, "landlock_create_ruleset" },
402  { 445, "landlock_add_rule" },
403  { 446, "landlock_restrict_self" },
404  { 447, "memfd_secret" },
405  { 448, "process_mrelease" },
406  { 449, "futex_waitv" },
407  { 450, "set_mempolicy_home_node" }
408 };
409 
410 } // namespace X86ISA
411 } // namespace gem5
static SyscallDescTable< SyscallABI64 > syscallDescs64
Definition: se_workload.hh:93
SyscallReturn unameFunc(SyscallDesc *desc, ThreadContext *tc, VPtr< Linux::utsname > name)
Target uname() handler.
Definition: syscalls.cc:49
SyscallReturn archPrctlFunc(SyscallDesc *desc, ThreadContext *tc, int code, uint64_t addr)
Definition: syscalls.cc:63
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
SyscallReturn linkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr<> new_pathname)
Target link() handler.
SyscallReturn getppidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getppid() handler.
SyscallReturn exitGroupFunc(SyscallDesc *desc, ThreadContext *tc, int status)
Target exit_group() handler: terminate simulation. (exit all threads)
SyscallReturn gettidFunc(SyscallDesc *desc, ThreadContext *tc)
Target gettid() handler.
SyscallReturn recvmsgFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> msgPtr, int flags)
SyscallReturn brkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> new_brk)
Target brk() handler: set brk address.
SyscallReturn pipe2Func(SyscallDesc *desc, ThreadContext *tc, VPtr<> tgt_addr, int flags)
Target pipe() handler.
SyscallReturn getpidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getpid() handler.
SyscallReturn chdirFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname)
Target chdir() handler.
SyscallReturn getuidFunc(SyscallDesc *desc, ThreadContext *tc)
SyscallReturn chownFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, uint32_t owner, uint32_t group)
Target chown() handler.
SyscallReturn renameFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> oldpath, VPtr<> newpath)
Target rename() handler.
SyscallReturn mknodFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, mode_t mode, dev_t dev)
Target mknod() handler.
SyscallReturn setTidAddressFunc(SyscallDesc *desc, ThreadContext *tc, uint64_t tidPtr)
Target set_tid_address() handler.
SyscallReturn setpgidFunc(SyscallDesc *desc, ThreadContext *tc, int pid, int pgid)
Target setpgid() handler.
SyscallReturn geteuidFunc(SyscallDesc *desc, ThreadContext *tc)
Target geteuid() handler.
SyscallReturn getcwdFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> buf_ptr, unsigned long size)
Target getcwd() handler.
SyscallReturn symlinkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr<> new_pathname)
Target symlink() handler.
SyscallReturn unlinkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname)
Target unlink() handler.
SyscallReturn pipeFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> tgt_addr)
Target pipe() handler.
SyscallReturn getsockoptFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int level, int optname, VPtr<> valPtr, VPtr<> lenPtr)
SyscallReturn ignoreWarnOnceFunc(SyscallDesc *desc, ThreadContext *tc)
Like above, but only prints a warning once per syscall desc it's used with.
Definition: syscall_emul.cc:79
SyscallReturn setsockoptFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int level, int optname, VPtr<> valPtr, socklen_t len)
SyscallReturn rmdirFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname)
SyscallReturn mkdirFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, mode_t mode)
Target mkdir() handler.
SyscallReturn getpgrpFunc(SyscallDesc *desc, ThreadContext *tc)
Target getpgrpFunc() handler.
SyscallReturn dupFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd)
FIXME: The file description is not shared among file descriptors created with dup.
SyscallReturn listenFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int backlog)
SyscallReturn fchownFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint32_t owner, uint32_t group)
Target fchown() handler.
SyscallReturn fcntlFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int cmd, guest_abi::VarArgs< int > varargs)
Target fcntl() handler.
SyscallReturn bindFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> buf_ptr, int addrlen)
SyscallReturn getegidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getegid() handler.
SyscallReturn shutdownFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int how)
Target shutdown() handler.
SyscallReturn getcpuFunc(SyscallDesc *desc, ThreadContext *tc, VPtr< uint32_t > cpu, VPtr< uint32_t > node, VPtr< uint32_t > tcache)
SyscallReturn getsocknameFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> addrPtr, VPtr<> lenPtr)
SyscallReturn getpeernameFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> sockAddrPtr, VPtr<> addrlenPtr)
SyscallReturn lseekFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint64_t offs, int whence)
Target lseek() handler.
SyscallReturn accessFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, mode_t mode)
Target access() handler.
SyscallReturn sendmsgFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> msgPtr, int flags)
SyscallReturn ignoreFunc(SyscallDesc *desc, ThreadContext *tc)
Handler for unimplemented syscalls that we never intend to implement (signal handling,...
Definition: syscall_emul.cc:72
SyscallReturn connectFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> buf_ptr, int addrlen)
SyscallReturn exitFunc(SyscallDesc *desc, ThreadContext *tc, int status)
Target exit() handler: terminate current context.
SyscallReturn dup2Func(SyscallDesc *desc, ThreadContext *tc, int old_tgt_fd, int new_tgt_fd)
Target dup2() handler.
SyscallReturn getgidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getgid() handler.
SyscallReturn closeFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd)
Target close() handler.
SyscallReturn umaskFunc(SyscallDesc *desc, ThreadContext *tc)
Target umask() handler.
This file defines objects used to emulate syscalls from the target application on the host machine.

Generated on Wed Dec 21 2022 10:22:28 for gem5 by doxygen 1.9.1