Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Tracing format APIs. More...
Data Structures | |
struct | tracing_data |
A structure to represent tracing data format. More... | |
Macros | |
#define | TRACING_STRING(fmt, ...) |
Macro to trace a message in string format. | |
#define | TRACING_FORMAT_DATA(x) ((struct tracing_data){.data = (uint8_t *)&(x), .length = sizeof((x))}) |
Macro to format data to tracing data format. | |
#define | TRACING_DATA(...) |
Macro to trace a message in tracing data format. | |
Typedefs | |
typedef struct tracing_data | tracing_data_t |
A structure to represent tracing data format. | |
Functions | |
void | tracing_format_string (const char *str,...) |
Tracing a message in string format. | |
void | tracing_format_raw_data (uint8_t *data, uint32_t length) |
Tracing a message in raw data format. | |
void | tracing_format_data (tracing_data_t *tracing_data_array, uint32_t count) |
Tracing a message in tracing data format. | |
Tracing format APIs.
#define TRACING_DATA | ( | ... | ) |
#include <include/zephyr/tracing/tracing_format.h>
Macro to trace a message in tracing data format.
All the parameters should be struct tracing_data.
#define TRACING_FORMAT_DATA | ( | x | ) | ((struct tracing_data){.data = (uint8_t *)&(x), .length = sizeof((x))}) |
#include <include/zephyr/tracing/tracing_format.h>
Macro to format data to tracing data format.
x | Data field. |
#define TRACING_STRING | ( | fmt, | |
... | |||
) |
#include <include/zephyr/tracing/tracing_format.h>
Macro to trace a message in string format.
fmt | The format string. |
... | The format arguments. |
typedef struct tracing_data tracing_data_t |
#include <include/zephyr/tracing/tracing_format.h>
A structure to represent tracing data format.
void tracing_format_data | ( | tracing_data_t * | tracing_data_array, |
uint32_t | count | ||
) |
#include <include/zephyr/tracing/tracing_format.h>
Tracing a message in tracing data format.
tracing_data_array | Tracing_data format data array to be traced. |
count | Tracing_data array data count. |
#include <include/zephyr/tracing/tracing_format.h>
Tracing a message in raw data format.
data | Raw data to be traced. |
length | Raw data length. |
void tracing_format_string | ( | const char * | str, |
... | |||
) |
#include <include/zephyr/tracing/tracing_format.h>
Tracing a message in string format.
str | String to format. |
... | Variable length arguments. |