()
| 41 | } |
| 42 | |
| 43 | func (this *PerfMMAP) setupManager() error { |
| 44 | // 只采集 mmap comm mmap2 的数据 实际上不涉及 ebpf map/probe |
| 45 | maps := []*manager.Map{} |
| 46 | probes := []*manager.Probe{} |
| 47 | |
| 48 | // 高低要一个map 还有 ELF |
| 49 | fake_events_map := &manager.Map{ |
| 50 | Name: "fake_events", |
| 51 | } |
| 52 | maps = append(maps, fake_events_map) |
| 53 | |
| 54 | this.bpfManager = &manager.Manager{ |
| 55 | Probes: probes, |
| 56 | Maps: maps, |
| 57 | } |
| 58 | return nil |
| 59 | } |
| 60 | |
| 61 | func (this *PerfMMAP) setupManagerOptions() { |
| 62 | this.bpfManagerOptions = manager.Options{ |