You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/04/07 18:41:34 UTC

[incubator-nuttx] 01/02: sched/note: add dummy definition if CONFIG_SCHED_INSTRUMENTATION disabled

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/incubator-nuttx.git

commit ef89f3f15a2f2ff3926828ec14a6a76a435c7fad
Author: chao.an <an...@xiaomi.com>
AuthorDate: Sat Apr 2 21:43:40 2022 +0800

    sched/note: add dummy definition if CONFIG_SCHED_INSTRUMENTATION disabled
    
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 include/nuttx/sched_note.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/nuttx/sched_note.h b/include/nuttx/sched_note.h
index 9e9d1b8f82..e98e2b4ee8 100644
--- a/include/nuttx/sched_note.h
+++ b/include/nuttx/sched_note.h
@@ -660,6 +660,15 @@ void sched_note_filter_irq(struct note_filter_irq_s *oldf,
 
 #else /* CONFIG_SCHED_INSTRUMENTATION */
 
+#  define SCHED_NOTE_STRING(buf)
+#  define SCHED_NOTE_DUMP(event, buf, len)
+#  define SCHED_NOTE_VPRINTF(fmt, va)
+#  define SCHED_NOTE_VBPRINTF(event, fmt, va)
+#  define SCHED_NOTE_PRINTF(fmt, args...)
+#  define SCHED_NOTE_BPRINTF(event, fmt, args...)
+#  define SCHED_NOTE_BEGIN()
+#  define SCHED_NOTE_END()
+
 #  define sched_note_start(t)
 #  define sched_note_stop(t)
 #  define sched_note_suspend(t)