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

Method setupManager

user/module/perf_mmap.go:43–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43func (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
61func (this *PerfMMAP) setupManagerOptions() {
62 this.bpfManagerOptions = manager.Options{

Callers 1

startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected