Skip to content

Commit 57bda50

Browse files
authored
fix: fix hooked_seq_ops argument type and register in gob (#2058)
1 parent 5bdaedc commit 57bda50

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

cmd/tracee-ebpf/internal/printer/printer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ func (p *gobEventPrinter) Init() error {
247247
gob.Register(make(map[string]string))
248248
gob.Register(trace.PktMeta{})
249249
gob.Register([]trace.HookedSymbolData{})
250+
gob.Register(map[string]trace.HookedSymbolData{})
250251
gob.Register([]trace.DnsQueryData{})
251252
gob.Register([]trace.DnsResponseData{})
252253
return nil

cmd/tracee-rules/input.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func setupTraceeGobInputSource(opts *traceeInputOptions) (chan protocol.Event, e
5050
gob.Register(make(map[string]string))
5151
gob.Register(trace.PktMeta{})
5252
gob.Register([]trace.HookedSymbolData{})
53+
gob.Register(map[string]trace.HookedSymbolData{})
5354
gob.Register([]trace.DnsQueryData{})
5455
gob.Register([]trace.DnsResponseData{})
5556
res := make(chan protocol.Event)

pkg/events/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5890,7 +5890,7 @@ var Definitions = eventDefinitions{
58905890
},
58915891
Sets: []string{},
58925892
Params: []trace.ArgMeta{
5893-
{Type: "[]helpers.KernelSymbol", Name: "hooked_seq_ops"},
5893+
{Type: "map[string]trace.HookedSymbolData", Name: "hooked_seq_ops"},
58945894
},
58955895
},
58965896
TaskRename: {

0 commit comments

Comments
 (0)