diff --git a/include/nuttx/sched_note.h b/include/nuttx/sched_note.h index 13de1962cf..7a79e54423 100644 --- a/include/nuttx/sched_note.h +++ b/include/nuttx/sched_note.h @@ -125,6 +125,10 @@ sched_note_printf(SCHED_NOTE_IP, fmt, ##__VA_ARGS__) # define SCHED_NOTE_BPRINTF(event, fmt, ...) \ sched_note_bprintf(SCHED_NOTE_IP, event, fmt, ##__VA_ARGS__) +# define SCHED_NOTE_BEGINEX(str) \ + sched_note_printf(SCHED_NOTE_IP, "B|%d|%s", gettid(), str) +# define SCHED_NOTE_ENDEX(str) \ + sched_note_printf(SCHED_NOTE_IP, "E|%d|%s", gettid(), str) # define SCHED_NOTE_BEGIN() \ sched_note_begin(SCHED_NOTE_IP) # define SCHED_NOTE_END() \