sim: Omit built-in scheduler imstrumentation if buffered instrumentation is selected.
This commit is contained in:
parent
b1c09dc0c5
commit
8fbe5b6243
|
@ -75,8 +75,10 @@ ifeq ($(CONFIG_SMP),y)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_SCHED_INSTRUMENTATION),y)
|
ifeq ($(CONFIG_SCHED_INSTRUMENTATION),y)
|
||||||
|
ifneq ($(CONFIG_SCHED_INSTRUMENTATION_BUFFER),y)
|
||||||
CSRCS += up_schednote.c
|
CSRCS += up_schednote.c
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_DEV_CONSOLE),y)
|
ifeq ($(CONFIG_DEV_CONSOLE),y)
|
||||||
CSRCS += up_uartwait.c
|
CSRCS += up_uartwait.c
|
||||||
|
|
|
@ -42,7 +42,8 @@
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#include <nuttx/sched.h>
|
#include <nuttx/sched.h>
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION
|
#if defined(CONFIG_SCHED_INSTRUMENTATION) && \
|
||||||
|
!defined(CONFIG_SCHED_INSTRUMENTATION_BUFFER)
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
|
@ -194,4 +195,4 @@ void sched_note_csection(FAR struct tcb_s *tcb, bool enter)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_SCHED_INSTRUMENTATION */
|
#endif /* CONFIG_SCHED_INSTRUMENTATION && !CONFIG_SCHED_INSTRUMENTATION_BUFFER */
|
||||||
|
|
Loading…
Reference in New Issue