(map_name string)
| 402 | } |
| 403 | |
| 404 | func (this *MStack) FindMap(map_name string) (*ebpf.Map, error) { |
| 405 | em, found, err := this.bpfManager.GetMap(map_name) |
| 406 | if err != nil { |
| 407 | return em, err |
| 408 | } |
| 409 | if !found { |
| 410 | return em, errors.New(fmt.Sprintf("cannot find map:%s", map_name)) |
| 411 | } |
| 412 | return em, err |
| 413 | } |
| 414 | |
| 415 | func (this *MStack) Events() []*ebpf.Map { |
| 416 | return this.eventMaps |
no outgoing calls
no test coverage detected