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

Method Init

user/module/perf_mmap.go:30–37  ·  view source on GitHub ↗
(ctx context.Context, logger *log.Logger, conf config.IConfig)

Source from the content-addressed store, hash-verified

28}
29
30func (this *PerfMMAP) Init(ctx context.Context, logger *log.Logger, conf config.IConfig) error {
31 this.Module.Init(ctx, logger, conf)
32 this.Module.SetChild(this)
33 this.eventMaps = make([]*ebpf.Map, 0, 2)
34 this.eventFuncMaps = make(map[*ebpf.Map]event.IEventStruct)
35 this.hookBpfFile = "perf_mmap.o"
36 return nil
37}
38
39func (this *PerfMMAP) GetConf() config.IConfig {
40 return this.mconf

Callers

nothing calls this directly

Calls 2

InitMethod · 0.65
SetChildMethod · 0.65

Tested by

no test coverage detected