NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
yara_inspection_core.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <doca_argp.h>
#include <doca_log.h>
#include <samples/common.h>
#include <utils.h>
#include "yara_inspection_core.h"
Include dependency graph for yara_inspection_core.c:

Go to the source code of this file.

Macros

#define MAX_HOSTNAME_LEN   253
 

Functions

 DOCA_LOG_REGISTER (YARA_APP::Core)
 
static doca_error_t memr_callback (void *param, void *config)
 
static doca_error_t vuid_callback (void *param, void *config)
 
static doca_error_t dma_callback (void *param, void *config)
 
static doca_error_t os_syms_callback (void *param, void *config)
 
static doca_error_t time_callback (void *param, void *config)
 
doca_error_t register_yara_params (void)
 
static doca_error_t yara_ctx_init (struct yara_config *conf, struct yara_resources *resources)
 
static doca_error_t yara_system_init (struct yara_config *conf, struct yara_resources *resources)
 
doca_error_t yara_inspection_init (struct yara_config *conf, struct yara_resources *resources)
 
void yara_inspection_cleanup (struct yara_resources *resources)
 
static doca_error_t telemetry_register_yara_event (struct doca_telemetry_exporter_schema *schema, doca_telemetry_exporter_type_index_t *type_index)
 
doca_error_t telemetry_start (struct doca_telemetry_exporter_schema **telemetry_schema, struct doca_telemetry_exporter_source **telemetry_source, doca_telemetry_exporter_type_index_t *index)
 
void telemetry_destroy (struct doca_telemetry_exporter_schema *telemetry_schema, struct doca_telemetry_exporter_source *telemetry_source)
 

Macro Definition Documentation

◆ MAX_HOSTNAME_LEN

#define MAX_HOSTNAME_LEN   253

Definition at line 40 of file yara_inspection_core.c.

Function Documentation

◆ dma_callback()

static doca_error_t dma_callback ( void *  param,
void *  config 
)
static

Definition at line 94 of file yara_inspection_core.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( YARA_APP::Core  )

◆ memr_callback()

static doca_error_t memr_callback ( void *  param,
void *  config 
)
static

Definition at line 49 of file yara_inspection_core.c.

◆ os_syms_callback()

static doca_error_t os_syms_callback ( void *  param,
void *  config 
)
static

Definition at line 114 of file yara_inspection_core.c.

◆ register_yara_params()

doca_error_t register_yara_params ( void  )

Definition at line 147 of file yara_inspection_core.c.

◆ telemetry_destroy()

void telemetry_destroy ( struct doca_telemetry_exporter_schema *  telemetry_schema,
struct doca_telemetry_exporter_source *  telemetry_source 
)

Definition at line 559 of file yara_inspection_core.c.

◆ telemetry_register_yara_event()

static doca_error_t telemetry_register_yara_event ( struct doca_telemetry_exporter_schema *  schema,
doca_telemetry_exporter_type_index_t type_index 
)
static

Definition at line 427 of file yara_inspection_core.c.

◆ telemetry_start()

doca_error_t telemetry_start ( struct doca_telemetry_exporter_schema **  telemetry_schema,
struct doca_telemetry_exporter_source **  telemetry_source,
doca_telemetry_exporter_type_index_t index 
)

Definition at line 483 of file yara_inspection_core.c.

◆ time_callback()

static doca_error_t time_callback ( void *  param,
void *  config 
)
static

Definition at line 139 of file yara_inspection_core.c.

◆ vuid_callback()

static doca_error_t vuid_callback ( void *  param,
void *  config 
)
static

Definition at line 74 of file yara_inspection_core.c.

◆ yara_ctx_init()

static doca_error_t yara_ctx_init ( struct yara_config conf,
struct yara_resources resources 
)
static

Definition at line 263 of file yara_inspection_core.c.

◆ yara_inspection_cleanup()

void yara_inspection_cleanup ( struct yara_resources resources)

Definition at line 395 of file yara_inspection_core.c.

◆ yara_inspection_init()

doca_error_t yara_inspection_init ( struct yara_config conf,
struct yara_resources resources 
)

Definition at line 383 of file yara_inspection_core.c.

◆ yara_system_init()

static doca_error_t yara_system_init ( struct yara_config conf,
struct yara_resources resources 
)
static

Definition at line 315 of file yara_inspection_core.c.