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


   ## Summary
   
   This PR adds sched_note_syscall_enter/leave hooks for the system call 
instrumentation.
   In FLAT build, syscall wrapper library is created.
   In PROTECTED/KERNEL build, insert the hooks in system call proxy library.
   
   ## Impact
   
   It should be no impact by default configuration.
   To use the feature, CONFIG_SCHED_INSTRUMENTATION_SYSCALL must be enabled.
   At this moment, only Arm and RISC-V can enable it.
   
   ## Testing
   
   Tested by spresense:nsh and maix-bit:nsh  by changing the following 
configurations.
   CONFIG_DRIVER_NOTE=y
   CONFIG_SCHED_INSTRUMENTATION=y
   CONFIG_SCHED_INSTRUMENTATION_BUFFER=y
   CONFIG_SCHED_INSTRUMENTATION_SYSCALL=y
   CONFIG_SCHED_NOTE_GET=y
   CONFIG_SYSTEM_NOTE=y
   "note" command displays the system call information.
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to