This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 1faeba3f2d sched_note: add SCHED_NOTE_BEGIN/ENDEX interface
1faeba3f2d is described below

commit 1faeba3f2d20ff224f1fbe3ff8c0d2ea578efc5a
Author: yinshengkai <[email protected]>
AuthorDate: Tue Feb 7 15:12:17 2023 +0800

    sched_note: add SCHED_NOTE_BEGIN/ENDEX interface
    
    Signed-off-by: yinshengkai <[email protected]>
---
 include/nuttx/sched_note.h | 4 ++++
 1 file changed, 4 insertions(+)

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() \

Reply via email to