Error with syscall 318 for gem5, when executing with a multi agent reinforcement learning algorithm

47 views
Skip to first unread message

gogineni kailashnath

unread,
Oct 18, 2021, 11:46:55 AM10/18/21
to gem5-...@gem5.org, gem5-g...@googlegroups.com
I'm trying to execute a python algorithm (https://github.com/shariqiqbal2810/maddpg-pytorch) on gem5 in se mode in X86. But, at first I got an error syscall 318 out of range. So, I tried to import the get random function into the syscalltlb64 source code, like this:
{ 313, "finit_module" },
{ 314, "sched_setattr" },
{ 315, "sched_getattr" },
{ 316, "renameat2" },
{ 317, "seccomp" },
{ 318, "getrandom"},
{ 319, "memfd_create" },
{ 320, "kexec_file_load" },
{ 321, "bpf" },

I'm trying to execute a python algorithm (https://github.com/shariqiqbal2810/maddpg-pytorch) on gem5 in se mode in X86. But, at first I got an error syscall 318 out of range. So, I tried to import the get random function into the syscalltlb64 source code, like this:

{ 313, "finit_module" },
{ 314, "sched_setattr" },
{ 315, "sched_getattr" },
{ 316, "renameat2" },
{ 317, "seccomp" },
{ 318, "getrandom"},
{ 319, "memfd_create" },
{ 320, "kexec_file_load" },
{ 321, "bpf" },

Again, I got an error saying syscall 318 unimplemented. So, I just did:

  { 318, "getrandom", getrandomFunc},

Again, the problem continues as I got an error saying:

    {318, "getrandom", <expression error>}, {319, "memfd_create"}, {320, "kexec_file_load"}, {321, "bpf"}}' from '<brace-enclosed initializer list>' to 'gem5::SyscallDescTable<gem5::X86ISA::EmuLinux::SyscallABI64>'
  374 | };
      | ^
      | |
      | <brace-enclosed initializer list>
scons: *** [build/X86/arch/x86/linux/syscall_tbl64.o] Error 1
scons: building terminated because of errors.
*** Summary of Warnings ***
Can anyone help me how to solve this problem? Note: My linux kernel version is 5.4.0-88-generic and I'm using ubuntu 20.04 LTS. Thanks for the help
Reply all
Reply to author
Forward
0 new messages