26 #ifndef APP_SHIELD_AGENT_CORE_H_
27 #define APP_SHIELD_AGENT_CORE_H_
45 #define MAX_PATH_LEN 260
61 struct doca_apsh_ctx *
ctx;
62 struct doca_apsh_system *
sys;
123 struct doca_apsh_process ***
pslist,
124 struct doca_apsh_process **process);
135 struct doca_telemetry_exporter_source **telemetry_source,
145 struct doca_telemetry_exporter_source *telemetry_source);
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)
doca_error_t app_shield_agent_init(struct apsh_config *conf, struct apsh_resources *resources)
doca_error_t telemetry_start(struct doca_telemetry_exporter_schema **telemetry_schema, struct doca_telemetry_exporter_source **telemetry_source, struct event_indexes *indexes)
void app_shield_agent_cleanup(struct apsh_resources *resources)
struct event_indexes __attribute__
ARG varg integer array of triplets (dst offset, src offset, length in bytes)
doca_error_t register_apsh_params(void)
void telemetry_destroy(struct doca_telemetry_exporter_schema *telemetry_schema, struct doca_telemetry_exporter_source *telemetry_source)
doca_error_t pslist(const char *dma_device_name, const char *pci_vuid, enum doca_apsh_system_os os_type, const char *mem_region, const char *os_symbols)
struct rdma_resources resources
uint32_t DOCA_APSH_PROCESS_PID_TYPE
process pid type
doca_apsh_system_os
system os types
#define DOCA_DEVINFO_IBDEV_NAME_SIZE
Buffer size to hold Infiniband/RoCE device name. Including a null terminator.
#define DOCA_DEVINFO_VUID_SIZE
Buffer size to hold VUID. Including a null terminator.
enum doca_error doca_error_t
DOCA API return codes.
uint8_t doca_telemetry_exporter_type_index_t
DOCA schema field type index.
uint64_t doca_telemetry_exporter_timestamp_t
DOCA schema type index type.
char system_vuid[DOCA_DEVINFO_VUID_SIZE+1]
char exec_hash_map_path[MAX_PATH_LEN]
DOCA_APSH_PROCESS_PID_TYPE pid
char dma_dev_name[DOCA_DEVINFO_IBDEV_NAME_SIZE+1]
char system_mem_region_path[MAX_PATH_LEN]
char system_os_symbol_map_path[MAX_PATH_LEN]
enum doca_apsh_system_os os_type
struct doca_apsh_system * sys
struct doca_dev_rep * system_device
struct doca_apsh_ctx * ctx
struct doca_dev * dma_device
doca_telemetry_exporter_timestamp_t timestamp
char path[MAX_PATH_LEN+1]
doca_telemetry_exporter_type_index_t attest_index