gem5  v22.0.0.1
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 };
366 
367 } // namespace X86ISA
368 } // namespace gem5
gem5::dupFunc
SyscallReturn dupFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd)
FIXME: The file description is not shared among file descriptors created with dup.
Definition: syscall_emul.cc:599
gem5::chdirFunc
SyscallReturn chdirFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname)
Target chdir() handler.
Definition: syscall_emul.cc:950
gem5::listenFunc
SyscallReturn listenFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int backlog)
Definition: syscall_emul.cc:1112
se_workload.hh
gem5::getuidFunc
SyscallReturn getuidFunc(SyscallDesc *desc, ThreadContext *tc)
Definition: syscall_emul.cc:877
gem5::getsockoptFunc
SyscallReturn getsockoptFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int level, int optname, VPtr<> valPtr, VPtr<> lenPtr)
Definition: syscall_emul.cc:1358
gem5::getpgrpFunc
SyscallReturn getpgrpFunc(SyscallDesc *desc, ThreadContext *tc)
Target getpgrpFunc() handler.
Definition: syscall_emul.cc:815
gem5::X86ISA::archPrctlFunc
SyscallReturn archPrctlFunc(SyscallDesc *desc, ThreadContext *tc, int code, uint64_t addr)
Definition: syscalls.cc:63
gem5::X86ISA::unameFunc
SyscallReturn unameFunc(SyscallDesc *desc, ThreadContext *tc, VPtr< Linux::utsname > name)
Target uname() handler.
Definition: syscalls.cc:49
gem5::bindFunc
SyscallReturn bindFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> buf_ptr, int addrlen)
Definition: syscall_emul.cc:1091
gem5::X86ISA::EmuLinux::syscallDescs64
static SyscallDescTable< SyscallABI64 > syscallDescs64
Definition: se_workload.hh:92
gem5::mkdirFunc
SyscallReturn mkdirFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, mode_t mode)
Target mkdir() handler.
Definition: syscall_emul.cc:444
gem5::getcwdFunc
SyscallReturn getcwdFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> buf_ptr, unsigned long size)
Target getcwd() handler.
Definition: syscall_emul.cc:352
gem5::brkFunc
SyscallReturn brkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> new_brk)
Target brk() handler: set brk address.
Definition: syscall_emul.cc:258
gem5::ignoreWarnOnceFunc
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
gem5::closeFunc
SyscallReturn closeFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd)
Target close() handler.
Definition: syscall_emul.cc:289
gem5::getcpuFunc
SyscallReturn getcpuFunc(SyscallDesc *desc, ThreadContext *tc, VPtr< uint32_t > cpu, VPtr< uint32_t > node, VPtr< uint32_t > tcache)
Definition: syscall_emul.cc:1489
gem5::umaskFunc
SyscallReturn umaskFunc(SyscallDesc *desc, ThreadContext *tc)
Target umask() handler.
Definition: syscall_emul.cc:535
gem5::setpgidFunc
SyscallReturn setpgidFunc(SyscallDesc *desc, ThreadContext *tc, int pid, int pgid)
Target setpgid() handler.
Definition: syscall_emul.cc:822
gem5::exitGroupFunc
SyscallReturn exitGroupFunc(SyscallDesc *desc, ThreadContext *tc, int status)
Target exit_group() handler: terminate simulation. (exit all threads)
Definition: syscall_emul.cc:245
gem5::getsocknameFunc
SyscallReturn getsocknameFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> addrPtr, VPtr<> lenPtr)
Definition: syscall_emul.cc:1400
gem5::symlinkFunc
SyscallReturn symlinkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr<> new_pathname)
Target symlink() handler.
Definition: syscall_emul.cc:423
gem5::unlinkFunc
SyscallReturn unlinkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname)
Target unlink() handler.
Definition: syscall_emul.cc:382
gem5::getgidFunc
SyscallReturn getgidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getgid() handler.
Definition: syscall_emul.cc:891
gem5::getegidFunc
SyscallReturn getegidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getegid() handler.
Definition: syscall_emul.cc:898
gem5::pipeFunc
SyscallReturn pipeFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> tgt_addr)
Target pipe() handler.
Definition: syscall_emul.cc:724
gem5::gettidFunc
SyscallReturn gettidFunc(SyscallDesc *desc, ThreadContext *tc)
Target gettid() handler.
Definition: syscall_emul.cc:863
gem5::setTidAddressFunc
SyscallReturn setTidAddressFunc(SyscallDesc *desc, ThreadContext *tc, uint64_t tidPtr)
Target set_tid_address() handler.
Definition: syscall_emul.cc:280
gem5::fcntlFunc
SyscallReturn fcntlFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int cmd, guest_abi::VarArgs< int > varargs)
Target fcntl() handler.
Definition: syscall_emul.cc:647
gem5::connectFunc
SyscallReturn connectFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> buf_ptr, int addrlen)
Definition: syscall_emul.cc:1127
gem5::linkFunc
SyscallReturn linkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr<> new_pathname)
Target link() handler.
Definition: syscall_emul.cc:402
gem5::pipe2Func
SyscallReturn pipe2Func(SyscallDesc *desc, ThreadContext *tc, VPtr<> tgt_addr, int flags)
Target pipe() handler.
Definition: syscall_emul.cc:730
gem5::accessFunc
SyscallReturn accessFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, mode_t mode)
Target access() handler.
Definition: syscall_emul.cc:905
gem5::sendmsgFunc
SyscallReturn sendmsgFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> msgPtr, int flags)
Definition: syscall_emul.cc:1289
gem5::recvmsgFunc
SyscallReturn recvmsgFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> msgPtr, int flags)
Definition: syscall_emul.cc:1149
gem5::exitFunc
SyscallReturn exitFunc(SyscallDesc *desc, ThreadContext *tc, int status)
Target exit() handler: terminate current context.
Definition: syscall_emul.cc:239
syscalls.hh
syscall_emul.hh
gem5::shutdownFunc
SyscallReturn shutdownFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int how)
Target shutdown() handler.
Definition: syscall_emul.cc:1076
linux.hh
gem5::rmdirFunc
SyscallReturn rmdirFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname)
Definition: syscall_emul.cc:977
gem5::getppidFunc
SyscallReturn getppidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getppid() handler.
Definition: syscall_emul.cc:870
gem5::renameFunc
SyscallReturn renameFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> oldpath, VPtr<> newpath)
Target rename() handler.
Definition: syscall_emul.cc:464
gem5::setsockoptFunc
SyscallReturn setsockoptFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int level, int optname, VPtr<> valPtr, socklen_t len)
Definition: syscall_emul.cc:1468
gem5::fchownFunc
SyscallReturn fchownFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint32_t owner, uint32_t group)
Target fchown() handler.
Definition: syscall_emul.cc:574
gem5::ignoreFunc
SyscallReturn ignoreFunc(SyscallDesc *desc, ThreadContext *tc)
Handler for unimplemented syscalls that we never intend to implement (signal handling,...
Definition: syscall_emul.cc:72
gem5::getpidFunc
SyscallReturn getpidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getpid() handler.
Definition: syscall_emul.cc:856
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition: gpu_translation_state.hh:37
gem5::dup2Func
SyscallReturn dup2Func(SyscallDesc *desc, ThreadContext *tc, int old_tgt_fd, int new_tgt_fd)
Target dup2() handler.
Definition: syscall_emul.cc:619
gem5::mknodFunc
SyscallReturn mknodFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, mode_t mode, dev_t dev)
Target mknod() handler.
Definition: syscall_emul.cc:928
gem5::geteuidFunc
SyscallReturn geteuidFunc(SyscallDesc *desc, ThreadContext *tc)
Target geteuid() handler.
Definition: syscall_emul.cc:884
gem5::chownFunc
SyscallReturn chownFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, uint32_t owner, uint32_t group)
Target chown() handler.
Definition: syscall_emul.cc:546
gem5::lseekFunc
SyscallReturn lseekFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint64_t offs, int whence)
Target lseek() handler.
Definition: syscall_emul.cc:296
gem5::getpeernameFunc
SyscallReturn getpeernameFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> sockAddrPtr, VPtr<> addrlenPtr)
Definition: syscall_emul.cc:1439

Generated on Sat Jun 18 2022 08:12:17 for gem5 by doxygen 1.8.17