YuuichiNakamura opened a new pull request #2044:
URL: https://github.com/apache/incubator-nuttx/pull/2044


   ## Summary
   Add the option for syscall instrumentation to save arguments passed to 
syscalls 
   
   ## Impact
   - `struct note_syscall_enter_s` will be changed to keep argc and args.
   - `trace mode +a` command will be added to enable the feature
   
   ## Testing
   spesense:smp
   When the feature is enabled, `trace dump` can show what arguments are passed 
to syscalls as follows:
   ```
      trace-7   [0]   8.060000000: sys_open(arg0: 0xd01aa54, arg1: 0x0, arg2: 
0x1)
      trace-7   [0]   8.060000000: sys_open -> 0x3
      trace-7   [0]   8.060000000: sys_nxsched_get_streams()
      trace-7   [0]   8.060000000: sys_nxsched_get_streams -> 0xd02bfcc
      trace-7   [0]   8.060000000: sys_ioctl(arg0: 0x3, arg1: 0x2c01, arg2: 
0xd02c888)
      trace-7   [0]   8.060000000: sys_ioctl -> 0x0
      trace-7   [0]   8.060000000: sys_ioctl(arg0: 0x3, arg1: 0x2c02, arg2: 
0xd02c888)
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to