Skip to content

Commit

Permalink
feat(events): parse call arg for socketcall
Browse files Browse the repository at this point in the history
  • Loading branch information
geyslan committed Nov 23, 2023
1 parent f48a826 commit e731da5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/events/parse_args.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ func ParseArgs(event *trace.Event) error {
parseOrEmptyString(optArg, prctlOptionArgument, err)
}
}
case Socketcall:
if callArg := GetArg(event, "call"); callArg != nil {
if call, isInt32 := callArg.Value.(int32); isInt32 {
socketcallArgument, err := helpers.ParseSocketcallCall(uint64(call))
parseOrEmptyString(callArg, socketcallArgument, err)
}
}
case Socket:
if domArg := GetArg(event, "domain"); domArg != nil {
if dom, isInt32 := domArg.Value.(int32); isInt32 {
Expand Down

0 comments on commit e731da5

Please sign in to comment.