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, ...)    SOF_TRACE_UNUSED(ctx, id_1, id_2, ##__VA_ARGS__)
 
#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.
 

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:140
Definition trace.h:132
const struct sof_uuid_entry * uuid_p
UUID pointer, use SOF_UUID() to init.
Definition trace.h:133

Declares trace context.

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

◆ TRACE_CONTEXT_SECTION

#define TRACE_CONTEXT_SECTION   __section(".trace_ctx")

◆ trace_unused

#define trace_unused (   class,
  ctx,
  id_1,
  id_2,
  format,
  ... 
)     SOF_TRACE_UNUSED(ctx, id_1, id_2, ##__VA_ARGS__)