Lines Matching refs:cpuInstrFd
222 if (!arch_perfCreate(run, run->pid, _HF_DYNFILE_INSTR_COUNT, &run->linux.cpuInstrFd)) { in arch_perfOpen()
249 close(run->linux.cpuInstrFd); in arch_perfOpen()
250 run->linux.cpuInstrFd = -1; in arch_perfOpen()
274 close(run->linux.cpuInstrFd); in arch_perfClose()
275 run->linux.cpuInstrFd = -1; in arch_perfClose()
301 ioctl(run->linux.cpuInstrFd, PERF_EVENT_IOC_ENABLE, 0); in arch_perfEnable()
336 run->linux.cpuInstrFd != -1) { in arch_perfAnalyze()
337 ioctl(run->linux.cpuInstrFd, PERF_EVENT_IOC_DISABLE, 0); in arch_perfAnalyze()
338 if (files_readFromFd(run->linux.cpuInstrFd, (uint8_t*)&instrCount, sizeof(instrCount)) != in arch_perfAnalyze()
340 PLOG_E("read(perfFd='%d') failed", run->linux.cpuInstrFd); in arch_perfAnalyze()
342 ioctl(run->linux.cpuInstrFd, PERF_EVENT_IOC_RESET, 0); in arch_perfAnalyze()