YuuichiNakamura commented on a change in pull request #2142: URL: https://github.com/apache/incubator-nuttx/pull/2142#discussion_r514303289
########## File path: sched/sched/sched_note.c ########## @@ -405,6 +405,10 @@ void sched_note_start(FAR struct tcb_s *tcb) strncpy(note.nsa_name, tcb->name, CONFIG_TASK_NAME_SIZE + 1); length = SIZEOF_NOTE_START(namelen + 1); + +#ifdef CONFIG_SCHED_INSTRUMENTATION_RECORD_TASKNAME + sched_note_add_taskname(tcb->pid, tcb->name); Review comment: > 3.Task 2 create with the same pid I think we don't have a way to do this intentionally. Kernel tries to assign an unique pid for new task and it takes a long time to assign the same pid which is used in past. ---------------------------------------------------------------- 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