| 36 | return nil |
| 37 | } |
| 38 | func (this *PerfBRK) setupManager() error { |
| 39 | maps := []*manager.Map{} |
| 40 | probes := []*manager.Probe{} |
| 41 | |
| 42 | events_map := &manager.Map{ |
| 43 | Name: "brk_events", |
| 44 | } |
| 45 | maps = append(maps, events_map) |
| 46 | |
| 47 | // perf_probe := &manager.Probe{ |
| 48 | // Section: "perf_event", |
| 49 | // EbpfFuncName: "perf_event_handler", |
| 50 | // } |
| 51 | // probes = append(probes, perf_probe) |
| 52 | |
| 53 | this.bpfManager = &manager.Manager{ |
| 54 | Probes: probes, |
| 55 | Maps: maps, |
| 56 | } |
| 57 | return nil |
| 58 | } |
| 59 | |
| 60 | func (this *PerfBRK) setupManagerOptions() { |
| 61 | if this.mconf.ExternalBTF != "" { |