Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Tetragon

package base
package execvemapupdater

import (
"errors"
Expand All @@ -16,7 +16,7 @@ const (
maxPids = 32768
)

type execveMapUpdater struct {
type ExecveMapUpdater struct {
Load *program.Program
Map *program.Map
}
Expand All @@ -38,7 +38,7 @@ func getRoundCnt() uint32 {
return 0
}

func (upd *execveMapUpdater) MBSetBitClear(bit uint32, pids []uint32) error {
func (upd *ExecveMapUpdater) MBSetBitClear(bit uint32, pids []uint32) error {
prog := upd.Load.Prog

// not used, but needed to pass program test run
Expand Down
3 changes: 2 additions & 1 deletion pkg/sensors/base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (

"github.com/cilium/tetragon/pkg/config"
"github.com/cilium/tetragon/pkg/errmetrics"
"github.com/cilium/tetragon/pkg/execvemapupdater"
"github.com/cilium/tetragon/pkg/ksyms"
"github.com/cilium/tetragon/pkg/logger"
"github.com/cilium/tetragon/pkg/mbset"
Expand Down Expand Up @@ -170,7 +171,7 @@ func initBaseSensor() *sensors.Sensor {
}
setupSensor()
if config.EnableLargeProgs() {
mbset.SetMBSetUpdater(&execveMapUpdater{
mbset.SetMBSetUpdater(&execvemapupdater.ExecveMapUpdater{
Load: ExecveMapUpdate,
Map: ExecveMapUpdateData,
})
Expand Down
Loading