zephyr/samples/subsys/tracing
Anas Nashif aead5b523b sample: tracing: add a configuration for percepio
Add a sample configuration for percepio.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-11-04 10:00:48 +01:00
..
boards samples: tracing: make example in readme work 2022-07-29 05:57:54 -04:00
src includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
CMakeLists.txt
prj_native_posix_ctf.conf
prj_native_posix.conf
prj_percepio.conf sample: tracing: add a configuration for percepio 2022-11-04 10:00:48 +01:00
prj_sysview.conf
prj_uart_ctf.conf tracing: Move to DTS for uart device 2022-07-19 16:00:47 -07:00
prj_uart.conf tracing: Move to DTS for uart device 2022-07-19 16:00:47 -07:00
prj_usb_ctf.conf
prj_usb.conf
prj_user.conf
prj.conf samples: move to using CONFIG_MP_MAX_NUM_CPUS=1 2022-10-20 22:04:10 +09:00
README.txt samples: tracing: make example in readme work 2022-07-29 05:57:54 -04:00
sample.yaml sample: tracing: add a configuration for percepio 2022-11-04 10:00:48 +01:00

Title: Send Tracing Formatted Packet To The Host With Supported Backends

Description:

This application can be used to demonstrate the tracing feature. The tracing
formatted packet will be sent to the host with the currently supported tracing
backend under tracing generic infrastructure.

--------------------------------------------------------------------------------

Usage for UART Tracing Backend:

Build a UART-tracing image with:

    cmake -DBOARD=mps2_an521 -DCONF_FILE=prj_uart.conf ..

or:

    cmake -DBOARD=mps2_an521 -DCONF_FILE=prj_uart_ctf.conf ..

NOTE: You may need to set 'zephyr,tracing-uart' property under the chosen
node in your devicetree.  See boards/mps2_an521.overlay for an example.

After the application has run for a while, check the trace output file.

--------------------------------------------------------------------------------

Usage for USB Tracing Backend

Build a USB-tracing image with:

    cmake -DBOARD=sam_e70_xplained -DCONF_FILE=prj_usb.conf ..

or:

    cmake -DBOARD=sam_e70_xplained -DCONF_FILE=prj_usb_ctf.conf ..

After the serial console has stable output like this:

    threadA: Hello World!
    threadB: Hello World!
    threadA: Hello World!
    threadB: Hello World!

connect the board's USB port to the host device and
run the trace_capture_usb.py script on the host:

    sudo python3 trace_capture_usb.py -v 0x2FE9 -p 0x100 -o channel0_0

The VID and PID of USB device can be configured, just adjusting it accordingly.

--------------------------------------------------------------------------------

Usage for POSIX Tracing Backend

Build a POSIX-tracing image with:

    cmake -DBOARD=native_posix -DCONF_FILE=prj_native_posix.conf ..

or:

    cmake -DBOARD=native_posix -DCONF_FILE=prj_native_posix_ctf.conf ..

After the application has run for a while, check the trace output file.