Skip to content

Commit 6ad06ba

Browse files
cuiziweizwxiaoxiang781216
authored andcommitted
note:unified note filtering at runtime.
Signed-off-by: cuiziwei <[email protected]>
1 parent a70175e commit 6ad06ba

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

Kconfig

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2504,14 +2504,18 @@ menuconfig TRACE
25042504
the kernel will be enabled.
25052505

25062506
if TRACE
2507-
config TRACE_AUDIO
2508-
bool "Enable tracepoints in audio"
2507+
config TRACE_APP
2508+
bool "Enable tracepoints in app"
25092509
default n
25102510

25112511
config TRACE_ARCH
25122512
bool "Enable tracepoints in arch"
25132513
default n
25142514

2515+
config TRACE_AUDIO
2516+
bool "Enable tracepoints in audio"
2517+
default n
2518+
25152519
config TRACE_BOARDS
25162520
bool "Enable tracepoints in boards"
25172521
default n
@@ -2550,10 +2554,18 @@ config TRACE_GRAPHICS
25502554
bool "Enable tracepoints in graphics"
25512555
default n
25522556

2557+
config TRACE_INPUT
2558+
bool "Enable tracepoints in input"
2559+
default n
2560+
25532561
config TRACE_LIBS
25542562
bool "Enable tracepoints in libs"
25552563
default n
25562564

2565+
config TRACE_MM
2566+
bool "Enable tracepoints in mm"
2567+
default n
2568+
25572569
config TRACE_NET
25582570
bool "Enable tracepoints in net"
25592571
default n

include/nuttx/sched_note.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,13 @@ enum note_tag_e
293293
NOTE_TAG_APP,
294294
NOTE_TAG_ARCH,
295295
NOTE_TAG_AUDIO,
296-
NOTE_TAG_BOARD,
296+
NOTE_TAG_BOARDS,
297297
NOTE_TAG_CRYPTO,
298298
NOTE_TAG_DRIVERS,
299299
NOTE_TAG_FS,
300300
NOTE_TAG_GRAPHICS,
301301
NOTE_TAG_INPUT,
302+
NOTE_TAG_LIBS,
302303
NOTE_TAG_MM,
303304
NOTE_TAG_NET,
304305
NOTE_TAG_SCHED,

include/nuttx/trace.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@
105105
# define graphics_trace_end()
106106
#endif
107107

108+
#ifdef CONFIG_TRACE_INPUT
109+
# define input_trace_begin() trace_begin(NOTE_TAG_INPUT)
110+
# define input_trace_end() trace_end(NOTE_TAG_INPUT)
111+
#else
112+
# define input_trace_begin()
113+
# define input_trace_end()
114+
#endif
115+
108116
#ifdef CONFIG_TRACE_LIBS
109117
# define libs_trace_begin() trace_begin(NOTE_TAG_LIBS)
110118
# define libs_trace_end() trace_end(NOTE_TAG_LIBS)

0 commit comments

Comments
 (0)