diff --git a/src/arch/riscv/linux/se_workload.cc b/src/arch/riscv/linux/se_workload.cc index 2e2a7d2f2b..815b63b699 100644 --- a/src/arch/riscv/linux/se_workload.cc +++ b/src/arch/riscv/linux/se_workload.cc @@ -157,8 +157,8 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 30, "ioprio_get" }, { 31, "ioprio_set" }, { 32, "flock" }, - { 33, "mknodat" }, - { 34, "mkdirat" }, + { 33, "mknodat", mknodatFunc }, + { 34, "mkdirat", mkdiratFunc }, { 35, "unlinkat", unlinkatFunc }, { 36, "symlinkat" }, { 37, "linkat" }, @@ -173,7 +173,7 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 46, "ftruncate", ftruncate64Func }, { 47, "fallocate", fallocateFunc }, { 48, "faccessat", faccessatFunc }, - { 49, "chdir" }, + { 49, "chdir", chdirFunc }, { 50, "fchdir" }, { 51, "chroot" }, { 52, "fchmod", fchmodFunc }, @@ -183,14 +183,14 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 56, "openat", openatFunc }, { 57, "close", closeFunc }, { 58, "vhangup" }, - { 59, "pipe2" }, + { 59, "pipe2", pipe2Func }, { 60, "quotactl" }, - { 61, "getdents64" }, + { 61, "getdents64", getdents64Func }, { 62, "lseek", lseekFunc }, { 63, "read", readFunc }, { 64, "write", writeFunc }, { 66, "writev", writevFunc }, - { 67, "pread64" }, + { 67, "pread64", pread64Func }, { 68, "pwrite64", pwrite64Func }, { 69, "preadv" }, { 70, "pwritev" }, @@ -246,7 +246,7 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 120, "sched_getscheduler" }, { 121, "sched_getparam" }, { 122, "sched_setaffinity" }, - { 123, "sched_getaffinity" }, + { 123, "sched_getaffinity", schedGetaffinityFunc }, { 124, "sched_yield", ignoreWarnOnceFunc }, { 125, "sched_get_priority_max" }, { 126, "sched_get_priority_min" }, @@ -291,7 +291,7 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 165, "getrusage", getrusageFunc }, { 166, "umask", umaskFunc }, { 167, "prctl" }, - { 168, "getcpu" }, + { 168, "getcpu", getcpuFunc }, { 169, "gettimeofday", gettimeofdayFunc }, { 170, "settimeofday" }, { 171, "adjtimex" }, @@ -321,21 +321,21 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 195, "shmctl" }, { 196, "shmat" }, { 197, "shmdt" }, - { 198, "socket" }, - { 199, "socketpair" }, - { 200, "bind" }, - { 201, "listen" }, - { 202, "accept" }, - { 203, "connect" }, - { 204, "getsockname" }, - { 205, "getpeername" }, + { 198, "socket", socketFunc }, + { 199, "socketpair", socketpairFunc }, + { 200, "bind", bindFunc }, + { 201, "listen", listenFunc }, + { 202, "accept", acceptFunc }, + { 203, "connect", connectFunc }, + { 204, "getsockname", getsocknameFunc }, + { 205, "getpeername", getpeernameFunc }, { 206, "sendo" }, - { 207, "recvfrom" }, - { 208, "setsockopt" }, - { 209, "getsockopt" }, - { 210, "shutdown" }, - { 211, "sendmsg" }, - { 212, "recvmsg" }, + { 207, "recvfrom", recvfromFunc }, + { 208, "setsockopt", setsockoptFunc }, + { 209, "getsockopt", getsockoptFunc }, + { 210, "shutdown", shutdownFunc }, + { 211, "sendmsg", sendmsgFunc }, + { 212, "recvmsg", recvmsgFunc }, { 213, "readahead" }, { 214, "brk", brkFunc }, { 215, "munmap", munmapFunc }, @@ -367,7 +367,7 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 241, "perf_event_open" }, { 242, "accept4" }, { 243, "recvmmsg" }, - { 260, "wait4" }, + { 260, "wait4", wait4Func }, { 261, "prlimit64", prlimitFunc }, { 262, "fanotify_init" }, { 263, "fanotify_mark" }, @@ -396,18 +396,18 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 286, "preadv2" }, { 287, "pwritev2" }, { 1024, "open", openFunc }, - { 1025, "link" }, + { 1025, "link", linkFunc }, { 1026, "unlink", unlinkFunc }, - { 1027, "mknod" }, + { 1027, "mknod", mknodFunc }, { 1028, "chmod", chmodFunc }, { 1029, "chown", chownFunc }, { 1030, "mkdir", mkdirFunc }, - { 1031, "rmdir" }, + { 1031, "rmdir", rmdirFunc }, { 1032, "lchown" }, { 1033, "access", accessFunc }, { 1034, "rename", renameFunc }, { 1035, "readlink", readlinkFunc }, - { 1036, "symlink" }, + { 1036, "symlink", symlinkFunc }, { 1037, "utimes", utimesFunc }, { 1038, "stat", stat64Func }, { 1039, "lstat", lstat64Func }, @@ -415,7 +415,7 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 1041, "dup2", dup2Func }, { 1042, "epoll_create" }, { 1043, "inotifiy_init" }, - { 1044, "eventfd" }, + { 1044, "eventfd", eventfdFunc }, { 1045, "signalfd" }, { 1046, "sendfile" }, { 1047, "ftruncate", ftruncate64Func }, @@ -425,21 +425,21 @@ SyscallDescTable EmuLinux::syscallDescs64 = { { 1051, "fstat", fstat64Func }, { 1052, "fcntl", fcntl64Func }, { 1053, "fadvise64" }, - { 1054, "newfstatat" }, + { 1054, "newfstatat", newfstatatFunc }, { 1055, "fstatfs", fstatfsFunc }, { 1056, "statfs", statfsFunc }, { 1057, "lseek", lseekFunc }, { 1058, "mmap", mmapFunc }, { 1059, "alarm" }, - { 1060, "getpgrp" }, + { 1060, "getpgrp", getpgrpFunc }, { 1061, "pause" }, { 1062, "time", timeFunc }, { 1063, "utime" }, { 1064, "creat" }, - { 1065, "getdents" }, + { 1065, "getdents", getdentsFunc }, { 1066, "futimesat" }, - { 1067, "select" }, - { 1068, "poll" }, + { 1067, "select", selectFunc }, + { 1068, "poll", pollFunc }, { 1069, "epoll_wait" }, { 1070, "ustat" }, { 1071, "vfork" }, @@ -488,8 +488,8 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 30, "ioprio_get" }, { 31, "ioprio_set" }, { 32, "flock" }, - { 33, "mknodat" }, - { 34, "mkdirat" }, + { 33, "mknodat", mknodatFunc }, + { 34, "mkdirat", mkdiratFunc }, { 35, "unlinkat", unlinkatFunc }, { 36, "symlinkat" }, { 37, "linkat" }, @@ -504,7 +504,7 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 46, "ftruncate", ftruncateFunc }, { 47, "fallocate", fallocateFunc }, { 48, "faccessat", faccessatFunc }, - { 49, "chdir" }, + { 49, "chdir", chdirFunc }, { 50, "fchdir" }, { 51, "chroot" }, { 52, "fchmod", fchmodFunc }, @@ -514,14 +514,14 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 56, "openat", openatFunc }, { 57, "close", closeFunc }, { 58, "vhangup" }, - { 59, "pipe2" }, + { 59, "pipe2", pipe2Func }, { 60, "quotactl" }, - { 61, "getdents64" }, + { 61, "getdents64", getdents64Func }, { 62, "lseek", lseekFunc }, { 63, "read", readFunc }, { 64, "write", writeFunc }, { 66, "writev", writevFunc }, - { 67, "pread64" }, + { 67, "pread64", pread64Func }, { 68, "pwrite64", pwrite64Func }, { 69, "preadv" }, { 70, "pwritev" }, @@ -577,7 +577,7 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 120, "sched_getscheduler" }, { 121, "sched_getparam" }, { 122, "sched_setaffinity" }, - { 123, "sched_getaffinity" }, + { 123, "sched_getaffinity", schedGetaffinityFunc }, { 124, "sched_yield", ignoreWarnOnceFunc }, { 125, "sched_get_priority_max" }, { 126, "sched_get_priority_min" }, @@ -622,7 +622,7 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 165, "getrusage", getrusageFunc }, { 166, "umask", umaskFunc }, { 167, "prctl" }, - { 168, "getcpu" }, + { 168, "getcpu", getcpuFunc }, { 169, "gettimeofday", gettimeofdayFunc }, { 170, "settimeofday" }, { 171, "adjtimex" }, @@ -652,21 +652,21 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 195, "shmctl" }, { 196, "shmat" }, { 197, "shmdt" }, - { 198, "socket" }, - { 199, "socketpair" }, - { 200, "bind" }, - { 201, "listen" }, - { 202, "accept" }, - { 203, "connect" }, - { 204, "getsockname" }, - { 205, "getpeername" }, + { 198, "socket", socketFunc }, + { 199, "socketpair", socketpairFunc }, + { 200, "bind", bindFunc }, + { 201, "listen", listenFunc }, + { 202, "accept", acceptFunc }, + { 203, "connect", connectFunc }, + { 204, "getsockname", getsocknameFunc }, + { 205, "getpeername", getpeernameFunc }, { 206, "sendo" }, - { 207, "recvfrom" }, - { 208, "setsockopt" }, - { 209, "getsockopt" }, - { 210, "shutdown" }, - { 211, "sendmsg" }, - { 212, "recvmsg" }, + { 207, "recvfrom", recvfromFunc }, + { 208, "setsockopt", setsockoptFunc }, + { 209, "getsockopt", getsockoptFunc }, + { 210, "shutdown", shutdownFunc }, + { 211, "sendmsg", sendmsgFunc }, + { 212, "recvmsg", recvmsgFunc }, { 213, "readahead" }, { 214, "brk", brkFunc }, { 215, "munmap", munmapFunc }, @@ -698,7 +698,7 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 241, "perf_event_open" }, { 242, "accept4" }, { 243, "recvmmsg" }, - { 260, "wait4" }, + { 260, "wait4", wait4Func }, { 261, "prlimit64", prlimitFunc }, { 262, "fanotify_init" }, { 263, "fanotify_mark" }, @@ -727,18 +727,18 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 286, "preadv2" }, { 287, "pwritev2" }, { 1024, "open", openFunc }, - { 1025, "link" }, + { 1025, "link", linkFunc }, { 1026, "unlink", unlinkFunc }, - { 1027, "mknod" }, + { 1027, "mknod", mknodFunc }, { 1028, "chmod", chmodFunc }, { 1029, "chown", chownFunc }, { 1030, "mkdir", mkdirFunc }, - { 1031, "rmdir" }, + { 1031, "rmdir", rmdirFunc }, { 1032, "lchown" }, { 1033, "access", accessFunc }, { 1034, "rename", renameFunc }, { 1035, "readlink", readlinkFunc }, - { 1036, "symlink" }, + { 1036, "symlink", symlinkFunc }, { 1037, "utimes", utimesFunc }, { 1038, "stat", statFunc }, { 1039, "lstat", lstatFunc }, @@ -746,7 +746,7 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 1041, "dup2", dup2Func }, { 1042, "epoll_create" }, { 1043, "inotifiy_init" }, - { 1044, "eventfd" }, + { 1044, "eventfd", eventfdFunc }, { 1045, "signalfd" }, { 1046, "sendfile" }, { 1047, "ftruncate", ftruncateFunc }, @@ -756,21 +756,21 @@ SyscallDescTable EmuLinux::syscallDescs32 = { { 1051, "fstat", fstatFunc }, { 1052, "fcntl", fcntlFunc }, { 1053, "fadvise64" }, - { 1054, "newfstatat" }, + { 1054, "newfstatat", newfstatatFunc }, { 1055, "fstatfs", fstatfsFunc }, { 1056, "statfs", statfsFunc }, { 1057, "lseek", lseekFunc }, { 1058, "mmap", mmapFunc }, { 1059, "alarm" }, - { 1060, "getpgrp" }, + { 1060, "getpgrp", getpgrpFunc }, { 1061, "pause" }, { 1062, "time", timeFunc }, { 1063, "utime" }, { 1064, "creat" }, - { 1065, "getdents" }, + { 1065, "getdents", getdentsFunc }, { 1066, "futimesat" }, - { 1067, "select" }, - { 1068, "poll" }, + { 1067, "select", selectFunc }, + { 1068, "poll", pollFunc }, { 1069, "epoll_wait" }, { 1070, "ustat" }, { 1071, "vfork" },