MCPcopy Create free account
hub / github.com/ByConity/ByConity / enablePerfEvent

Function enablePerfEvent

src/Common/ThreadProfileEvents.cpp:246–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246static void enablePerfEvent(int event_fd)
247{
248 if (ioctl(event_fd, PERF_EVENT_IOC_ENABLE, 0))
249 {
250 LOG_WARNING(&Poco::Logger::get("PerfEvents"),
251 "Can't enable perf event with file descriptor {}: '{}' ({})",
252 event_fd, errnoToString(errno), errno);
253 }
254}
255
256static void disablePerfEvent(int event_fd)
257{

Callers 1

Calls 2

errnoToStringFunction · 0.85
getFunction · 0.50

Tested by

no test coverage detected