Skip to content

Commit

Permalink
tetragon: Display max entries setup for loaded map
Browse files Browse the repository at this point in the history
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 <jolsa@kernel.org>
  • Loading branch information
olsajiri committed Jul 29, 2024
1 parent 4d94f62 commit e240572
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/sensors/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}

Expand Down

0 comments on commit e240572

Please sign in to comment.