From 356ddee5b82afbb825db5a323b77747f87445789 Mon Sep 17 00:00:00 2001 From: YanXiaowei Date: Thu, 15 Aug 2024 18:02:55 +0800 Subject: [PATCH] support trace_beginex and trace_endex Signed-off-by: YanXiaowei --- include/nuttx/trace.h | 6 ++++++ 1 file changed, 6 insertions(+) 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