Sound Open Firmware
Loading...
Searching...
No Matches
trace.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2018 Intel Corporation. All rights reserved.
4 *
5 * Author: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
6 * Artur Kloniecki <arturx.kloniecki@linux.intel.com>
7 */
8
15#ifndef __USER_TRACE_H__
16#define __USER_TRACE_H__
17
18#include <stdint.h>
19
21#define TRACE_CLASS_DEPRECATED (0)
22
23#define LOG_ENABLE 1
24#define LOG_DISABLE 0
30#define LOG_LEVEL_CRITICAL 1
31#define LOG_LEVEL_ERROR LOG_LEVEL_CRITICAL
32#define LOG_LEVEL_WARNING 2
33#define LOG_LEVEL_INFO 3
34#define LOG_LEVEL_DEBUG 4
35#define LOG_LEVEL_VERBOSE LOG_LEVEL_DEBUG
39#define TRACE_ID_LENGTH 12
40
50 uint32_t uid;
51 uint32_t id_0 : TRACE_ID_LENGTH;
52 uint32_t id_1 : TRACE_ID_LENGTH;
53 uint32_t core_id : 8;
55 uint64_t timestamp;
57} __attribute__((packed));
58
59#endif /* __USER_TRACE_H__ */
#define TRACE_ID_LENGTH
Bitfield width of component and pipeline trace identifiers.
Definition trace.h:39
Binary log packet header preceding variable arguments in DMA trace stream.
Definition trace.h:49
uint32_t core_id
Reporting DSP core identifier.
Definition trace.h:53
uint32_t id_0
Primary identifier (e.g.
Definition trace.h:51
uint32_t log_entry_address
Linker address of static log entry descriptor in firmware ELF.
Definition trace.h:56
uint64_t timestamp
High-resolution hardware clock timestamp in DSP ticks.
Definition trace.h:55
uint32_t uid
Unique log entry sequence number.
Definition trace.h:50
uint32_t id_1
Secondary identifier (e.g.
Definition trace.h:52