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 2020/09/10 14:06:42 UTC

[incubator-nuttx] branch master updated: sched_note:Allow for external endpoints

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


The following commit(s) were added to refs/heads/master by this push:
     new 80405e1  sched_note:Allow for external endpoints
80405e1 is described below

commit 80405e15dd2eda1cf33633d35442f2acd82dd7f2
Author: David Sidrane <Da...@NscDg.com>
AuthorDate: Thu Sep 10 04:45:11 2020 -0700

    sched_note:Allow for external endpoints
---
 sched/Kconfig            | 6 ++++++
 sched/sched/sched_note.c | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/sched/Kconfig b/sched/Kconfig
index 3e01b93..4d63801 100644
--- a/sched/Kconfig
+++ b/sched/Kconfig
@@ -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
diff --git a/sched/sched/sched_note.c b/sched/sched/sched_note.c
index 8b20d5b..d6839f1 100644
--- a/sched/sched/sched_note.c
+++ b/sched/sched/sched_note.c
@@ -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 */