Eunomia  0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
btf_helpers.c File Reference
#include "helpers/btf_helpers.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/utsname.h>
#include <zlib.h>
#include "helpers/trace_helpers.h"
Include dependency graph for btf_helpers.c:

Classes

struct  os_info
 
struct  tar_header
 

Macros

#define FIELD_LEN   65
 
#define ID_FMT   "ID=%64s"
 
#define VERSION_FMT   "VERSION_ID=\"%64s"
 
#define INITIAL_BUF_SIZE   (1024 * 1024 * 4) /* 4MB */
 

Functions

unsigned char _binary_min_core_btfs_tar_gz_start[] __attribute__ ((weak))
 
int ensure_core_btf (struct bpf_object_open_opts *opts)
 
void cleanup_core_btf (struct bpf_object_open_opts *opts)
 

Macro Definition Documentation

◆ FIELD_LEN

#define FIELD_LEN   65

◆ ID_FMT

#define ID_FMT   "ID=%64s"

◆ INITIAL_BUF_SIZE

#define INITIAL_BUF_SIZE   (1024 * 1024 * 4) /* 4MB */

◆ VERSION_FMT

#define VERSION_FMT   "VERSION_ID=\"%64s"

Function Documentation

◆ __attribute__()

unsigned char _binary_min_core_btfs_tar_gz_start [] __attribute__ ( (weak)  )

◆ cleanup_core_btf()

void cleanup_core_btf ( struct bpf_object_open_opts *  opts)

◆ ensure_core_btf()

int ensure_core_btf ( struct bpf_object_open_opts *  opts)
Here is the call graph for this function: