You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "hartmannathan (via GitHub)" <gi...@apache.org> on 2023/02/16 04:30:22 UTC
[GitHub] [nuttx] hartmannathan commented on a diff in pull request #8531: Refine the drivers/note Kconfig
hartmannathan commented on code in PR #8531:
URL: https://github.com/apache/nuttx/pull/8531#discussion_r1107991809
##########
sched/Kconfig:
##########
@@ -945,6 +945,148 @@ config SCHED_CPULOAD_TIMECONSTANT
endif # SCHED_CPULOAD
+menuconfig SCHED_INSTRUMENTATION
+ bool "System performance monitor hooks"
+ default n
+ select SCHED_SUSPENDSCHEDULER
+ select SCHED_RESUMESCHEDULER
+ ---help---
+ Enables instrumentation in scheduler to monitor system performance.
+ If enabled, then the board-specific logic must provide the following
+ functions (see include/sched.h):
+
+ void sched_note_start(FAR struct tcb_s *tcb);
+ void sched_note_stop(FAR struct tcb_s *tcb);
+
+ If CONFIG_SMP is enabled, then these additional interfaces are
+ expected:
+
+ void sched_note_cpu_start(FAR struct tcb_s *tcb, int cpu);
+ void sched_note_cpu_started(FAR struct tcb_s *tcb);
+
+if SCHED_INSTRUMENTATION
+
+config SCHED_INSTRUMENTATION_CPUSET
+ hex "CPU bit set"
+ default 0xffff
+ depends on SMP && SCHED_INSTRUMENTATION_FILTER
+ ---help---
+ Monitor only CPUs in the bitset. Bit 0=CPU0, Bit1=CPU1, etc.
+
+config SCHED_INSTRUMENTATION_HIRES
+ bool "Use Hi-Res RTC for instrumentation"
+ default n
+ ---help---
+ Use higher resolution system timer for instrumentation.
+
+config SCHED_INSTRUMENTATION_FILTER
+ bool "Instrumenation filter"
Review Comment:
```suggestion
bool "Instrumentation filter"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org