xiaoxiang781216 commented on a change in pull request #2142: URL: https://github.com/apache/incubator-nuttx/pull/2142#discussion_r514788850
########## 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: If so, we don't need add the new API between sched and note driver: 1. Save the task name in NOTE_START 2. Remove the task name when user read the NOTE_STOP from buffer ---------------------------------------------------------------- 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