anchao commented on code in PR #12641:
URL: https://github.com/apache/nuttx/pull/12641#discussion_r1668160743


##########
sched/init/nx_start.c:
##########
@@ -520,6 +520,8 @@ void nx_start(void)
 
   /* Initialize RTOS Data ***************************************************/
 
+  drivers_early_initialize();

Review Comment:
   Are you sure you have run the current trace function? There is a potential 
issue here
   
   ```
   nx_start
   |
    ->sched_trace_begin
      |
       ->trace_begin
         |
          ->sched_note_begin
            |
             ->sched_note_event
               |
                ->sched_note_event_ip
                  |
                   ->this_task()
   ```
                   
   this_task will be NULL and unable to record the tcb pid, cpu, and priority 
correctly. how abort move `sched_trace_begin() ` after idle initialization?
   



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to