mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 07:28:38 +08:00
note:unified note filtering at runtime.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
parent
a70175ea06
commit
6ad06ba004
3 changed files with 24 additions and 3 deletions
16
Kconfig
16
Kconfig
|
@ -2504,14 +2504,18 @@ menuconfig TRACE
|
||||||
the kernel will be enabled.
|
the kernel will be enabled.
|
||||||
|
|
||||||
if TRACE
|
if TRACE
|
||||||
config TRACE_AUDIO
|
config TRACE_APP
|
||||||
bool "Enable tracepoints in audio"
|
bool "Enable tracepoints in app"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config TRACE_ARCH
|
config TRACE_ARCH
|
||||||
bool "Enable tracepoints in arch"
|
bool "Enable tracepoints in arch"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config TRACE_AUDIO
|
||||||
|
bool "Enable tracepoints in audio"
|
||||||
|
default n
|
||||||
|
|
||||||
config TRACE_BOARDS
|
config TRACE_BOARDS
|
||||||
bool "Enable tracepoints in boards"
|
bool "Enable tracepoints in boards"
|
||||||
default n
|
default n
|
||||||
|
@ -2550,10 +2554,18 @@ config TRACE_GRAPHICS
|
||||||
bool "Enable tracepoints in graphics"
|
bool "Enable tracepoints in graphics"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config TRACE_INPUT
|
||||||
|
bool "Enable tracepoints in input"
|
||||||
|
default n
|
||||||
|
|
||||||
config TRACE_LIBS
|
config TRACE_LIBS
|
||||||
bool "Enable tracepoints in libs"
|
bool "Enable tracepoints in libs"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config TRACE_MM
|
||||||
|
bool "Enable tracepoints in mm"
|
||||||
|
default n
|
||||||
|
|
||||||
config TRACE_NET
|
config TRACE_NET
|
||||||
bool "Enable tracepoints in net"
|
bool "Enable tracepoints in net"
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -293,12 +293,13 @@ enum note_tag_e
|
||||||
NOTE_TAG_APP,
|
NOTE_TAG_APP,
|
||||||
NOTE_TAG_ARCH,
|
NOTE_TAG_ARCH,
|
||||||
NOTE_TAG_AUDIO,
|
NOTE_TAG_AUDIO,
|
||||||
NOTE_TAG_BOARD,
|
NOTE_TAG_BOARDS,
|
||||||
NOTE_TAG_CRYPTO,
|
NOTE_TAG_CRYPTO,
|
||||||
NOTE_TAG_DRIVERS,
|
NOTE_TAG_DRIVERS,
|
||||||
NOTE_TAG_FS,
|
NOTE_TAG_FS,
|
||||||
NOTE_TAG_GRAPHICS,
|
NOTE_TAG_GRAPHICS,
|
||||||
NOTE_TAG_INPUT,
|
NOTE_TAG_INPUT,
|
||||||
|
NOTE_TAG_LIBS,
|
||||||
NOTE_TAG_MM,
|
NOTE_TAG_MM,
|
||||||
NOTE_TAG_NET,
|
NOTE_TAG_NET,
|
||||||
NOTE_TAG_SCHED,
|
NOTE_TAG_SCHED,
|
||||||
|
|
|
@ -105,6 +105,14 @@
|
||||||
# define graphics_trace_end()
|
# define graphics_trace_end()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_TRACE_INPUT
|
||||||
|
# define input_trace_begin() trace_begin(NOTE_TAG_INPUT)
|
||||||
|
# define input_trace_end() trace_end(NOTE_TAG_INPUT)
|
||||||
|
#else
|
||||||
|
# define input_trace_begin()
|
||||||
|
# define input_trace_end()
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_TRACE_LIBS
|
#ifdef CONFIG_TRACE_LIBS
|
||||||
# define libs_trace_begin() trace_begin(NOTE_TAG_LIBS)
|
# define libs_trace_begin() trace_begin(NOTE_TAG_LIBS)
|
||||||
# define libs_trace_end() trace_end(NOTE_TAG_LIBS)
|
# define libs_trace_end() trace_end(NOTE_TAG_LIBS)
|
||||||
|
|
Loading…
Reference in a new issue