Skip to content

Commit

Permalink
tetragon: Add support to store return action
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Olsa <[email protected]>
  • Loading branch information
olsajiri committed Nov 29, 2023
1 parent d7068ac commit eb1552a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/grpc/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ func GetProcessKprobe(event *MsgGenericKprobeUnix) *tetragon.ProcessKprobe {
Args: tetragonArgs,
Return: tetragonReturnArg,
Action: kprobeAction(event.Action),
ReturnAction: kprobeAction(event.ReturnAction),
StackTrace: stackTrace,
PolicyName: event.PolicyName,
}
Expand Down Expand Up @@ -470,6 +471,7 @@ type MsgGenericKprobeUnix struct {
Capabilities processapi.MsgCapabilities
Id uint64
Action uint64
ReturnAction uint64
Tid uint32
FuncName string
Args []tracingapi.MsgGenericKprobeArg
Expand Down
1 change: 1 addition & 0 deletions pkg/sensors/tracing/generickprobe.go
Original file line number Diff line number Diff line change
Expand Up @@ -1656,6 +1656,7 @@ func retprobeMerge(prev pendingEvent, curr pendingEvent) *tracing.MsgGenericKpro
enterEv.Args = append(enterEv.Args, retArg)
}
}
enterEv.ReturnAction = retEv.Action
return enterEv
}

Expand Down

0 comments on commit eb1552a

Please sign in to comment.