@cryptotaxi247 / netdata-1 / commits / 7907774e5

New version eBPF programs. (#10707)

Add new eBPF version to bring support for close events on kernel `5.11`.

thiagoftsm committed Mar 4, 2021 at 11:54 UTC 7907774e5ab3b028d22b001a964a2963bc2144da
5 files changed +18 -9
libnetdata/ebpf/ebpf.c
+3 -1
@@ -246,7 +246,9 @@ char *ebpf_kernel_suffix(int version, int isrh)
246 else
247 return "3.10";
248 } else {
249 - if (version >= NETDATA_EBPF_KERNEL_5_10)
249 + if (version >= NETDATA_EBPF_KERNEL_5_11)
250 + return "5.11";
251 + else if (version >= NETDATA_EBPF_KERNEL_5_10)
252 return "5.10";
253 else if (version >= NETDATA_EBPF_KERNEL_4_17)
254 return "5.4";
libnetdata/ebpf/ebpf.h
+7
@@ -31,6 +31,13 @@
31 */
32 #define NETDATA_RH_8 2048
33
34 +/**
35 + * Kernel 5.11
36 + *
37 + * 330240 = 5*65536 + 11*256
38 + */
39 +#define NETDATA_EBPF_KERNEL_5_11 330496
40 +
41 /**
42 * Kernel 5.10
43 *
packaging/ebpf.checksums
+3 -3
@@ -1,3 +1,3 @@
1 -5fd3d9e8bf15b97bcb1044cbca8b308ff191ba95885443c1dae633f2e46c1777 netdata-kernel-collector-glibc-v0.5.6.tar.xz
2 -459b0730a8eb86ea32f1ba4eee47ab434dad4a5b909363c5b71b98743e9927da netdata-kernel-collector-musl-v0.5.6.tar.xz
3 -0f0cbea80190fc105f45f2a6ddc4bd6ab23e8141bf6921cdd7f779380153bfea netdata-kernel-collector-static-v0.5.6.tar.xz
1 +eb25cf47d7881ad4cafdd570ca1da1d3f95259fcaf75804f5e89181673dee571 netdata-kernel-collector-glibc-v0.5.7.tar.xz
2 +85aca7f06dff433cced967a62826e2778ddb541a99c33d4d7ec220e88a550bce netdata-kernel-collector-musl-v0.5.7.tar.xz
3 +b5cb0625c461ba16fa50e8886b3da2281e6d75e82f6a0a7f3817bf0a13b3b04e netdata-kernel-collector-static-v0.5.7.tar.xz
packaging/ebpf.version
+1 -1
@@ -1 +1 @@
1 -v0.5.6
1 +v0.5.7
web/gui/dashboard_info.js
+4 -4
@@ -1135,12 +1135,12 @@ netdataDashboard.context = {
1135 },
1136
1137 'apps.file_closed': {
1138 - info: 'Calls to the internal function <a href="https://elixir.bootlin.com/linux/latest/source/fs/file.c#L665" target="_blank">__close_fd</a>, which is called from' +
1138 + info: 'Calls to the internal function <a href="https://elixir.bootlin.com/linux/v5.10/source/fs/file.c#L665" target="_blank">__close_fd</a> or <a href="https://elixir.bootlin.com/linux/v5.11/source/fs/file.c#L617" target="_blank">close_fd</a> according to your kernel version, which is called from' +
1139 ' <a href="https://www.man7.org/linux/man-pages/man2/close.2.html" target="_blank">close(2)</a>. '
1140 },
1141
1142 'apps.file_close_error': {
1143 - info: 'Failed calls to the internal function <a href="https://elixir.bootlin.com/linux/latest/source/fs/file.c#L665" target="_blank">__close_fd</a>.'
1143 + info: 'Failed calls to the internal function <a href="https://elixir.bootlin.com/linux/v5.10/source/fs/file.c#L665" target="_blank">__close_fd</a> or <a href="https://elixir.bootlin.com/linux/v5.11/source/fs/file.c#L617" target="_blank">close_fd</a> according to your kernel version.'
1144 },
1145
1146 'apps.file_deleted': {
@@ -3325,7 +3325,7 @@ netdataDashboard.context = {
3325 info: 'Calls for internal functions on Linux kernel. The open dimension is attached to the kernel internal function <code>do_sys_open</code> ( For kernels newer than <code>5.5.19</code> we add a kprobe to <code>do_sys_openat2</code>. ), which is the common function called from'+
3326 ' <a href="https://www.man7.org/linux/man-pages/man2/open.2.html" target="_blank">open(2)</a> ' +
3327 ' and <a href="https://www.man7.org/linux/man-pages/man2/openat.2.html" target="_blank">openat(2)</a>. ' +
3328 - ' The close dimension is attached to the function <code>__close_fd</code>, which is called from system call' +
3328 + ' The close dimension is attached to the function <code>__close_fd</code> or <code>close_fd</code> according to your kernel version, which is called from system call' +
3329 ' <a href="https://www.man7.org/linux/man-pages/man2/close.2.html" target="_blank">close(2)</a>. '
3330 },
3331
@@ -3334,7 +3334,7 @@ netdataDashboard.context = {
3334 info: 'Failed calls to the kernel internal function <code>do_sys_open</code> ( For kernels newer than <code>5.5.19</code> we add a kprobe to <code>do_sys_openat2</code>. ), which is the common function called from'+
3335 ' <a href="https://www.man7.org/linux/man-pages/man2/open.2.html" target="_blank">open(2)</a> ' +
3336 ' and <a href="https://www.man7.org/linux/man-pages/man2/openat.2.html" target="_blank">openat(2)</a>. ' +
3337 - ' The close dimension is attached to the function <code>__close_fd</code>, which is called from system call' +
3337 + ' The close dimension is attached to the function <code>__close_fd</code> or <code>close_fd</code> according to your kernel version, which is called from system call' +
3338 ' <a href="https://www.man7.org/linux/man-pages/man2/close.2.html" target="_blank">close(2)</a>. '
3339 },
3340