Skip to content

Commit

Permalink
usm: sharedlibraries: Change BPF_LRU_MAP to BPF_HASH_MAP (#32180)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyarb authored Dec 15, 2024
1 parent cfea906 commit 6f5f2b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/network/ebpf/c/shared-libraries/maps.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f5f2b0

Please sign in to comment.