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

Method disable

KittyMemoryEx/KittyPerfEvent.cpp:91–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91bool KittyPerfWatch::disable()
92{
93 for (auto &w : _watches)
94 {
95 if (w.fd >= 0)
96 {
97 ioctl(w.fd, PERF_EVENT_IOC_RESET, 0);
98 if (ioctl(w.fd, PERF_EVENT_IOC_DISABLE, 0) < 0)
99 return false;
100 }
101 }
102 return true;
103}
104
105void KittyPerfWatch::clear()
106{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected