Searched refs:cycles_fd (Results 1 – 1 of 1) sorted by relevance
35 static int cycles_fd; variable73 cycles_fd = sys_perf_event_open(&cycle_attr, getpid(), -1, -1, perf_event_open_cloexec_flag()); in init_cycles()75 if (cycles_fd < 0 && errno == ENOSYS) { in init_cycles()80 return cycles_fd; in init_cycles()88 ret = read(cycles_fd, &clk, sizeof(u64)); in get_cycles()