Changeset View
Changeset View
Standalone View
Standalone View
head/sys/amd64/vmm/vmm_stat.c
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | vmm_stat_register(void *arg) | ||||
/* We require all stats to identify themselves with a description */ | /* We require all stats to identify themselves with a description */ | ||||
if (vst->desc == NULL) | if (vst->desc == NULL) | ||||
return; | return; | ||||
if (vst->scope == VMM_STAT_SCOPE_INTEL && !vmm_is_intel()) | if (vst->scope == VMM_STAT_SCOPE_INTEL && !vmm_is_intel()) | ||||
return; | return; | ||||
if (vst->scope == VMM_STAT_SCOPE_AMD && !vmm_is_amd()) | if (vst->scope == VMM_STAT_SCOPE_AMD && !vmm_is_svm()) | ||||
return; | return; | ||||
if (vst_num_elems + vst->nelems >= MAX_VMM_STAT_ELEMS) { | if (vst_num_elems + vst->nelems >= MAX_VMM_STAT_ELEMS) { | ||||
printf("Cannot accommodate vmm stat type \"%s\"!\n", vst->desc); | printf("Cannot accommodate vmm stat type \"%s\"!\n", vst->desc); | ||||
return; | return; | ||||
} | } | ||||
vst->index = vst_num_elems; | vst->index = vst_num_elems; | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |