Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Intel ADSP mtrace log backend

Logging backend that writes to an Intel ADSP mtrace SRAM buffer. More...

Files

file  log_backend_adsp_mtrace.h
 Header file for the Intel ADSP mtrace log backend.

Typedefs

typedef void(* adsp_mtrace_log_hook_t) (size_t written, size_t space_left)
 mtrace logger requires a hook for IPC messages

Functions

void adsp_mtrace_log_init (adsp_mtrace_log_hook_t hook)
 Initialize the Intel ADSP mtrace logger.
const struct log_backendlog_backend_adsp_mtrace_get (void)
 Get the Intel ADSP mtrace log backend.

Detailed Description

Logging backend that writes to an Intel ADSP mtrace SRAM buffer.

Typedef Documentation

◆ adsp_mtrace_log_hook_t

typedef void(* adsp_mtrace_log_hook_t) (size_t written, size_t space_left)

#include <log_backend_adsp_mtrace.h>

mtrace logger requires a hook for IPC messages

When new log data is added to the SRAM buffer, a IPC message should be sent to the host. This hook function pointer allows for that.

Function Documentation

◆ adsp_mtrace_log_init()

void adsp_mtrace_log_init ( adsp_mtrace_log_hook_t hook)

#include <log_backend_adsp_mtrace.h>

Initialize the Intel ADSP mtrace logger.

Parameters
hookFunction is called after each write to the SRAM buffer It is up to the author of the hook to serialize if needed.

◆ log_backend_adsp_mtrace_get()

const struct log_backend * log_backend_adsp_mtrace_get ( void )

#include <log_backend_adsp_mtrace.h>

Get the Intel ADSP mtrace log backend.

Returns
Pointer to the mtrace log backend instance.