Zephyr Project Requirements
Tracing

Tracing

UID:
VERSION:
CLASSIFICATION:
PREFIX:
ZEP-SRS-10-
Type
Level
UID
STATUS
TYPE
COMPONENT
REFS
Title
Statement
USER_STORY
TEXT

SPDX-License-Identifier: Apache-2.0

REQUIREMENT
1
ZEP-SRS-10-1
Draft
Functional
Tracing
ZEP-SRS-10-1
Initializing a trace

Zephyr shall provide an interface to initialize a trace.

REQUIREMENT
2
ZEP-SRS-10-2
Draft
Functional
Tracing
ZEP-SRS-10-2
Triggering a trace

Zephyr shall provide an interface to trigger a trace.

REQUIREMENT
3
ZEP-SRS-10-3
Draft
Functional
Tracing
ZEP-SRS-10-3
Dumping trace results

Zephyr shall provide an interface to dump results from a trace.

REQUIREMENT
4
ZEP-SRS-10-4
Draft
Functional
Tracing
ZEP-SRS-10-4
Removing trace data

Zephyr shall provide an interface to remove trace data.

REQUIREMENT
5
ZEP-SRS-10-5
Draft
Functional
Tracing
ZEP-SRS-10-5
Tracing Object Identification

Zephyr shall provide an interface to identify the objects being traced.

As a Zephyr OS user, I want to be able to give each object which I create a name / label in order to be able to identify them in a trace log.

REQUIREMENT
6
ZEP-SRS-10-6
Draft
Functional
Tracing
ZEP-SRS-10-6
Tracing Non-Interference

Zephyr shall prevent the tracing functionality from interfering with normal operations.

As a Zephyr OS user, I want that the trace functionality do not interfere or slow down the operation system functionality.

REQUIREMENT
7
ZEP-SRS-10-7
Draft
Functional
Tracing
ZEP-SRS-10-7
Tracing kernel events

The Zephyr RTOS shall support tracing of kernel events in each of the following categories: thread lifecycle and scheduling including context switches, interrupt entry and exit, system call entry and exit, operations on kernel synchronization and data passing objects, work queue operations, memory allocator operations, timers, and polling.

REQUIREMENT
8
ZEP-SRS-10-8
Draft
Functional
Tracing
ZEP-SRS-10-8
Configurable tracing

The Zephyr RTOS shall allow tracing to be enabled or disabled through configuration, at build time.

REQUIREMENT
9
ZEP-SRS-10-9
Draft
Functional
Tracing
ZEP-SRS-10-9
Tracing backends

The Zephyr RTOS shall emit trace data through a tracing backend selected at build time from the available backends.

REQUIREMENT
10
ZEP-SRS-10-10
Draft
Functional
Tracing
ZEP-SRS-10-10
Trace data emission modes

The Zephyr RTOS shall support emitting trace data synchronously and through a buffered mode.

REQUIREMENT
11
ZEP-SRS-10-11
Draft
Functional
Tracing
ZEP-SRS-10-11
Per-category trace configuration

The Zephyr RTOS shall allow tracing to be enabled or disabled for each kernel event category individually through configuration, at build time.