mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Add note filter functions
This commit is contained in:
committed by
Xiang Xiao
parent
32b0562375
commit
6b54377476
+11
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user