Home
last modified time | relevance | path

Searched refs:perfEventFd (Results 1 – 1 of 1) sorted by relevance

/packages/modules/UprobeStats/src/
DBpf.cpp59 int perfEventFd = syscall(__NR_perf_event_open, &attr, pid, /*cpu=*/-1, in bpfPerfEventOpen() local
61 if (perfEventFd < 0) { in bpfPerfEventOpen()
63 << "perfEventFd: " << perfEventFd << " " in bpfPerfEventOpen()
67 if (ioctl(perfEventFd, PERF_EVENT_IOC_SET_BPF, int(bpfProgramFd)) < 0) { in bpfPerfEventOpen()
71 if (ioctl(perfEventFd, PERF_EVENT_IOC_ENABLE, 0) < 0) { in bpfPerfEventOpen()