Skip to content

Commit

Permalink
monitor: removed cpustats command
Browse files Browse the repository at this point in the history
Since ppc was the last architecture to collect these statistics and
it is currently phasing this collection out, the command that would query
this information is being removed.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Bruno Larsen (billionai) <bruno.larsen@eldorado.org.br>
Message-Id: <20210526202104.127910-5-bruno.larsen@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
  • Loading branch information
Bruno Larsen (billionai) authored and dgibson committed Jun 3, 2021
1 parent 169989a commit de3036a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
13 changes: 0 additions & 13 deletions hmp-commands-info.hx
Original file line number Diff line number Diff line change
Expand Up @@ -500,19 +500,6 @@ SRST
Show the current VM UUID.
ERST

{
.name = "cpustats",
.args_type = "",
.params = "",
.help = "show CPU statistics",
.cmd = hmp_info_cpustats,
},

SRST
``info cpustats``
Show CPU statistics.
ERST

#if defined(CONFIG_SLIRP)
{
.name = "usernet",
Expand Down
11 changes: 0 additions & 11 deletions monitor/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,17 +369,6 @@ static void hmp_info_history(Monitor *mon, const QDict *qdict)
}
}

static void hmp_info_cpustats(Monitor *mon, const QDict *qdict)
{
CPUState *cs = mon_get_cpu(mon);

if (!cs) {
monitor_printf(mon, "No CPU available\n");
return;
}
cpu_dump_statistics(cs, 0);
}

static void hmp_info_trace_events(Monitor *mon, const QDict *qdict)
{
const char *name = qdict_get_try_str(qdict, "name");
Expand Down

0 comments on commit de3036a

Please sign in to comment.