Lines Matching refs:stats_fd
4174 static StatsDescriptors *find_stats_descriptors(StatsTarget target, int stats_fd, in find_stats_descriptors() argument
4195 ret = pread(stats_fd, kvm_stats_header, sizeof(*kvm_stats_header), 0); in find_stats_descriptors()
4207 ret = pread(stats_fd, kvm_stats_desc, in find_stats_descriptors()
4226 strList *names, int stats_fd, CPUState *cpu, in query_stats() argument
4239 descriptors = find_stats_descriptors(target, stats_fd, errp); in query_stats()
4255 ret = pread(stats_fd, stats_data, size_data, kvm_stats_header->data_offset); in query_stats()
4294 int stats_fd, Error **errp) in query_stats_schema() argument
4304 descriptors = find_stats_descriptors(target, stats_fd, errp); in query_stats_schema()
4324 int stats_fd = cpu->kvm_vcpu_stats_fd; in query_stats_vcpu() local
4327 if (stats_fd == -1) { in query_stats_vcpu()
4333 kvm_stats_args->names, stats_fd, cpu, in query_stats_vcpu()
4339 int stats_fd = cpu->kvm_vcpu_stats_fd; in query_stats_schema_vcpu() local
4342 if (stats_fd == -1) { in query_stats_schema_vcpu()
4347 query_stats_schema(kvm_stats_args->result.schema, STATS_TARGET_VCPU, stats_fd, in query_stats_schema_vcpu()
4356 int stats_fd; in query_stats_cb() local
4361 stats_fd = kvm_vm_ioctl(s, KVM_GET_STATS_FD, NULL); in query_stats_cb()
4362 if (stats_fd == -1) { in query_stats_cb()
4366 query_stats(result, target, names, stats_fd, NULL, errp); in query_stats_cb()
4367 close(stats_fd); in query_stats_cb()
4393 int stats_fd; in query_stats_schemas_cb() local
4395 stats_fd = kvm_vm_ioctl(s, KVM_GET_STATS_FD, NULL); in query_stats_schemas_cb()
4396 if (stats_fd == -1) { in query_stats_schemas_cb()
4400 query_stats_schema(result, STATS_TARGET_VM, stats_fd, errp); in query_stats_schemas_cb()
4401 close(stats_fd); in query_stats_schemas_cb()