17#ifndef __IPC_TRACE_H__
18#define __IPC_TRACE_H__
28#define SOF_TRACE_FILENAME_SIZE 32
36} __attribute__((packed, aligned(4)));
45} __attribute__((packed, aligned(4)));
53} __attribute__((packed, aligned(4)));
58#define SOF_IPC_TRACE_FILTER_ELEM_SET_LEVEL 0x01
59#define SOF_IPC_TRACE_FILTER_ELEM_BY_UUID 0x02
60#define SOF_IPC_TRACE_FILTER_ELEM_BY_COMP 0x03
61#define SOF_IPC_TRACE_FILTER_ELEM_BY_PIPE 0x04
62#define SOF_IPC_TRACE_FILTER_ELEM_TYPE_MASK 0x7F
65#define SOF_IPC_TRACE_FILTER_ELEM_FIN 0x80
73} __attribute__((packed, aligned(4)));
82} __attribute__((packed, aligned(4)));
91#define SOF_IPC_PANIC_MAGIC 0x0dead000
92#define SOF_IPC_PANIC_MAGIC_MASK 0x0ffff000
93#define SOF_IPC_PANIC_CODE_MASK 0x00000fff
95#define SOF_IPC_PANIC_MEM (SOF_IPC_PANIC_MAGIC | 0x0)
96#define SOF_IPC_PANIC_WORK (SOF_IPC_PANIC_MAGIC | 0x1)
97#define SOF_IPC_PANIC_IPC (SOF_IPC_PANIC_MAGIC | 0x2)
98#define SOF_IPC_PANIC_ARCH (SOF_IPC_PANIC_MAGIC | 0x3)
99#define SOF_IPC_PANIC_PLATFORM (SOF_IPC_PANIC_MAGIC | 0x4)
100#define SOF_IPC_PANIC_TASK (SOF_IPC_PANIC_MAGIC | 0x5)
101#define SOF_IPC_PANIC_EXCEPTION (SOF_IPC_PANIC_MAGIC | 0x6)
102#define SOF_IPC_PANIC_DEADLOCK (SOF_IPC_PANIC_MAGIC | 0x7)
103#define SOF_IPC_PANIC_STACK (SOF_IPC_PANIC_MAGIC | 0x8)
104#define SOF_IPC_PANIC_IDLE (SOF_IPC_PANIC_MAGIC | 0x9)
105#define SOF_IPC_PANIC_WFI (SOF_IPC_PANIC_MAGIC | 0xa)
106#define SOF_IPC_PANIC_ASSERT (SOF_IPC_PANIC_MAGIC | 0xb)
116} __attribute__((packed, aligned(4)));
IPC definitions for streams.
#define SOF_TRACE_FILENAME_SIZE
Definition trace.h:28
Command Header - Header for all IPC commands.
Definition header.h:357
uint32_t reserved[8]
Definition trace.h:44
uint32_t stream_tag
Definition trace.h:42
struct sof_ipc_host_buffer buffer
Definition trace.h:41
uint64_t timestamp_ns
Definition trace.h:43
struct sof_ipc_cmd_hdr hdr
Definition trace.h:40
uint32_t stream_tag
Definition trace.h:35
struct sof_ipc_host_buffer buffer
Definition trace.h:34
struct sof_ipc_cmd_hdr hdr
Definition trace.h:33
struct sof_ipc_reply rhdr
Definition trace.h:49
uint32_t overflow
Definition trace.h:51
uint32_t host_offset
Definition trace.h:50
uint32_t messages
Definition trace.h:52
Structure Header - Header for all IPC structures except command structs.
Definition header.h:347
uint32_t code
Definition trace.h:113
uint32_t linenum
Definition trace.h:115
struct sof_ipc_hdr hdr
Definition trace.h:112
char filename[SOF_TRACE_FILENAME_SIZE]
Definition trace.h:114
Generic reply message.
Definition header.h:366
part of sof_ipc_trace_filter, ABI3.17
Definition trace.h:70
int32_t value
element value
Definition trace.h:72
int32_t key
SOF_IPC_TRACE_FILTER_ELEM_ {LEVEL, UUID, COMP, PIPE}.
Definition trace.h:71
Runtime tracing filtration data - SOF_IPC_TRACE_FILTER_UPDATE, ABI3.17.
Definition trace.h:76
struct sof_ipc_trace_filter_elem elems[]
variable size array with new filtering settings
Definition trace.h:81
struct sof_ipc_cmd_hdr hdr
IPC command header.
Definition trace.h:77
uint32_t elem_cnt
number of entries in elems[] array
Definition trace.h:78
uint32_t reserved[8]
reserved for future usage
Definition trace.h:79