Eunomia
0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
|
Go to the documentation of this file.
36 json jj = json::parse(j_str);
45 static std::string bpf_skeleton_encode(
const struct bpf_object_skeleton *skeleton) {
48 data.name ==skeleton->name;
49 data.data_sz = skeleton->data_sz;
50 data.data = base64_encode((
const unsigned char *)skeleton->data,
data.data_sz);
51 for (
int i = 0; i < skeleton->map_cnt; i++)
53 data.maps_name.push_back(skeleton->maps[i].name);
55 for (
int i = 0; i < skeleton->prog_cnt; i++)
57 data.progs_name.push_back(skeleton->progs[i].name);
59 return data.to_json();
nlohmann::json json
Definition: hot_update.h:11