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

Method initDecodeFun

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

Source from the content-addressed store, hash-verified

115}
116
117func (this *PerfMMAP) initDecodeFun() error {
118 map_name := "fake_events"
119 FakeEventsMap, found, err := this.bpfManager.GetMap(map_name)
120 if err != nil {
121 return err
122 }
123 if !found {
124 return errors.New(fmt.Sprintf("cannot find map:%s", map_name))
125 }
126
127 this.eventMaps = append(this.eventMaps, FakeEventsMap)
128 commonEvent := &event.CommonEvent{}
129 commonEvent.SetConf(this.mconf)
130 this.eventFuncMaps[FakeEventsMap] = commonEvent
131
132 return nil
133}
134
135func (this *PerfMMAP) Events() []*ebpf.Map {
136 return this.eventMaps

Callers 1

startMethod · 0.95

Calls 1

SetConfMethod · 0.95

Tested by

no test coverage detected