sched_note:Allow for external endpoints

This commit is contained in:
David Sidrane 2020-09-10 04:45:11 -07:00 committed by Xiang Xiao
parent 55b48b14eb
commit 80405e15dd
2 changed files with 8 additions and 0 deletions

View File

@ -916,6 +916,12 @@ config SCHED_INSTRUMENTATION
if SCHED_INSTRUMENTATION
config SCHED_INSTRUMENTATION_EXTENAL
bool "System performance monitor endpoints are external"
default n
---help---
Monitor only CPUs in the bitset. Bit 0=CPU0, Bit1=CPU1, etc.
config SCHED_INSTRUMENTATION_CPUSET
hex "CPU bit set"
default 0xffff

View File

@ -36,6 +36,7 @@
#include "sched/sched.h"
#if !defined(CONFIG_SCHED_INSTRUMENTATION_EXTENAL)
/****************************************************************************
* Private Types
****************************************************************************/
@ -610,3 +611,4 @@ void sched_note_irqhandler(int irq, FAR void *handler, bool enter)
note_add((FAR const uint8_t *)&note, sizeof(struct note_irqhandler_s));
}
#endif
#endif /* CONFIG_SCHED_INSTRUMENTATION_EXTENAL */