mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
balloon: drop old stats code & API
Next commit will re-enable balloon stats with a different interface, but this old code conflicts with it. Let's drop it. It's important to note that the QMP and HMP interfaces are also dropped by this commit. That shouldn't be a problem though, because: 1. All QMP fields are optional 2. This feature has always been disabled Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
58513bde83
commit
01ceb97e7b
4 changed files with 2 additions and 79 deletions
24
hmp.c
24
hmp.c
|
@ -465,29 +465,7 @@ void hmp_info_balloon(Monitor *mon, const QDict *qdict)
|
|||
return;
|
||||
}
|
||||
|
||||
monitor_printf(mon, "balloon: actual=%" PRId64, info->actual >> 20);
|
||||
if (info->has_mem_swapped_in) {
|
||||
monitor_printf(mon, " mem_swapped_in=%" PRId64, info->mem_swapped_in);
|
||||
}
|
||||
if (info->has_mem_swapped_out) {
|
||||
monitor_printf(mon, " mem_swapped_out=%" PRId64, info->mem_swapped_out);
|
||||
}
|
||||
if (info->has_major_page_faults) {
|
||||
monitor_printf(mon, " major_page_faults=%" PRId64,
|
||||
info->major_page_faults);
|
||||
}
|
||||
if (info->has_minor_page_faults) {
|
||||
monitor_printf(mon, " minor_page_faults=%" PRId64,
|
||||
info->minor_page_faults);
|
||||
}
|
||||
if (info->has_free_mem) {
|
||||
monitor_printf(mon, " free_mem=%" PRId64, info->free_mem);
|
||||
}
|
||||
if (info->has_total_mem) {
|
||||
monitor_printf(mon, " total_mem=%" PRId64, info->total_mem);
|
||||
}
|
||||
|
||||
monitor_printf(mon, "\n");
|
||||
monitor_printf(mon, "balloon: actual=%" PRId64 "\n", info->actual >> 20);
|
||||
|
||||
qapi_free_BalloonInfo(info);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue