diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2023-07-06 12:03:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-06 12:03:16 +0000 |
commit | c805baef80d53cba5a10e77448e973f2cc61ca1e (patch) | |
tree | d88de3a1258c71a9e0d1b9287a922d25f40aedd9 /libnetdata | |
parent | 6526a34f86e646610eed4a26215f5b40dfe718ab (diff) |
Additional CO-RE code (eBPF.plugin) (#15078)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/ebpf/ebpf.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libnetdata/ebpf/ebpf.h b/libnetdata/ebpf/ebpf.h index e82aaedd47..455372753d 100644 --- a/libnetdata/ebpf/ebpf.h +++ b/libnetdata/ebpf/ebpf.h @@ -340,6 +340,16 @@ typedef struct netdata_ebpf_histogram { uint64_t histogram[NETDATA_EBPF_HIST_MAX_BINS]; } netdata_ebpf_histogram_t; +enum fs_btf_counters { + NETDATA_KEY_BTF_READ, + NETDATA_KEY_BTF_WRITE, + NETDATA_KEY_BTF_OPEN, + NETDATA_KEY_BTF_SYNC_ATTR, + NETDATA_KEY_BTF_OPEN2, + + NETDATA_FS_BTF_END +}; + typedef struct ebpf_filesystem_partitions { char *filesystem; char *optional_filesystem; @@ -359,6 +369,14 @@ typedef struct ebpf_filesystem_partitions { ebpf_addresses_t addresses; uint64_t kernels; ebpf_local_maps_t *fs_maps; + + // BPF structure +#ifdef LIBBPF_MAJOR_VERSION + struct filesystem_bpf *fs_obj; +#else + void *fs_obj; +#endif + const char *functions[NETDATA_FS_BTF_END]; } ebpf_filesystem_partitions_t; typedef struct ebpf_sync_syscalls { |