Lines Matching defs:stats
17 * @id: identification string of the stats
18 * @header: stats header for a vm or a vcpu
19 * @desc: start address of an array of stats descriptors for a vm or a vcpu
20 * @stats: start address of stats data block for a vm or a vcpu
21 * @size_stats: the size of stats data block pointed by @stats
40 * 1. Read header from offset 0. Get the offset of descriptors and stats data
42 * lifecycle of the corresponding vm/vcpu stats fd.
44 * of the corresponding vm/vcpu stats fd.
45 * 3. Read descriptors from its offset and discover all the stats by parsing
47 * corresponding vm/vcpu stats fd.
48 * 4. Periodically read stats data from its offset using pread.
54 void *stats, size_t size_stats,
76 * Copy kvm stats header.
80 * size of header. That usually happens when userspace reads stats
81 * descriptors and stats data.
95 * Copy kvm stats header id string.
100 * header part and could be skipped for later descriptors and stats
115 * Copy kvm stats descriptors.
117 * userspace periodically read stats data, since the pos would be
132 /* Copy kvm stats values */
136 src = stats + pos - header->data_offset;