tracing: Add user-definable tracing interface
Create a new tracing option TRACING_USER that allows the user to define certain user_sys_trace_... functions to perform whatever work desired for tracing when tasks are swiched in/out, during isr enter/exit, and when cpu is idle. This infrastructure can be useful for plugging into locally defined tracing tools or any user-specific debugging environment. Signed-off-by: Nicholas Lowell <nlowell@lexmark.com>
This commit is contained in:
parent
27ac1cb012
commit
cc8ab95760
7 changed files with 406 additions and 1 deletions
|
@ -60,6 +60,11 @@ config TRACING_TEST
|
|||
Enable tracing for testing kinds of format purpose. It must
|
||||
implement the tracing hooks defined in tracing_test.h
|
||||
|
||||
config TRACING_USER
|
||||
bool "Tracing using user-defined functions"
|
||||
help
|
||||
Use user-defined functions for tracing task switching and irqs
|
||||
|
||||
endchoice
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue