MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / initDecodeFun

Method initDecodeFun

user/module/syscall.go:398–410  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

396}
397
398func (this *MSyscall) initDecodeFun() error {
399
400 EventsMap, err := this.FindMap("events")
401 if err != nil {
402 return err
403 }
404 this.eventMaps = append(this.eventMaps, EventsMap)
405
406 syscallEvent := &event.SyscallEvent{}
407 this.eventFuncMaps[EventsMap] = syscallEvent
408
409 return nil
410}
411
412func (this *MSyscall) FindMap(map_name string) (*ebpf.Map, error) {
413 em, found, err := this.bpfManager.GetMap(map_name)

Callers 1

startMethod · 0.95

Calls 1

FindMapMethod · 0.95

Tested by

no test coverage detected