tracing: roll thread switch in/out into thread stats functions

Since the tracing of thread being switched in/out has the same
instrumentation points, we can roll the tracing function calls
into the one for thread stats gathering functions.
This avoids duplicating code to call another function.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2020-08-27 16:12:01 -07:00 committed by Anas Nashif
commit 11e6b43090
17 changed files with 85 additions and 56 deletions

View file

@ -10,6 +10,7 @@ config TRACING
imply THREAD_NAME
imply THREAD_STACK_INFO
imply THREAD_MONITOR
select INSTRUMENT_THREAD_SWITCHING
help
Enable system tracing. This requires a backend such as SEGGER
Systemview to be enabled as well.