From e24057247b5fe00b803b47ed35582117c818bfe9 Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Mon, 29 Jul 2024 13:12:03 +0000 Subject: [PATCH] tetragon: Display max entries setup for loaded map Adding extra log output for max entries for loaded map: logcapture.go:25: time="2024-07-29T10:22:07Z" level=info msg="tetragon, map loaded." map=tg_stats_map max="{0 false}" .. logcapture.go:25: time="2024-07-29T10:22:07Z" level=info msg="tetragon, map loaded." map=cgroup_rate_map max="{32768 true}" ... The value is the configured maximum or zero if it wasn't configured and stays on default (hardcoded in bpf code). The bool value is the indicator if the number was configured. Signed-off-by: Jiri Olsa --- pkg/sensors/load.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/sensors/load.go b/pkg/sensors/load.go index 2ef8884ec11..b7ce819304a 100644 --- a/pkg/sensors/load.go +++ b/pkg/sensors/load.go @@ -249,6 +249,7 @@ func (s *Sensor) loadMaps(bpfDir string) error { "sensor": s.Name, "map": m.Name, "path": pinPath, + "max": m.Entries, }).Info("tetragon, map loaded.") }