Lines Matching full:backend
19 * @brief Tracing backend
20 * @defgroup Tracing_backend Tracing backend
28 * @brief Tracing backend API.
32 void (*output)(const struct tracing_backend *backend,
37 * @brief Tracing backend structure.
48 * @param _api Tracing backend API.
57 * @brief Initialize tracing backend.
59 * @param backend Pointer to tracing_backend instance.
62 const struct tracing_backend *backend) in tracing_backend_init() argument
64 if (backend && backend->api && backend->api->init) { in tracing_backend_init()
65 backend->api->init(); in tracing_backend_init()
70 * @brief Output tracing packet with tracing backend.
72 * @param backend Pointer to tracing_backend instance.
77 const struct tracing_backend *backend, in tracing_backend_output() argument
80 if (backend && backend->api) { in tracing_backend_output()
81 backend->api->output(backend, data, length); in tracing_backend_output()
86 * @brief Get tracing backend based on the name of
87 * tracing backend in tracing backend section.
89 * @param name Name of wanted tracing backend.
91 * @return Pointer of the wanted backend or NULL.
95 STRUCT_SECTION_FOREACH(tracing_backend, backend) { in tracing_backend_get()
96 if (strcmp(backend->name, name) == 0) { in tracing_backend_get()
97 return backend; in tracing_backend_get()