MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / enable

Method enable

KittyMemoryEx/KittyPerfEvent.cpp:77–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool KittyPerfWatch::enable()
78{
79 for (auto &w : _watches)
80 {
81 if (w.fd >= 0)
82 {
83 ioctl(w.fd, PERF_EVENT_IOC_RESET, 0);
84 if (ioctl(w.fd, PERF_EVENT_IOC_ENABLE, 0) < 0)
85 return false;
86 }
87 }
88 return true;
89}
90
91bool KittyPerfWatch::disable()
92{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected