MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vmm_stat_array_incr

Function vmm_stat_array_incr

freebsd/amd64/vmm/vmm_stat.h:96–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94int vmm_stat_desc_copy(int index, char *buf, int buflen);
95
96static void __inline
97vmm_stat_array_incr(struct vm *vm, int vcpu, struct vmm_stat_type *vst,
98 int statidx, uint64_t x)
99{
100#ifdef VMM_KEEP_STATS
101 uint64_t *stats;
102
103 stats = vcpu_stats(vm, vcpu);
104
105 if (vst->index >= 0 && statidx < vst->nelems)
106 stats[vst->index + statidx] += x;
107#endif
108}
109
110static void __inline
111vmm_stat_array_set(struct vm *vm, int vcpu, struct vmm_stat_type *vst,

Callers 4

vmm_stat_incrFunction · 0.85
vlapic_trigger_lvtFunction · 0.85
vlapic_self_ipi_handlerFunction · 0.85

Calls 1

vcpu_statsFunction · 0.85

Tested by

no test coverage detected