The latest development version of this page may be more current than this released 1.14.1 version.

Tracing

Overview

The tracing feature provides hooks that permits you to collect data from your application and allows enabled backends to visualize the inner-working of the kernel and various subsystems.

Applications and supported tools can define empty macros declared in include/tracing.h that are called across the kernel in key spots.

SEGGER SystemView Support

Zephyr provides built-in support for SEGGER SystemView that can be enabled in any application for platforms that have the required hardware support.

To enable tracing support with SEGGER SystemView add the configuration option CONFIG_SEGGER_SYSTEMVIEW to your project configuration file and set it to y. For example, this can be added to the Dining Philosophers to visualize fast switching between threads.

Common Trace Format (CTF) Support

Documentation on CTF support can be found in the following subsection: