diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2021-03-04 11:54:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 11:54:31 +0000 |
commit | 7907774e5ab3b028d22b001a964a2963bc2144da (patch) | |
tree | 8876a4512612f33589bf1e3a3138e43495d56b41 /libnetdata/ebpf | |
parent | 91f3268e9615edd393bd43de4ad8068111024cc9 (diff) |
New version eBPF programs. (#10707)
Add new eBPF version to bring support for close events on kernel `5.11`.
Diffstat (limited to 'libnetdata/ebpf')
-rw-r--r-- | libnetdata/ebpf/ebpf.c | 4 | ||||
-rw-r--r-- | libnetdata/ebpf/ebpf.h | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/libnetdata/ebpf/ebpf.c b/libnetdata/ebpf/ebpf.c index 63aa1f2503..13ec6ea1c4 100644 --- a/libnetdata/ebpf/ebpf.c +++ b/libnetdata/ebpf/ebpf.c @@ -246,7 +246,9 @@ char *ebpf_kernel_suffix(int version, int isrh) else return "3.10"; } else { - if (version >= NETDATA_EBPF_KERNEL_5_10) + if (version >= NETDATA_EBPF_KERNEL_5_11) + return "5.11"; + else if (version >= NETDATA_EBPF_KERNEL_5_10) return "5.10"; else if (version >= NETDATA_EBPF_KERNEL_4_17) return "5.4"; diff --git a/libnetdata/ebpf/ebpf.h b/libnetdata/ebpf/ebpf.h index 7ff5c48bd8..400c7e7413 100644 --- a/libnetdata/ebpf/ebpf.h +++ b/libnetdata/ebpf/ebpf.h @@ -32,6 +32,13 @@ #define NETDATA_RH_8 2048 /** + * Kernel 5.11 + * + * 330240 = 5*65536 + 11*256 + */ +#define NETDATA_EBPF_KERNEL_5_11 330496 + +/** * Kernel 5.10 * * 330240 = 5*65536 + 10*256 |