Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/ring-buffer/
H A Dmap_test.c76 int cpu_fd; member
90 desc->cpu_fd = open(cpu_path, O_RDONLY | O_NONBLOCK); in tracefs_cpu_map()
92 if (desc->cpu_fd < 0) in tracefs_cpu_map()
96 map = mmap(NULL, page_size, PROT_READ, MAP_SHARED, desc->cpu_fd, 0); in tracefs_cpu_map()
117 close(desc->cpu_fd); in tracefs_cpu_unmap()
195 ASSERT_EQ(ioctl(desc->cpu_fd, TRACE_MMAP_IOCTL_GET_READER), 0); in TEST_F()
202 ASSERT_EQ(ioctl(desc->cpu_fd, TRACE_MMAP_IOCTL_GET_READER), 0); in TEST_F()
225 desc->cpu_fd, meta_len); in TEST_F()
232 desc->cpu_fd, meta_len); in TEST_F()
239 desc->cpu_fd, meta_len); in TEST_F()
[all …]