zephyr/samples/subsys/tracing
Evgeniy Paltsev 2677e55b92 tests: fix tracing.osawareness.openocd for SMP platforms
The tracing.osawareness.openocd doesn't support executing
on multicore Zephyr. However we disable multiple CPUs
usage in two different ways for this test:
 - by setting CONFIG_MP_NUM_CPUS to 1
 - by setting CONFIG_SMP to n

It's not correct for all SMP platforms to disable SMP. As
it is also excessive (we can guarantee the execution on
single core by setting CONFIG_MP_NUM_CPUS=1) let's drop
SMP disabling.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
2021-10-13 06:22:44 -04:00
..
src samples: tracing: Add a sample for tracing_user 2021-09-02 06:54:35 -04:00
CMakeLists.txt samples: tracing: Add a sample for tracing_user 2021-09-02 06:54:35 -04:00
prj.conf samples: move tracing sample from tests/ 2020-04-29 22:30:19 -04:00
prj_native_posix.conf samples: move tracing sample from tests/ 2020-04-29 22:30:19 -04:00
prj_native_posix_ctf.conf samples: move tracing sample from tests/ 2020-04-29 22:30:19 -04:00
prj_sysview.conf samples: tracing: Extract SystemView configuration into separate file 2020-11-20 12:54:09 -06:00
prj_uart.conf samples: move tracing sample from tests/ 2020-04-29 22:30:19 -04:00
prj_uart_ctf.conf samples: move tracing sample from tests/ 2020-04-29 22:30:19 -04:00
prj_usb.conf samples: remove USB configuration option 2021-08-03 19:00:12 -04:00
prj_usb_ctf.conf samples: remove USB configuration option 2021-08-03 19:00:12 -04:00
prj_user.conf samples: tracing: Add a sample for tracing_user 2021-09-02 06:54:35 -04:00
README.txt samples: move tracing sample from tests/ 2020-04-29 22:30:19 -04:00
sample.yaml tests: fix tracing.osawareness.openocd for SMP platforms 2021-10-13 06:22:44 -04:00

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

Description:

This application can be used to demonstrate the tracing feature. The tracing
formated 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 ..

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.