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

Method Init

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

Source from the content-addressed store, hash-verified

33}
34
35func (this *MSyscall) Init(ctx context.Context, logger *log.Logger, conf config.IConfig) error {
36 this.Module.Init(ctx, logger, conf)
37 this.Module.SetChild(this)
38 this.eventMaps = make([]*ebpf.Map, 0, 2)
39 this.eventFuncMaps = make(map[*ebpf.Map]event.IEventStruct)
40 this.hookBpfFile = "syscall.o"
41
42 return nil
43}
44
45func (this *MSyscall) GetConf() config.IConfig {
46 return this.mconf

Callers

nothing calls this directly

Calls 2

InitMethod · 0.65
SetChildMethod · 0.65

Tested by

no test coverage detected