From 6f5f2b0e65208a732d6ccb60d2558ebd00e9eda8 Mon Sep 17 00:00:00 2001 From: Guy Arbitman Date: Sun, 15 Dec 2024 14:26:21 +0200 Subject: [PATCH] usm: sharedlibraries: Change BPF_LRU_MAP to BPF_HASH_MAP (#32180) --- pkg/network/ebpf/c/shared-libraries/maps.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/network/ebpf/c/shared-libraries/maps.h b/pkg/network/ebpf/c/shared-libraries/maps.h index ec0112536462a..f1d8f34d854f4 100644 --- a/pkg/network/ebpf/c/shared-libraries/maps.h +++ b/pkg/network/ebpf/c/shared-libraries/maps.h @@ -4,7 +4,9 @@ #include "shared-libraries/types.h" #include "map-defs.h" -BPF_LRU_MAP(open_at_args, __u64, lib_path_t, 1024) +// This map is used with 3 different probes, each can be called up to 1024 times each. +// Thus we need to have a map that can store 1024*3 entries. I'm using a larger map to be safe. +BPF_HASH_MAP(open_at_args, __u64, lib_path_t, 10240) /* * These maps are used for notifying userspace of a shared library being loaded