gem5  v21.0.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 X86ISA
36 {
37 
39  { 0, "read", readFunc<X86Linux64> },
40  { 1, "write", writeFunc<X86Linux64> },
41  { 2, "open", openFunc<X86Linux64> },
42  { 3, "close", closeFunc },
43  { 4, "stat", stat64Func<X86Linux64> },
44  { 5, "fstat", fstat64Func<X86Linux64> },
45  { 6, "lstat", lstat64Func<X86Linux64> },
46  { 7, "poll", pollFunc<X86Linux64> },
47  { 8, "lseek", lseekFunc },
48  { 9, "mmap", mmapFunc<X86Linux64> },
49  { 10, "mprotect", ignoreFunc },
50  { 11, "munmap", munmapFunc },
51  { 12, "brk", brkFunc },
52  { 13, "rt_sigaction", ignoreWarnOnceFunc },
53  { 14, "rt_sigprocmask", ignoreWarnOnceFunc },
54  { 15, "rt_sigreturn" },
55  { 16, "ioctl", ioctlFunc<X86Linux64> },
56  { 17, "pread64", pread64Func<X86Linux64> },
57  { 18, "pwrite64", pwrite64Func<X86Linux64> },
58  { 19, "readv", readvFunc<X86Linux64> },
59  { 20, "writev", writevFunc<X86Linux64> },
60  { 21, "access", ignoreFunc },
61  { 22, "pipe", pipeFunc },
62  { 23, "select", selectFunc<X86Linux64> },
63  { 24, "sched_yield", ignoreFunc },
64  { 25, "mremap", mremapFunc<X86Linux64> },
65  { 26, "msync" },
66  { 27, "mincore" },
67  { 28, "madvise", ignoreFunc },
68  { 29, "shmget" },
69  { 30, "shmat" },
70  { 31, "shmctl" },
71  { 32, "dup", dupFunc },
72  { 33, "dup2", dup2Func },
73  { 34, "pause" },
74  { 35, "nanosleep", ignoreWarnOnceFunc },
75  { 36, "getitimer" },
76  { 37, "alarm" },
77  { 38, "setitimer" },
78  { 39, "getpid", getpidFunc },
79  { 40, "sendfile" },
80  { 41, "socket", socketFunc<X86Linux64> },
81  { 42, "connect", connectFunc },
82  { 43, "accept", acceptFunc<X86Linux64> },
83  { 44, "sendto", sendtoFunc },
84  { 45, "recvfrom", recvfromFunc },
85  { 46, "sendmsg", sendmsgFunc },
86  { 47, "recvmsg", recvmsgFunc },
87  { 48, "shutdown", shutdownFunc },
88  { 49, "bind", bindFunc },
89  { 50, "listen", listenFunc },
90  { 51, "getsockname", getsocknameFunc },
91  { 52, "getpeername", getpeernameFunc },
92  { 53, "socketpair", socketpairFunc<X86Linux64> },
93  { 54, "setsockopt", setsockoptFunc },
94  { 55, "getsockopt", getsockoptFunc },
95  { 56, "clone", cloneFunc<X86Linux64> },
96  { 57, "fork" },
97  { 58, "vfork" },
98  { 59, "execve", execveFunc<X86Linux64> },
99  { 60, "exit", exitFunc },
100  { 61, "wait4", wait4Func<X86Linux64> },
101  { 62, "kill" },
102  { 63, "uname", unameFunc },
103  { 64, "semget" },
104  { 65, "semop" },
105  { 66, "semctl" },
106  { 67, "shmdt" },
107  { 68, "msgget" },
108  { 69, "msgsnd" },
109  { 70, "msgrcv" },
110  { 71, "msgctl" },
111  { 72, "fcntl", fcntlFunc },
112  { 73, "flock" },
113  { 74, "fsync" },
114  { 75, "fdatasync" },
115  { 76, "truncate", truncateFunc },
116  { 77, "ftruncate", ftruncateFunc },
117 #if defined(SYS_getdents)
118  { 78, "getdents", getdentsFunc },
119 #else
120  { 78, "getdents" },
121 #endif
122  { 79, "getcwd", getcwdFunc },
123  { 80, "chdir", chdirFunc },
124  { 81, "fchdir" },
125  { 82, "rename", renameFunc },
126  { 83, "mkdir", mkdirFunc },
127  { 84, "rmdir", rmdirFunc },
128  { 85, "creat" },
129  { 86, "link", linkFunc },
130  { 87, "unlink", unlinkFunc },
131  { 88, "symlink", symlinkFunc },
132  { 89, "readlink", readlinkFunc },
133  { 90, "chmod", ignoreFunc },
134  { 91, "fchmod" },
135  { 92, "chown" },
136  { 93, "fchown" },
137  { 94, "lchown" },
138  { 95, "umask", umaskFunc },
139  { 96, "gettimeofday", gettimeofdayFunc<X86Linux64> },
140  { 97, "getrlimit", getrlimitFunc<X86Linux64> },
141  { 98, "getrusage", getrusageFunc<X86Linux64> },
142  { 99, "sysinfo", sysinfoFunc<X86Linux64> },
143  { 100, "times", timesFunc<X86Linux64> },
144  { 101, "ptrace" },
145  { 102, "getuid", getuidFunc },
146  { 103, "syslog" },
147  { 104, "getgid", getgidFunc },
148  { 105, "setuid" },
149  { 106, "setgid" },
150  { 107, "geteuid", geteuidFunc },
151  { 108, "getegid", getegidFunc },
152  { 109, "setpgid", setpgidFunc },
153  { 110, "getppid", getppidFunc },
154  { 111, "getpgrp", getpgrpFunc },
155  { 112, "setsid" },
156  { 113, "setreuid" },
157  { 114, "setregid" },
158  { 115, "getgroups" },
159  { 116, "setgroups" },
160  { 117, "setresuid", ignoreFunc },
161  { 118, "getresuid" },
162  { 119, "setresgid" },
163  { 120, "getresgid" },
164  { 121, "getpgid" },
165  { 122, "setfsuid" },
166  { 123, "setfsgid" },
167  { 124, "getsid" },
168  { 125, "capget" },
169  { 126, "capset" },
170  { 127, "rt_sigpending" },
171  { 128, "rt_sigtimedwait" },
172  { 129, "rt_sigqueueinfo" },
173  { 130, "rt_sigsuspend" },
174  { 131, "sigaltstack" },
175  { 132, "utime" },
176  { 133, "mknod", mknodFunc },
177  { 134, "uselib" },
178  { 135, "personality" },
179  { 136, "ustat" },
180  { 137, "statfs", statfsFunc<X86Linux64> },
181  { 138, "fstatfs", fstatfsFunc<X86Linux64> },
182  { 139, "sysfs" },
183  { 140, "getpriority" },
184  { 141, "setpriority", ignoreFunc },
185  { 142, "sched_setparam" },
186  { 143, "sched_getparam" },
187  { 144, "sched_setscheduler" },
188  { 145, "sched_getscheduler" },
189  { 146, "sched_get_priority_max" },
190  { 147, "sched_get_priority_min" },
191  { 148, "sched_rr_get_interval" },
192  { 149, "mlock" },
193  { 150, "munlock" },
194  { 151, "mlockall" },
195  { 152, "munlockall" },
196  { 153, "vhangup" },
197  { 154, "modify_ldt" },
198  { 155, "pivot_root" },
199  { 156, "_sysctl" },
200  { 157, "prctl" },
201  { 158, "arch_prctl", archPrctlFunc },
202  { 159, "adjtimex" },
203  { 160, "setrlimit", ignoreFunc },
204  { 161, "chroot" },
205  { 162, "sync" },
206  { 163, "acct" },
207  { 164, "settimeofday" },
208  { 165, "mount" },
209  { 166, "umount2" },
210  { 167, "swapon" },
211  { 168, "swapoff" },
212  { 169, "reboot" },
213  { 170, "sethostname" },
214  { 171, "setdomainname" },
215  { 172, "iopl" },
216  { 173, "ioperm" },
217  { 174, "create_module" },
218  { 175, "init_module" },
219  { 176, "delete_module" },
220  { 177, "get_kernel_syms" },
221  { 178, "query_module" },
222  { 179, "quotactl" },
223  { 180, "nfsservctl" },
224  { 181, "getpmsg" },
225  { 182, "putpmsg" },
226  { 183, "afs_syscall" },
227  { 184, "tuxcall" },
228  { 185, "security" },
229  { 186, "gettid", gettidFunc },
230  { 187, "readahead" },
231  { 188, "setxattr" },
232  { 189, "lsetxattr" },
233  { 190, "fsetxattr" },
234  { 191, "getxattr" },
235  { 192, "lgetxattr" },
236  { 193, "fgetxattr" },
237  { 194, "listxattr" },
238  { 195, "llistxattr" },
239  { 196, "flistxattr" },
240  { 197, "removexattr" },
241  { 198, "lremovexattr" },
242  { 199, "fremovexattr" },
243  { 200, "tkill" },
244  { 201, "time", timeFunc<X86Linux64> },
245  { 202, "futex", futexFunc<X86Linux64> },
246  { 203, "sched_setaffinity", ignoreFunc },
247  { 204, "sched_getaffinity", ignoreFunc },
248  { 205, "set_thread_area" },
249  { 206, "io_setup" },
250  { 207, "io_destroy" },
251  { 208, "io_getevents" },
252  { 209, "io_submit" },
253  { 210, "io_cancel" },
254  { 211, "get_thread_area" },
255  { 212, "lookup_dcookie" },
256  { 213, "epoll_create" },
257  { 214, "epoll_ctl_old" },
258  { 215, "epoll_wait_old" },
259  { 216, "remap_file_pages" },
260  { 217, "getdents64" },
261  { 218, "set_tid_address", setTidAddressFunc },
262  { 219, "restart_syscall" },
263  { 220, "semtimedop" },
264  { 221, "fadvise64", ignoreFunc },
265  { 222, "timer_create" },
266  { 223, "timer_settime" },
267  { 224, "timer_gettime" },
268  { 225, "timer_getoverrun" },
269  { 226, "timer_delete" },
270  { 227, "clock_settime" },
271  { 228, "clock_gettime", clock_gettimeFunc<X86Linux64> },
272  { 229, "clock_getres", clock_getresFunc<X86Linux64> },
273  { 230, "clock_nanosleep" },
274  { 231, "exit_group", exitGroupFunc },
275  { 232, "epoll_wait" },
276  { 233, "epoll_ctl" },
277  { 234, "tgkill", tgkillFunc<X86Linux64> },
278  { 235, "utimes" },
279  { 236, "vserver" },
280  { 237, "mbind" },
281  { 238, "set_mempolicy" },
282  { 239, "get_mempolicy", ignoreFunc },
283  { 240, "mq_open" },
284  { 241, "mq_unlink" },
285  { 242, "mq_timedsend" },
286  { 243, "mq_timedreceive" },
287  { 244, "mq_notify" },
288  { 245, "mq_getsetattr" },
289  { 246, "kexec_load" },
290  { 247, "waitid" },
291  { 248, "add_key" },
292  { 249, "request_key" },
293  { 250, "keyctl" },
294  { 251, "ioprio_set" },
295  { 252, "ioprio_get" },
296  { 253, "inotify_init" },
297  { 254, "inotify_add_watch" },
298  { 255, "inotify_rm_watch" },
299  { 256, "migrate_pages" },
300  { 257, "openat", openatFunc<X86Linux64> },
301  { 258, "mkdirat" },
302  { 259, "mknodat" },
303  { 260, "fchownat" },
304  { 261, "futimesat" },
305  { 262, "newfstatat" },
306  { 263, "unlinkat" },
307  { 264, "renameat" },
308  { 265, "linkat" },
309  { 266, "symlinkat" },
310  { 267, "readlinkat", readlinkFunc },
311  { 268, "fchmodat" },
312  { 269, "faccessat" },
313  { 270, "pselect6" },
314  { 271, "ppoll" },
315  { 272, "unshare" },
316  { 273, "set_robust_list", ignoreFunc },
317  { 274, "get_robust_list" },
318  { 275, "splice" },
319  { 276, "tee" },
320  { 277, "sync_file_range" },
321  { 278, "vmsplice" },
322  { 279, "move_pages" },
323  { 280, "utimensat" },
324  { 281, "epoll_pwait" },
325  { 282, "signalfd" },
326  { 283, "timerfd_create" },
327  { 284, "eventfd", eventfdFunc<X86Linux64> },
328  { 285, "fallocate", fallocateFunc },
329  { 286, "timerfd_settime" },
330  { 287, "timerfd_gettime" },
331  { 288, "accept4" },
332  { 289, "signalfd4" },
333  { 290, "eventfd2", eventfdFunc<X86Linux64> },
334  { 291, "epoll_create1" },
335  { 292, "dup3" },
336  { 293, "pipe2", pipe2Func },
337  { 294, "inotify_init1" },
338  { 295, "preadv" },
339  { 296, "pwritev" },
340  { 297, "rt_tgsigqueueinfo" },
341  { 298, "perf_event_open" },
342  { 299, "recvmmsg" },
343  { 300, "fanotify_init" },
344  { 301, "fanotify_mark" },
345  { 302, "prlimit64", prlimitFunc<X86Linux64> },
346  { 303, "name_to_handle_at" },
347  { 304, "open_by_handle_at" },
348  { 305, "clock_adjtime" },
349  { 306, "syncfs" },
350  { 307, "sendmmsg" },
351  { 308, "setns" },
352  { 309, "getcpu", getcpuFunc },
353  { 310, "proess_vm_readv" },
354  { 311, "proess_vm_writev" },
355  { 312, "kcmp" },
356  { 313, "finit_module" },
357 };
358 
359 } // namespace X86ISA
geteuidFunc
SyscallReturn geteuidFunc(SyscallDesc *desc, ThreadContext *tc)
Target geteuid() handler.
Definition: syscall_emul.cc:954
pipeFunc
SyscallReturn pipeFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> tgt_addr)
Target pipe() handler.
Definition: syscall_emul.cc:794
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:669
brkFunc
SyscallReturn brkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> new_brk)
Target brk() handler: set brk address.
Definition: syscall_emul.cc:246
ignoreFunc
SyscallReturn ignoreFunc(SyscallDesc *desc, ThreadContext *tc)
Handler for unimplemented syscalls that we never intend to implement (signal handling,...
Definition: syscall_emul.cc:70
se_workload.hh
mkdirFunc
SyscallReturn mkdirFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, mode_t mode)
Target mkdir() handler.
Definition: syscall_emul.cc:505
bindFunc
SyscallReturn bindFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> buf_ptr, int addrlen)
Definition: syscall_emul.cc:1161
SyscallDescTable< EmuLinux::SyscallABI64 >
rmdirFunc
SyscallReturn rmdirFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname)
Definition: syscall_emul.cc:1055
sendtoFunc
SyscallReturn sendtoFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> bufrPtr, size_t bufrLen, int flags, VPtr<> addrPtr, socklen_t addrLen)
Definition: syscall_emul.cc:1278
readlinkFunc
SyscallReturn readlinkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr<> buf_ptr, size_t bufsiz)
Target readlink() handler.
Definition: syscall_emul.cc:390
listenFunc
SyscallReturn listenFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int backlog)
Definition: syscall_emul.cc:1182
renameFunc
SyscallReturn renameFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> oldpath, VPtr<> newpath)
Target rename() handler.
Definition: syscall_emul.cc:519
mknodFunc
SyscallReturn mknodFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, mode_t mode, dev_t dev)
Target mknod() handler.
Definition: syscall_emul.cc:1013
shutdownFunc
SyscallReturn shutdownFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int how)
Target shutdown() handler.
Definition: syscall_emul.cc:1146
getpeernameFunc
SyscallReturn getpeernameFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> sockAddrPtr, VPtr<> addrlenPtr)
Definition: syscall_emul.cc:1591
getegidFunc
SyscallReturn getegidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getegid() handler.
Definition: syscall_emul.cc:968
ftruncateFunc
SyscallReturn ftruncateFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, off_t length)
Target ftruncate() handler.
Definition: syscall_emul.cc:558
umaskFunc
SyscallReturn umaskFunc(SyscallDesc *desc, ThreadContext *tc)
Target umask() handler.
Definition: syscall_emul.cc:612
X86ISA::unameFunc
SyscallReturn unameFunc(SyscallDesc *desc, ThreadContext *tc, VPtr< Linux::utsname > name)
Target uname() handler.
Definition: syscalls.cc:45
setsockoptFunc
SyscallReturn setsockoptFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int level, int optname, VPtr<> valPtr, socklen_t len)
Definition: syscall_emul.cc:1618
lseekFunc
SyscallReturn lseekFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, uint64_t offs, int whence)
Target lseek() handler.
Definition: syscall_emul.cc:284
munmapFunc
SyscallReturn munmapFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> start, size_t length)
Target munmap() handler.
Definition: syscall_emul.cc:328
exitFunc
SyscallReturn exitFunc(SyscallDesc *desc, ThreadContext *tc, int status)
Target exit() handler: terminate current context.
Definition: syscall_emul.cc:227
getpidFunc
SyscallReturn getpidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getpid() handler.
Definition: syscall_emul.cc:926
connectFunc
SyscallReturn connectFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> buf_ptr, int addrlen)
Definition: syscall_emul.cc:1197
symlinkFunc
SyscallReturn symlinkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr<> new_pathname)
Target symlink() handler.
Definition: syscall_emul.cc:484
recvfromFunc
SyscallReturn recvfromFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> bufrPtr, size_t bufrLen, int flags, VPtr<> addrPtr, VPtr<> addrlenPtr)
Definition: syscall_emul.cc:1218
setpgidFunc
SyscallReturn setpgidFunc(SyscallDesc *desc, ThreadContext *tc, int pid, int pgid)
Target setpgid() handler.
Definition: syscall_emul.cc:892
fallocateFunc
SyscallReturn fallocateFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int mode, off_t offset, off_t len)
Definition: syscall_emul.cc:975
getppidFunc
SyscallReturn getppidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getppid() handler.
Definition: syscall_emul.cc:940
exitGroupFunc
SyscallReturn exitGroupFunc(SyscallDesc *desc, ThreadContext *tc, int status)
Target exit_group() handler: terminate simulation. (exit all threads)
Definition: syscall_emul.cc:233
X86ISA
This is exposed globally, independent of the ISA.
Definition: acpi.hh:55
sendmsgFunc
SyscallReturn sendmsgFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> msgPtr, int flags)
Definition: syscall_emul.cc:1448
setTidAddressFunc
SyscallReturn setTidAddressFunc(SyscallDesc *desc, ThreadContext *tc, uint64_t tidPtr)
Target set_tid_address() handler.
Definition: syscall_emul.cc:268
pipe2Func
SyscallReturn pipe2Func(SyscallDesc *desc, ThreadContext *tc, VPtr<> tgt_addr, int flags)
Target pipe() handler.
Definition: syscall_emul.cc:800
truncateFunc
SyscallReturn truncateFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, off_t length)
Target truncate() handler.
Definition: syscall_emul.cc:541
fcntlFunc
SyscallReturn fcntlFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int cmd, GuestABI::VarArgs< int > varargs)
Target fcntl() handler.
Definition: syscall_emul.cc:717
chdirFunc
SyscallReturn chdirFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname)
Target chdir() handler.
Definition: syscall_emul.cc:1028
getsocknameFunc
SyscallReturn getsocknameFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> addrPtr, VPtr<> lenPtr)
Definition: syscall_emul.cc:1554
linkFunc
SyscallReturn linkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname, VPtr<> new_pathname)
Target link() handler.
Definition: syscall_emul.cc:463
gettidFunc
SyscallReturn gettidFunc(SyscallDesc *desc, ThreadContext *tc)
Target gettid() handler.
Definition: syscall_emul.cc:933
syscalls.hh
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:77
getuidFunc
SyscallReturn getuidFunc(SyscallDesc *desc, ThreadContext *tc)
Definition: syscall_emul.cc:947
syscall_emul.hh
unlinkFunc
SyscallReturn unlinkFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> pathname)
Target unlink() handler.
Definition: syscall_emul.cc:448
closeFunc
SyscallReturn closeFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd)
Target close() handler.
Definition: syscall_emul.cc:277
X86ISA::EmuLinux::syscallDescs64
static SyscallDescTable< SyscallABI64 > syscallDescs64
Definition: se_workload.hh:79
linux.hh
getcwdFunc
SyscallReturn getcwdFunc(SyscallDesc *desc, ThreadContext *tc, VPtr<> buf_ptr, unsigned long size)
Target getcwd() handler.
Definition: syscall_emul.cc:360
getsockoptFunc
SyscallReturn getsockoptFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, int level, int optname, VPtr<> valPtr, VPtr<> lenPtr)
Definition: syscall_emul.cc:1515
getpgrpFunc
SyscallReturn getpgrpFunc(SyscallDesc *desc, ThreadContext *tc)
Target getpgrpFunc() handler.
Definition: syscall_emul.cc:885
getgidFunc
SyscallReturn getgidFunc(SyscallDesc *desc, ThreadContext *tc)
Target getgid() handler.
Definition: syscall_emul.cc:961
X86ISA::archPrctlFunc
SyscallReturn archPrctlFunc(SyscallDesc *desc, ThreadContext *tc, int code, uint64_t addr)
Definition: syscalls.cc:59
getcpuFunc
SyscallReturn getcpuFunc(SyscallDesc *desc, ThreadContext *tc, VPtr< uint32_t > cpu, VPtr< uint32_t > node, VPtr< uint32_t > tcache)
Definition: syscall_emul.cc:1639
dup2Func
SyscallReturn dup2Func(SyscallDesc *desc, ThreadContext *tc, int old_tgt_fd, int new_tgt_fd)
Target dup2() handler.
Definition: syscall_emul.cc:689
recvmsgFunc
SyscallReturn recvmsgFunc(SyscallDesc *desc, ThreadContext *tc, int tgt_fd, VPtr<> msgPtr, int flags)
Definition: syscall_emul.cc:1310

Generated on Tue Jun 22 2021 15:28:25 for gem5 by doxygen 1.8.17