| NVIDIA DOCA SDK | Data Center on a Chip Framework Documentation |
#include <stdbool.h>#include <sys/socket.h>#include <sys/un.h>#include <sys/stat.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <unistd.h>#include <inttypes.h>#include <doca_log.h>#include <doca_telemetry_exporter.h>
Go to the source code of this file.
Data Structures | |
| struct | test_event_type |
Macros | |
| #define | NB_EXAMPLE_STRINGS 5 /* Amount of example strings */ |
| #define | MAX_EXAMPLE_STRING_SIZE 256 /* Indicates the max length of string */ |
| #define | SINGLE_FIELD_VALUE 1 /* Indicates the field contains one value */ |
Functions | |
| DOCA_LOG_REGISTER (TELEMETRY_EXPORTER) | |
| struct test_event_type | __attribute__ ((packed)) |
| static doca_error_t | prepare_example_event (int32_t iter_number, uint64_t string_number, struct test_event_type *event) |
| static doca_error_t | telemetry_register_fields (struct doca_telemetry_exporter_type *type) |
| doca_error_t | telemetry_export (void) |
Variables | |
| static char * | example_strings [NB_EXAMPLE_STRINGS] |
| doca_telemetry_exporter_timestamp_t | timestamp |
| int32_t | event_number |
| int32_t | iter_number |
| uint64_t | string_number |
| char | example_string [MAX_EXAMPLE_STRING_SIZE] |
| #define MAX_EXAMPLE_STRING_SIZE 256 /* Indicates the max length of string */ |
Definition at line 40 of file telemetry_export_sample.c.
| #define NB_EXAMPLE_STRINGS 5 /* Amount of example strings */ |
Definition at line 39 of file telemetry_export_sample.c.
| #define SINGLE_FIELD_VALUE 1 /* Indicates the field contains one value */ |
Definition at line 41 of file telemetry_export_sample.c.
| struct test_event_type __attribute__ | ( | (packed) | ) |
Definition at line 1 of file telemetry_exporter.h.
| DOCA_LOG_REGISTER | ( | TELEMETRY_EXPORTER | ) |
|
static |
Definition at line 69 of file telemetry_export_sample.c.
| doca_error_t telemetry_export | ( | void | ) |
Definition at line 139 of file telemetry_export_sample.c.
|
static |
Definition at line 95 of file telemetry_export_sample.c.
| int32_t event_number |
Definition at line 1 of file telemetry_export_sample.c.
| char example_string[MAX_EXAMPLE_STRING_SIZE] |
Definition at line 4 of file telemetry_export_sample.c.
|
static |
Definition at line 45 of file telemetry_export_sample.c.
| int32_t iter_number |
Definition at line 2 of file telemetry_export_sample.c.
| uint64_t string_number |
Definition at line 3 of file telemetry_export_sample.c.
| doca_telemetry_exporter_timestamp_t timestamp |
Definition at line 0 of file telemetry_export_sample.c.