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

Method getPerCPUBuffer

user/module/imodule.go:219–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217}
218
219func (this *Module) getPerCPUBuffer() int {
220 return os.Getpagesize() * (int(this.mconf.Buffer) * 1024 / 4)
221}
222
223func (this *Module) perfEventReader(errChan chan error, em *ebpf.Map) {
224 // 这里对原ebpf包代码做了修改 以此控制是否让内核发生栈空间数据和寄存器数据

Callers 1

perfEventReaderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected