Searched refs:clock_fd (Results 1 – 1 of 1) sorted by relevance
28 static int clock_fd; variable84 clock_fd = sys_perf_event_open(&clock_attr, getpid(), -1, -1, 0); in init_clock()86 if (clock_fd < 0 && errno == ENOSYS) in init_clock()89 BUG_ON(clock_fd < 0); in init_clock()97 ret = read(clock_fd, &clk, sizeof(u64)); in get_clock()