Sound Open Firmware
Loading...
Searching...
No Matches
debug_stream.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2024 Intel Corporation.
4 */
5
12#ifndef __SOC_DEBUG_STREAM_H__
13#define __SOC_DEBUG_STREAM_H__
14
16#define DEBUG_STREAM_IDENTIFIER 0x1ED15EED
17
23 uint32_t magic;
24 uint32_t hdr_size;
25} __packed;
26
32 uint32_t id;
33 uint32_t seqno;
34 uint32_t size_words;
35 uint32_t data[];
36} __packed;
37
42#define DEBUG_STREAM_RECORD_ID_UNINITIALIZED 0
43#define DEBUG_STREAM_RECORD_ID_THREAD_INFO 1
44#define DEBUG_STREAM_RECORD_ID_TEXT_MSG 2
47#endif /* __SOC_DEBUG_STREAM_H__ */
Stream preamble header recognized by host debug tools.
Definition debug_stream.h:22
uint32_t magic
Magic identifier (DEBUG_STREAM_IDENTIFIER)
Definition debug_stream.h:23
uint32_t hdr_size
Total size of stream header in bytes.
Definition debug_stream.h:24
Abstract debug record envelope carrying application-specific payloads.
Definition debug_stream.h:31
uint32_t seqno
Monotonically increasing sequence number.
Definition debug_stream.h:33
uint32_t data[]
Application-specific record payload.
Definition debug_stream.h:35
uint32_t id
Record identifier (DEBUG_STREAM_RECORD_ID_*)
Definition debug_stream.h:32
uint32_t size_words
Total size of the record including header in 32-bit words.
Definition debug_stream.h:34