()
| 396 | } |
| 397 | |
| 398 | func (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 | |
| 412 | func (this *MSyscall) FindMap(map_name string) (*ebpf.Map, error) { |
| 413 | em, found, err := this.bpfManager.GetMap(map_name) |