diff --git a/include/nuttx/trace.h b/include/nuttx/trace.h index 4f66d0c914..6e8e0b7a86 100644 --- a/include/nuttx/trace.h +++ b/include/nuttx/trace.h @@ -36,9 +36,15 @@ #ifdef CONFIG_TRACE # define trace_begin(tag) sched_note_begin(tag) # define trace_end(tag) sched_note_end(tag) + +# define trace_beginex(tag, name) sched_note_beginex(tag, name) +# define trace_endex(tag, name) sched_note_endex(tag, name) #else # define trace_begin(tag) # define trace_end(tag) + +# define trace_beginex(tag, name) +# define trace_endex(tag, name) #endif #ifdef CONFIG_TRACE_APP