Home
last modified time | relevance | path

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

/linux-5.19.10/tools/testing/selftests/kvm/
Dkvm_binary_stats_test.c27 size_t size_desc; in stats_test() local
41 size_desc = sizeof(*stats_desc) + header->name_size; in stats_test()
64 (header->desc_offset + size_desc * header->num_desc <= in stats_test()
69 stats_desc = calloc(header->num_desc, size_desc); in stats_test()
73 size_desc * header->num_desc, header->desc_offset); in stats_test()
74 TEST_ASSERT(ret == size_desc * header->num_desc, in stats_test()
79 pdesc = (void *)stats_desc + i * size_desc; in stats_test()
135 pdesc = (void *)stats_desc + i * size_desc; in stats_test()
150 pdesc = (void *)stats_desc + i * size_desc; in stats_test()
/linux-5.19.10/virt/kvm/
Dbinary_stats.c60 size_t size_desc; in kvm_stats_read() local
67 size_desc = header->num_desc * sizeof(*desc); in kvm_stats_read()
69 len = KVM_STATS_NAME_SIZE + size_header + size_desc + size_stats - pos; in kvm_stats_read()
121 copylen = header->desc_offset + size_desc - pos; in kvm_stats_read()