YuuichiNakamura commented on a change in pull request #1377:
URL: https://github.com/apache/incubator-nuttx/pull/1377#discussion_r495022623



##########
File path: include/nuttx/sched.h
##########
@@ -748,6 +748,10 @@ struct tcb_s
 #if CONFIG_TASK_NAME_SIZE > 0
   char name[CONFIG_TASK_NAME_SIZE + 1];  /* Task name (with NUL terminator)    
 */
 #endif
+
+#ifdef CONFIG_SCHED_INSTRUMENTATION_SYSCALL
+  int syscall_nest;                      /* Syscall nest level */

Review comment:
       Unfortunately tcb->xcpt.nsyscalls is not fit for my expectation.
   It can be used only in PROTECTED and KERNEL build and it counts the nesting 
level of user mode -> kernel mode transition.
   Because my sched_note_syscall_enter/leave implementation hooks the function 
call in the kernel space directly, the required count is the nesting level of 
syscall function calls and it also needs in FLAT build too.
   ("syscall function" means the kernel APIs listed in syscall/syscall.csv)
   
   
   




----------------------------------------------------------------
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