Searched refs:stats_fd (Results 1 - 5 of 5) sorted by relevance
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | enable_stats.c | 8 int stats_fd, err, prog_fd; local 17 stats_fd = bpf_enable_stats(BPF_STATS_RUN_TIME); 18 if (CHECK(stats_fd < 0, "get_stats_fd", "failed %d\n", errno)) { 44 close(stats_fd);
|
H A D | prog_run_opts.c | 26 int err, stats_fd = -1, prog_fd; local 38 stats_fd = bpf_enable_stats(BPF_STATS_RUN_TIME); 39 if (!ASSERT_GE(stats_fd, 0, "enable_stats good fd")) 75 if (stats_fd >= 0) 76 close(stats_fd);
|
/linux-master/tools/testing/selftests/kvm/ |
H A D | kvm_binary_stats_test.c | 24 static void stats_test(int stats_fd) argument 38 read_stats_header(stats_fd, &header); 46 ret = pread(stats_fd, id, header.name_size, sizeof(header)); 74 stats_desc = read_stats_descriptors(stats_fd, &header); 158 ret = pread(stats_fd, stats_data, size_data, header.data_offset); 163 read_stat_data(stats_fd, &header, pdesc, stats_data, 171 close(stats_fd); 172 TEST_ASSERT(fcntl(stats_fd, F_GETFD) == -1, "Stats fd not freed");
|
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | kvm_util.c | 749 if (vmp->stats_fd) { 751 close(vmp->stats_fd); 2190 * stats_fd - the file descriptor for the binary stats file from which to read 2201 struct kvm_stats_desc *read_stats_descriptors(int stats_fd, argument 2213 ret = pread(stats_fd, stats_desc, total_size, header->desc_offset); 2223 * stats_fd - the file descriptor for the binary stats file from which to read 2233 void read_stat_data(int stats_fd, struct kvm_stats_header *header, argument 2244 ret = pread(stats_fd, data, size, 2274 if (!vm->stats_fd) { 2275 vm->stats_fd [all...] |
/linux-master/tools/testing/selftests/kvm/include/ |
H A D | kvm_util_base.h | 123 int stats_fd; member in struct:kvm_vm 491 static inline void read_stats_header(int stats_fd, struct kvm_stats_header *header) argument 495 ret = pread(stats_fd, header, sizeof(*header), 0); 501 struct kvm_stats_desc *read_stats_descriptors(int stats_fd, 526 void read_stat_data(int stats_fd, struct kvm_stats_header *header,
|
Completed in 124 milliseconds