44a45
> #include "debug/SyscallBase.hh"
58c59
< if (DTRACE(SyscallVerbose)) {
---
> if (DTRACE(SyscallBase)) {
60c61
< IntReg arg[4] M5_VAR_USED;
---
> IntReg arg[6] M5_VAR_USED;
64c65
< for (int i = 0; i < 4; ++i)
---
> for (int i = 0; i < 6; ++i)
67,69c68,74
< DPRINTFNR("%d: %s: syscall %s called w/arguments %d,%d,%d,%d\n",
< curTick(), tc->getCpuPtr()->name(), name,
< arg[0], arg[1], arg[2], arg[3]);
---
> // Linux supports up to six system call arguments through registers
> // so we want to print all six. Check to the relevant man page to
> // verify how many are actually used by a given system call.
> DPRINTF_SYSCALL(Base,
> "%s called w/arguments %d, %d, %d, %d, %d, %d\n",
> name, arg[0], arg[1], arg[2], arg[3], arg[4],
> arg[5]);
75,76c80
< DPRINTFS(SyscallVerbose, tc->getCpuPtr(), "syscall %s needs retry\n",
< name);
---
> DPRINTF_SYSCALL(Base, "%s needs retry\n", name);
78,79c82,83
< DPRINTFS(SyscallVerbose, tc->getCpuPtr(), "syscall %s returns %d\n",
< name, retval.encodedValue());
---
> DPRINTF_SYSCALL(Base, "%s returns %d\n", name,
> retval.encodedValue());
204c208,209
< DPRINTF(SyscallVerbose, "Break Point changed to: %#X\n", p->brk_point);
---
> DPRINTF_SYSCALL(Verbose, "brk: break point changed to: %#X\n",
> p->brk_point);