diff options
Diffstat (limited to 'libnetdata/ebpf/ebpf.c')
-rw-r--r-- | libnetdata/ebpf/ebpf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libnetdata/ebpf/ebpf.c b/libnetdata/ebpf/ebpf.c index 7bce4c1ee0..df1ff7da4b 100644 --- a/libnetdata/ebpf/ebpf.c +++ b/libnetdata/ebpf/ebpf.c @@ -225,6 +225,12 @@ int ebpf_load_libraries(ebpf_functions_t *ef, char *libbase, char *pluginsdir) return -1; } + ef->bpf_map_get_next_key = dlsym(libnetdata, "bpf_map_get_next_key"); + if ((err = dlerror()) != NULL) { + error("Cannot find bpf_map_delete_elem: %s", err); + return -1; + } + return 0; } |