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
49
struct
log_entry_header
{
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
;
56
uint32_t
log_entry_address
;
57
} __attribute__((packed));
58
59
#endif
/* __USER_TRACE_H__ */
TRACE_ID_LENGTH
#define TRACE_ID_LENGTH
Bitfield width of component and pipeline trace identifiers.
Definition
trace.h:39
log_entry_header
Binary log packet header preceding variable arguments in DMA trace stream.
Definition
trace.h:49
log_entry_header::core_id
uint32_t core_id
Reporting DSP core identifier.
Definition
trace.h:53
log_entry_header::id_0
uint32_t id_0
Primary identifier (e.g.
Definition
trace.h:51
log_entry_header::log_entry_address
uint32_t log_entry_address
Linker address of static log entry descriptor in firmware ELF.
Definition
trace.h:56
log_entry_header::timestamp
uint64_t timestamp
High-resolution hardware clock timestamp in DSP ticks.
Definition
trace.h:55
log_entry_header::uid
uint32_t uid
Unique log entry sequence number.
Definition
trace.h:50
log_entry_header::id_1
uint32_t id_1
Secondary identifier (e.g.
Definition
trace.h:52
src
include
user
trace.h
Generated by
1.9.8