title: Recording system calls with arguments using perf
body: <p>I want to record all of the system calls which are being called on a system. I know I can do this using various tracing tools but I want to do it using perf.</p>
  
  <p>I have recorded syscalls using:</p>
  
  <blockquote>
    <p>perf record -e 'syscalls:sys_*' -a</p>
  </blockquote>
  
  <p>I have looked at the output using both <code>perf record</code> and <code>perf script</code> but I am unable to interpret the output. I need the list of system calls along with their arguments being passed to them. Something like this:</p>
  
  <ul>
  <li>(syscall, arg1, arg2, ..)</li>
  <li>(syscall, arg1, arg2, ..)</li>
  <li>and so on</li>
  </ul>
  
  <p>Can anyone help me get the desired output using perf?</p>