mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
perf: Remove the switch from qemuDomainGetStatsPerf
Remove the unnecessary switch since all VIR_PERF_EVENT* values are fetched
This commit is contained in:
parent
f52b24d837
commit
062f413928
@ -19295,15 +19295,9 @@ qemuDomainGetStatsPerf(virQEMUDriverPtr driver ATTRIBUTE_UNUSED,
|
||||
if (!virPerfEventIsEnabled(priv->perf, i))
|
||||
continue;
|
||||
|
||||
switch (i) {
|
||||
case VIR_PERF_EVENT_CMT:
|
||||
case VIR_PERF_EVENT_MBMT:
|
||||
case VIR_PERF_EVENT_MBML:
|
||||
if (qemuDomainGetStatsPerfOneEvent(priv->perf, i, record,
|
||||
maxparams) < 0)
|
||||
goto cleanup;
|
||||
break;
|
||||
}
|
||||
if (qemuDomainGetStatsPerfOneEvent(priv->perf, i,
|
||||
record, maxparams) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user