Commit a488946d authored by Leandro Pereira's avatar Leandro Pereira Committed by Anas Nashif
Browse files

debug: Add SEGGER SystemView libraries

These libraries allow publishing information to enable system profiling
when using the SEGGER SystemView tool.  This tool provides a way to record
and visualize events such as threads scheduling, interrupts, and can help
find unintended interactions and resource conflicts.  More information can
be obtained from SEGGER website at [1], including downloads for major
platforms.

[1] https://www.segger.com/systemview.html?p=1731

Jira: ZEP-1463
Origin: https://www.segger.com/systemview.html?p=1731


Change-Id: I04f5897690089dc8a8fb4ae60726fe3a022b7a30
Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent b17bd667
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
obj-$(CONFIG_HAS_SEGGER_RTT) += rtt/SEGGER_RTT.o
obj-$(CONFIG_HAS_SEGGER_SYSTEMVIEW) += systemview/SEGGER_SYSVIEW.o
+6 −0
Original line number Diff line number Diff line
@@ -8,3 +8,9 @@ config HAS_SEGGER_RTT
	bool
	prompt "Segger RTT support"
	default n

config HAS_SEGGER_SYSTEMVIEW
	bool
	prompt "Segger SystemView support"
	default n
	select HAS_SEGGER_RTT
+3 −0
Original line number Diff line number Diff line
@@ -2,3 +2,6 @@ ifdef CONFIG_HAS_SEGGER_RTT
ZEPHYRINCLUDE += -I$(srctree)/ext/debug/segger
endif

ifdef CONFIG_HAS_SEGGER_SYSTEMVIEW
ZEPHYRINCLUDE += -I$(srctree)/ext/debug/segger
endif

systemview/Global.h

0 → 100644
+15 −0
Original line number Diff line number Diff line
#ifndef Global_h__
#define Global_h__

#include <stdint.h>

typedef uint8_t U8;
typedef uint16_t U16;
typedef uint32_t U32;
typedef uint64_t U64;
typedef int8_t I8;
typedef int16_t I16;
typedef int32_t I32;
typedef int64_t I64;

#endif /* Global_h__ */

systemview/README.rst

0 → 100644
+17 −0
Original line number Diff line number Diff line
.. _segger-systemview:

SEGGER SystemView
#################

This is a free-to-use tool that records and visualizes events such as thread
scheduling and interrupts, and is helpful to find unintended interactions
and resource conflicts on complex systems.  The tool is available for the
major development platforms, and requires hardware support.  Please consult
the `product web page <https://www.segger.com/systemview.html?p=1731>` for
more information.

Source code in this package has been obtained from the product web page
and are modified only to conform to Unix line-ending conventions and adjust
include paths.

Loading