YuuichiNakamura opened a new pull request #1288: URL: https://github.com/apache/incubator-nuttx/pull/1288
## Summary This PR adds sched_note_syscall_enter/leave hooks for the system call instrumentation. Syscall wrapper library is created for the hooks. (Moved from PR #1271) ## Impact If CONFIG_SCHED_INSTRUMENTATION_SYSCALL is enabled, new library libwraps.a is built and additional linker options are passed to the final link process. All syscalls are hooked by sched_note_syscall_enter/leave, 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: us...@infra.apache.org