Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
umanwizard committed Aug 28, 2024
1 parent 4d7f56b commit 00ceac9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions interpreter/customlabels/customlabels.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ func (d data) Attach(ebpf interpreter.EbpfHandler, pid libpf.PID,
abiVersion := rm.Uint32(abiVersionPtr)

if abiVersion != 0 {
return nil, fmt.Errorf("Unsupported custom labels ABI version: %d (only 0 is supported)", abiVersion)
return nil, fmt.Errorf("unsupported custom labels ABI version: %d"+
" (only 0 is supported)", abiVersion)
}

var tlsOffset uint64
Expand All @@ -127,4 +128,3 @@ func (d data) Attach(ebpf interpreter.EbpfHandler, pid libpf.PID,
func (i *instance) Detach(ebpf interpreter.EbpfHandler, pid libpf.PID) error {
return ebpf.DeleteProcData(libpf.CustomLabels, pid)
}

3 changes: 1 addition & 2 deletions processmanager/execinfomanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ func NewExecutableInfoManager(

interpreterLoaders = append(interpreterLoaders, apmint.Loader)
if collectCustomLabels {
interpreterLoaders = append(interpreterLoaders, golang.Loader)
interpreterLoaders = append(interpreterLoaders, customlabels.Loader)
interpreterLoaders = append(interpreterLoaders, golang.Loader, customlabels.Loader)
}

deferredFileIDs, err := lru.NewSynced[host.FileID, libpf.Void](deferredFileIDSize,
Expand Down

0 comments on commit 00ceac9

Please sign in to comment.