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

Method setupManager

user/module/brk.go:38–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 return nil
37}
38func (this *PerfBRK) setupManager() error {
39 maps := []*manager.Map{}
40 probes := []*manager.Probe{}
41
42 events_map := &manager.Map{
43 Name: "brk_events",
44 }
45 maps = append(maps, events_map)
46
47 // perf_probe := &manager.Probe{
48 // Section: "perf_event",
49 // EbpfFuncName: "perf_event_handler",
50 // }
51 // probes = append(probes, perf_probe)
52
53 this.bpfManager = &manager.Manager{
54 Probes: probes,
55 Maps: maps,
56 }
57 return nil
58}
59
60func (this *PerfBRK) setupManagerOptions() {
61 if this.mconf.ExternalBTF != "" {

Callers 1

startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected