diff --git a/pkg/api/ops/ops.go b/pkg/api/ops/ops.go index 2e0e2e7f938..e7487c67768 100644 --- a/pkg/api/ops/ops.go +++ b/pkg/api/ops/ops.go @@ -3,6 +3,12 @@ package ops +import ( + "fmt" + + "github.com/cilium/tetragon/pkg/logger" +) + const ( MSG_OP_UNDEF = 0 // MSG_OP_EXECVE event indicates a process was created. The 'PID' @@ -91,7 +97,8 @@ var OpCodeStrings = map[OpCode]string{ func (op OpCode) String() string { s, ok := OpCodeStrings[op] if !ok { - return "" + logger.GetLogger().WithField("op", op).Info("Unknown OpCode. This is a bug, please report it to Tetragon developers.") + return fmt.Sprintf("Unknown(%d)", op) } return s }