Add note filter functions

This commit is contained in:
Nakamura, Yuuichi
2020-07-23 22:18:03 +09:00
committed by Xiang Xiao
parent 32b0562375
commit 6b54377476
3 changed files with 515 additions and 113 deletions
+11 -1
View File
@@ -934,7 +934,7 @@ config SCHED_INSTRUMENTATION_EXTERNAL
config SCHED_INSTRUMENTATION_CPUSET
hex "CPU bit set"
default 0xffff
depends on SMP
depends on SMP && SCHED_INSTRUMENTATION_FILTER
---help---
Monitor only CPUs in the bitset. Bit 0=CPU0, Bit1=CPU1, etc.
@@ -990,6 +990,16 @@ config SCHED_INSTRUMENTATION_IRQHANDLER
void sched_note_irqhandler(int irq, FAR void *handler, bool enter);
config SCHED_INSTRUMENTATION_FILTER
bool "Instrumenation filter"
default n
---help---
Enables the filter logic for the instrumentation. If this option
is enabled, the instrumentation data passed to sched_note_add()
can be filtered by syscall and IRQ number.
The filter logic can be configured by sched_note_filter APIs defined in
include/nuttx/sched_note.h.
endif # SCHED_INSTRUMENTATION
endmenu # Performance Monitoring