support trace_beginex and trace_endex

Signed-off-by: YanXiaowei <yanxiaowei@xiaomi.com>
This commit is contained in:
YanXiaowei 2024-08-15 18:02:55 +08:00 committed by Xiang Xiao
parent fa8ccc0e85
commit 356ddee5b8
1 changed files with 6 additions and 0 deletions

View File

@ -36,9 +36,15 @@
#ifdef CONFIG_TRACE #ifdef CONFIG_TRACE
# define trace_begin(tag) sched_note_begin(tag) # define trace_begin(tag) sched_note_begin(tag)
# define trace_end(tag) sched_note_end(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 #else
# define trace_begin(tag) # define trace_begin(tag)
# define trace_end(tag) # define trace_end(tag)
# define trace_beginex(tag, name)
# define trace_endex(tag, name)
#endif #endif
#ifdef CONFIG_TRACE_APP #ifdef CONFIG_TRACE_APP