summaryrefslogtreecommitdiffstats
path: root/collectors/ebpf.plugin/ebpf_socket.c
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2022-08-23 12:44:47 +0000
committerGitHub <noreply@github.com>2022-08-23 12:44:47 +0000
commit575986a692003638f09c975da847062637b915f4 (patch)
treee66dc73a7992953edcfdd1c9c442ec6ca5b14b1a /collectors/ebpf.plugin/ebpf_socket.c
parent711e6fc5e75eb12455054116eea159b8ac83d7a9 (diff)
Improve PID monitoring (step 2) (#13530)
Diffstat (limited to 'collectors/ebpf.plugin/ebpf_socket.c')
-rw-r--r--collectors/ebpf.plugin/ebpf_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/ebpf.plugin/ebpf_socket.c b/collectors/ebpf.plugin/ebpf_socket.c
index ba63934d53..2d5f93bf7b 100644
--- a/collectors/ebpf.plugin/ebpf_socket.c
+++ b/collectors/ebpf.plugin/ebpf_socket.c
@@ -3875,7 +3875,7 @@ static int ebpf_socket_load_bpf(ebpf_module_t *em)
{
int ret = 0;
- if (em->load == EBPF_LOAD_LEGACY) {
+ if (em->load & EBPF_LOAD_LEGACY) {
em->probe_links = ebpf_load_program(ebpf_plugin_dir, em, running_on_kernel, isrh, &em->objects);
if (!em->probe_links) {
ret = -1;