From: Greg Kurz <groug@kaod.org>
To: Bruno Piazera Larsen <bruno.larsen@eldorado.org.br>
Cc: farosas@linux.ibm.com, richard.henderson@linaro.org,
qemu-devel@nongnu.org, Markus Armbruster <armbru@redhat.com>,
lucas.araujo@eldorado.org.br, fernando.valle@eldorado.org.br,
qemu-ppc@nongnu.org, luis.pires@eldorado.org.br,
matheus.ferst@eldorado.org.br,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
david@gibson.dropbear.id.au
Subject: Re: [PATCH 4/5] monitor: removed cpustats command
Date: Thu, 27 May 2021 16:57:18 +0200 [thread overview]
Message-ID: <20210527165718.2515a6bb@bahia.lan> (raw)
In-Reply-To: <9581ce18-19f3-88fa-a042-c34eb7752eb4@eldorado.org.br>
On Thu, 27 May 2021 08:24:40 -0300
Bruno Piazera Larsen <bruno.larsen@eldorado.org.br> wrote:
>
> On 27/05/2021 05:30, Greg Kurz wrote:
> > On Thu, 27 May 2021 09:09:55 +0100
> > "Dr. David Alan Gilbert" <dgilbert@redhat.com> wrote:
> >
> >> * Greg Kurz (groug@kaod.org) wrote:
> >>> On Wed, 26 May 2021 17:21:03 -0300
> >>> "Bruno Larsen (billionai)" <bruno.larsen@eldorado.org.br> wrote:
> >>>
> >>>> 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.
> >>>>
> >>> So this is removing an obviously user visible feature. This should be
> >>> mentioned in docs/system/removed-features.rst... but, wait, I don't
> >>> see anything for it in docs/system/deprecated.rst. This is dropping
> >>> a feature without following the usual deprecation policy, i.e.
> >>> marking the feature as deprecated and only remove it 2 QEMU versions
> >>> later. Any justification for that ?
>
> The command called a function that ultimately called an empty callback
> unless you changed target/ppc/translate.c and removed the comments
> around #define DO_PPC_STATISTICS. And like I mentioned in the cover
> letter (which may not have been CC'ed to you, sorry) ppc was the last
> architecture to support this feature while they were using the legacy
> decode system, but as they move to decodetree, this data wouldn't even
> be collected.
>
> That's the justification, basically.
>
So to sum up, this HMP command doesn't produce any output with upstream
QEMU. Add a section in docs/system/removed-features.rst and just mention
that. Not worth reposting the full series just for that. This can be done
in a followup patch.
> >> As long as the command really isn't useful any more, I wouldn't object
> >> to that from an HMP point of view.
> >>
> > Ok then this should be documented in docs/system/removed-features.rst at
> > least.
> Sure, will send a patch later today with the update
> >
> >> Dave
> >>
> >>> David,
> >>>
> >>> Unrelated, I saw that you already applied this to ppc-for-6.1 on gitlab
> >>> but the commit title appears to be broken:
> >>>
> >>> '65;6401;1cmonitor: removed cpustats command
> >>>
> >>> https://gitlab.com/dgibson/qemu/-/commit/532be563eae6b8ae834ff7e9ebb1428f53569a69
> >>>
> >>>> Suggested-by: Richard Henderson <richard.henderson@linaro.org>
> >>>> Signed-off-by: Bruno Larsen (billionai) <bruno.larsen@eldorado.org.br>
> >>>> ---
> >>>> hmp-commands-info.hx | 13 -------------
> >>>> monitor/misc.c | 11 -----------
> >>>> 2 files changed, 24 deletions(-)
> >>>>
> >>>> diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx
> >>>> index ab0c7aa5ee..b2347a6aea 100644
> >>>> --- a/hmp-commands-info.hx
> >>>> +++ b/hmp-commands-info.hx
> >>>> @@ -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",
> >>>> diff --git a/monitor/misc.c b/monitor/misc.c
> >>>> index f3a393ea59..1539e18557 100644
> >>>> --- a/monitor/misc.c
> >>>> +++ b/monitor/misc.c
> >>>> @@ -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");
next prev parent reply other threads:[~2021-05-27 14:59 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-26 20:20 [PATCH 0/5] stop collection of instruction usage statistics Bruno Larsen (billionai)
2021-05-26 20:21 ` [PATCH 1/5] target/ppc: fixed GEN_OPCODE behavior when PPC_DUMP_CPU is set Bruno Larsen (billionai)
2021-05-26 21:13 ` Luis Fernando Fujita Pires
2021-05-26 21:24 ` Richard Henderson
2021-05-27 1:18 ` david
2021-05-26 20:21 ` [PATCH 2/5] target/ppc: remove ppc_cpu_dump_statistics Bruno Larsen (billionai)
2021-05-26 21:25 ` Richard Henderson
2021-05-26 21:27 ` Luis Fernando Fujita Pires
2021-05-27 1:20 ` David Gibson
2021-05-27 4:35 ` David Gibson
2021-05-27 13:22 ` Bruno Piazera Larsen
2021-05-27 14:01 ` Greg Kurz
2021-05-29 5:46 ` David Gibson
2021-05-27 6:01 ` Greg Kurz
2021-05-29 5:47 ` David Gibson
2021-05-31 14:26 ` Bruno Piazera Larsen
2021-05-26 20:21 ` [PATCH 3/5] target/ppc: removed mentions to DO_PPC_STATISTICS Bruno Larsen (billionai)
2021-05-26 21:26 ` Richard Henderson
2021-05-26 21:35 ` Luis Fernando Fujita Pires
2021-05-27 4:37 ` David Gibson
2021-05-26 20:21 ` [PATCH 4/5] monitor: removed cpustats command Bruno Larsen (billionai)
2021-05-26 21:28 ` Richard Henderson
2021-05-27 4:40 ` David Gibson
2021-05-26 21:35 ` Luis Fernando Fujita Pires
2021-05-27 6:40 ` Greg Kurz
2021-05-27 8:09 ` Dr. David Alan Gilbert
2021-05-27 8:30 ` Greg Kurz
2021-05-27 11:24 ` Bruno Piazera Larsen
2021-05-27 14:57 ` Greg Kurz [this message]
2021-06-08 15:10 ` Markus Armbruster
2021-06-08 15:15 ` Greg Kurz
2021-05-27 8:08 ` Dr. David Alan Gilbert
2021-05-26 20:21 ` [PATCH 5/5] hw/core/cpu: removed cpu_dump_statistics function Bruno Larsen (billionai)
2021-05-26 21:29 ` Richard Henderson
2021-05-26 21:35 ` Luis Fernando Fujita Pires
2021-05-27 1:21 ` David Gibson
2021-05-27 21:05 ` Eduardo Habkost
2021-05-27 13:57 ` [PATCH 0/5] stop collection of instruction usage statistics Alex Bennée
2021-05-27 14:23 ` Bruno Piazera Larsen
2021-05-27 14:25 ` Luis Fernando Fujita Pires
2021-05-27 14:56 ` Alex Bennée
2021-05-27 15:39 ` Luis Fernando Fujita Pires
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210527165718.2515a6bb@bahia.lan \
--to=groug@kaod.org \
--cc=armbru@redhat.com \
--cc=bruno.larsen@eldorado.org.br \
--cc=david@gibson.dropbear.id.au \
--cc=dgilbert@redhat.com \
--cc=farosas@linux.ibm.com \
--cc=fernando.valle@eldorado.org.br \
--cc=lucas.araujo@eldorado.org.br \
--cc=luis.pires@eldorado.org.br \
--cc=matheus.ferst@eldorado.org.br \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).