NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
app_shield_agent_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 "app_shield_agent_core.h"
Include dependency graph for app_shield_agent_core.c:

Go to the source code of this file.

Macros

#define MAX_HOSTNAME_LEN   253
 

Functions

 DOCA_LOG_REGISTER (APSH_APP::Core)
 
static doca_error_t pid_callback (void *param, void *config)
 
static doca_error_t hash_map_callback (void *param, void *config)
 
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 os_type_callback (void *param, void *config)
 
static doca_error_t time_callback (void *param, void *config)
 
doca_error_t register_apsh_params (void)
 
static doca_error_t apsh_ctx_init (struct apsh_config *conf, struct apsh_resources *resources)
 
static doca_error_t apsh_system_init (struct apsh_config *conf, struct apsh_resources *resources)
 
doca_error_t app_shield_agent_init (struct apsh_config *conf, struct apsh_resources *resources)
 
void app_shield_agent_cleanup (struct apsh_resources *resources)
 
doca_error_t get_process_by_pid (struct apsh_resources *resources, struct apsh_config *apsh_conf, struct doca_apsh_process ***pslist, struct doca_apsh_process **process)
 
static doca_error_t telemetry_register_attest_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, struct event_indexes *indexes)
 
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 app_shield_agent_core.c.

Function Documentation

◆ app_shield_agent_cleanup()

void app_shield_agent_cleanup ( struct apsh_resources resources)

Definition at line 516 of file app_shield_agent_core.c.

◆ app_shield_agent_init()

doca_error_t app_shield_agent_init ( struct apsh_config conf,
struct apsh_resources resources 
)

Definition at line 502 of file app_shield_agent_core.c.

◆ apsh_ctx_init()

static doca_error_t apsh_ctx_init ( struct apsh_config conf,
struct apsh_resources resources 
)
static

Definition at line 382 of file app_shield_agent_core.c.

◆ apsh_system_init()

static doca_error_t apsh_system_init ( struct apsh_config conf,
struct apsh_resources resources 
)
static

Definition at line 434 of file app_shield_agent_core.c.

◆ dma_callback()

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

Definition at line 134 of file app_shield_agent_core.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( APSH_APP::Core  )

◆ get_process_by_pid()

doca_error_t get_process_by_pid ( struct apsh_resources resources,
struct apsh_config apsh_conf,
struct doca_apsh_process ***  pslist,
struct doca_apsh_process **  process 
)

Definition at line 541 of file app_shield_agent_core.c.

◆ hash_map_callback()

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

Definition at line 64 of file app_shield_agent_core.c.

◆ memr_callback()

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

Definition at line 89 of file app_shield_agent_core.c.

◆ os_syms_callback()

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

Definition at line 154 of file app_shield_agent_core.c.

◆ os_type_callback()

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

Definition at line 179 of file app_shield_agent_core.c.

◆ pid_callback()

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

Definition at line 49 of file app_shield_agent_core.c.

◆ register_apsh_params()

doca_error_t register_apsh_params ( void  )

Definition at line 210 of file app_shield_agent_core.c.

◆ telemetry_destroy()

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

Definition at line 720 of file app_shield_agent_core.c.

◆ telemetry_register_attest_event()

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

Definition at line 588 of file app_shield_agent_core.c.

◆ telemetry_start()

doca_error_t telemetry_start ( struct doca_telemetry_exporter_schema **  telemetry_schema,
struct doca_telemetry_exporter_source **  telemetry_source,
struct event_indexes indexes 
)

Definition at line 644 of file app_shield_agent_core.c.

◆ time_callback()

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

Definition at line 202 of file app_shield_agent_core.c.

◆ vuid_callback()

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

Definition at line 114 of file app_shield_agent_core.c.