bpf-loader-lib 0.2.1

A library to load json-described ebpf programs, and automatically poll outputs from the program
Documentation
/* Copyright (c) 2023 eunomia-bpf */
#ifndef __BOOTSTRAP_H
#define __BOOTSTRAP_H

#define TASK_COMM_LEN 16
#define MAX_FILENAME_LEN 31

struct event_exit {
    unsigned long long duration_ns;
    int pid;
    int ppid;
    unsigned exit_code;
    char comm[TASK_COMM_LEN];
};

struct event_exec {
    int pid;
    int ppid;
    char comm[TASK_COMM_LEN];
    char filename[MAX_FILENAME_LEN];
};

#endif