mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
maint: clean up _virDomainMemoryStat
Clean up all _virDomainMemoryStat. Signed-off-by: James <james.wangyufei@huawei.com> Signed-off-by: Wang Rui <moon.wangrui@huawei.com> Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
744d0f3de0
commit
18a6dc93e5
@ -1604,7 +1604,7 @@ remoteDispatchDomainMemoryStats(virNetServerPtr server ATTRIBUTE_UNUSED,
|
|||||||
remote_domain_memory_stats_ret *ret)
|
remote_domain_memory_stats_ret *ret)
|
||||||
{
|
{
|
||||||
virDomainPtr dom = NULL;
|
virDomainPtr dom = NULL;
|
||||||
struct _virDomainMemoryStat *stats = NULL;
|
virDomainMemoryStatPtr stats = NULL;
|
||||||
int nr_stats;
|
int nr_stats;
|
||||||
size_t i;
|
size_t i;
|
||||||
int rv = -1;
|
int rv = -1;
|
||||||
|
@ -535,7 +535,7 @@ typedef int
|
|||||||
|
|
||||||
typedef int
|
typedef int
|
||||||
(*virDrvDomainMemoryStats)(virDomainPtr domain,
|
(*virDrvDomainMemoryStats)(virDomainPtr domain,
|
||||||
struct _virDomainMemoryStat *stats,
|
virDomainMemoryStatPtr stats,
|
||||||
unsigned int nr_stats,
|
unsigned int nr_stats,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
|
@ -5387,7 +5387,7 @@ lxcNodeGetInfo(virConnectPtr conn,
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
lxcDomainMemoryStats(virDomainPtr dom,
|
lxcDomainMemoryStats(virDomainPtr dom,
|
||||||
struct _virDomainMemoryStat *stats,
|
virDomainMemoryStatPtr stats,
|
||||||
unsigned int nr_stats,
|
unsigned int nr_stats,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
|
@ -10187,7 +10187,7 @@ qemuDomainGetInterfaceParameters(virDomainPtr dom,
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
qemuDomainMemoryStats(virDomainPtr dom,
|
qemuDomainMemoryStats(virDomainPtr dom,
|
||||||
struct _virDomainMemoryStat *stats,
|
virDomainMemoryStatPtr stats,
|
||||||
unsigned int nr_stats,
|
unsigned int nr_stats,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
|
@ -684,7 +684,7 @@ int qemuMonitorTextGetBalloonInfo(qemuMonitorPtr mon,
|
|||||||
|
|
||||||
if ((offset = strstr(reply, BALLOON_PREFIX)) != NULL) {
|
if ((offset = strstr(reply, BALLOON_PREFIX)) != NULL) {
|
||||||
offset += strlen(BALLOON_PREFIX);
|
offset += strlen(BALLOON_PREFIX);
|
||||||
struct _virDomainMemoryStat stats[1];
|
virDomainMemoryStatStruct stats[1];
|
||||||
|
|
||||||
if (qemuMonitorParseBalloonInfo(offset, stats, 1) == 0) {
|
if (qemuMonitorParseBalloonInfo(offset, stats, 1) == 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
|
@ -2690,7 +2690,7 @@ remoteDomainGetSchedulerType(virDomainPtr domain, int *nparams)
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
remoteDomainMemoryStats(virDomainPtr domain,
|
remoteDomainMemoryStats(virDomainPtr domain,
|
||||||
struct _virDomainMemoryStat *stats,
|
virDomainMemoryStatPtr stats,
|
||||||
unsigned int nr_stats,
|
unsigned int nr_stats,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
|
@ -295,7 +295,7 @@ cmdDomMemStat(vshControl *ctl, const vshCmd *cmd)
|
|||||||
{
|
{
|
||||||
virDomainPtr dom;
|
virDomainPtr dom;
|
||||||
const char *name;
|
const char *name;
|
||||||
struct _virDomainMemoryStat stats[VIR_DOMAIN_MEMORY_STAT_NR];
|
virDomainMemoryStatStruct stats[VIR_DOMAIN_MEMORY_STAT_NR];
|
||||||
unsigned int nr_stats;
|
unsigned int nr_stats;
|
||||||
size_t i;
|
size_t i;
|
||||||
int ret = false;
|
int ret = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user