Sound Open Firmware
Loading...
Searching...
No Matches
trace.h File Reference
Include dependency graph for trace.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tr_ctx

Macros

#define trace_unused(class, ctx, id_1, id_2, format, ...)
#define _TRACE_INV_ID   -1
 Default value when there is no specific pipeline, dev, dai, etc.
#define _TRACE_INV_CLASS   TRACE_CLASS_DEPRECATED
 This has been replaced in commits 6ce635aa82 and earlier by the DECLARE_TR_CTX, tr_ctx and component UUID system below.
#define TRACE_CONTEXT_SECTION   __section(".trace_ctx")
#define DECLARE_TR_CTX(ctx_name, uuid, default_log_level)
 Declares trace context.
#define LOG_MODULE_REGISTER(ctx, level)
#define LOG_MODULE_DECLARE(ctx, level)

Macro Definition Documentation

◆ _TRACE_INV_CLASS

#define _TRACE_INV_CLASS   TRACE_CLASS_DEPRECATED

This has been replaced in commits 6ce635aa82 and earlier by the DECLARE_TR_CTX, tr_ctx and component UUID system below.

◆ _TRACE_INV_ID

#define _TRACE_INV_ID   -1

Default value when there is no specific pipeline, dev, dai, etc.

◆ DECLARE_TR_CTX

#define DECLARE_TR_CTX ( ctx_name,
uuid,
default_log_level )
Value:
struct tr_ctx ctx_name TRACE_CONTEXT_SECTION = { \
.uuid_p = uuid, \
.level = default_log_level, \
}
#define TRACE_CONTEXT_SECTION
Definition trace.h:143
Definition trace.h:135

Declares trace context.

Parameters
ctx_name(Symbol) name.
uuidUUID pointer, use SOF_UUID() to inititalize.
default_log_levelDefault log level.

◆ LOG_MODULE_DECLARE

#define LOG_MODULE_DECLARE ( ctx,
level )

◆ LOG_MODULE_REGISTER

#define LOG_MODULE_REGISTER ( ctx,
level )

◆ TRACE_CONTEXT_SECTION

#define TRACE_CONTEXT_SECTION   __section(".trace_ctx")

◆ trace_unused

#define trace_unused ( class,
ctx,
id_1,
id_2,
format,
... )
Value:
SOF_TRACE_UNUSED(ctx, id_1, id_2, ##__VA_ARGS__)
#define SOF_TRACE_UNUSED(arg1,...)
Definition preproc.h:20