Skip to content

Commit

Permalink
WIP debug
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
  • Loading branch information
lmb committed Apr 26, 2024
1 parent 5117153 commit ff6c6f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions features/prog.go
Expand Up @@ -39,6 +39,10 @@ func probeProgram(spec *ebpf.ProgramSpec) error {
prog.Close()
}

if spec.Type == ebpf.Extension && err != nil {
return fmt.Errorf("error from extension prog load: %s", err)
}

switch {
// EINVAL occurs when attempting to create a program with an unknown type.
// E2BIG occurs when ProgLoadAttr contains non-zero bytes past the end
Expand Down
2 changes: 2 additions & 0 deletions internal/testutils/feature.go
Expand Up @@ -18,6 +18,8 @@ func CheckFeatureTest(t *testing.T, fn func() error) {
}

func checkFeatureTestError(t *testing.T, err error) {
t.Helper()

if err == nil {
return
}
Expand Down

0 comments on commit ff6c6f9

Please sign in to comment.