diff --git a/observation/src/biotop/biotop.bpf.c b/observation/src/biotop/biotop.bpf.c new file mode 100644 index 0000000000000000000000000000000000000000..8d79e3d94732f2c022c4df49fcc991c63c9b88a5 --- /dev/null +++ b/observation/src/biotop/biotop.bpf.c @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0 +#include "vmlinux.h" +#include +#include +#include +#include "biotop.h" +#include "maps.bpf.h" +#include "core_fixes.bpf.h" + +#define MAX_ENTRIES 10240 + +struct { + __uint(type, BPF_MAP_TYPE_HASH); + __uint(max_entries, MAX_ENTRIES); + __type(key, struct request *); + __type(value, struct start_req_t); +} start SEC(".maps"); + +struct { + __uint(type, BPF_MAP_TYPE_HASH); + __uint(max_entries, MAX_ENTRIES); + __type(key, struct request *); + __type(value, struct who_t); +} whobyreq SEC(".maps"); + +struct { + __uint(type, BPF_MAP_TYPE_HASH); + __uint(max_entries, MAX_ENTRIES); + __type(key, struct info_t); + __type(value, struct val_t); +} counts SEC(".maps"); + +char LICENSE[] SEC("license") = "GPL";