From: Markus Armbruster <armbru@redhat.com>
To: vandersonmr <vandersonmr2@gmail.com>
Cc: qemu-devel@nongnu.org, "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3 5/6] monitor: adding info tb and tbs to monitor
Date: Fri, 05 Jul 2019 15:54:21 +0200 [thread overview]
Message-ID: <877e8wk2nm.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <20190702210017.4275-5-vandersonmr2@gmail.com> (vandersonmr's message of "Tue, 2 Jul 2019 18:00:16 -0300")
vandersonmr <vandersonmr2@gmail.com> writes:
> adding options to list tbs by some metric and
> investigate their code.
What's "tbs"?
Why is listing them useful?
What do you mean by "some metric"?
What do you mean by "and investigate their code?"
> Signed-off-by: Vanderson M. do Rosario <vandersonmr2@gmail.com>
> ---
> hmp-commands-info.hx | 22 ++++++++++++++
> monitor/misc.c | 69 ++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 91 insertions(+)
>
> diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx
> index c59444c461..0b8c0de95d 100644
> --- a/hmp-commands-info.hx
> +++ b/hmp-commands-info.hx
> @@ -288,6 +288,28 @@ ETEXI
> .params = "",
> .help = "show dynamic compiler info",
> .cmd = hmp_info_jit,
> + {
> + .name = "tbs",
> + .args_type = "number:i?,sortedby:s?",
> + .params = "[number sortedby]",
> + .help = "show a [number] translated blocks sorted by [sortedby]"
> + "sortedby opts: hotness hg",
Your use of [square brackets] in .help is unusual. Please try to have
your commands' help blend into the existing help.
> + .cmd = hmp_info_tbs,
> + },
> + {
> + .name = "tb",
> + .args_type = "id:i,flags:s?",
> + .params = "id [log1[,...] flags]",
> + .help = "show information about one translated block by id",
> + .cmd = hmp_info_tb,
> + },
> + {
> + .name = "coverset",
> + .args_type = "number:i?",
> + .params = "[number]",
> + .help = "show hottest translated blocks neccesary to cover"
> + "[number]% of the execution count",
When a parameter takes a percentage, "number" is a suboptimal name :)
> + .cmd = hmp_info_coverset,
> },
> #endif
>
Standard request for new HMP commands without corresponding QMP
commands: please state in the commit message why the QMP command is not
worthwhile.
HMP commands without a QMP equivalent are okay if their functionality
makes no sense in QMP, or is of use only for human users.
Example for "makes no sense in QMP": setting the current CPU, because a
QMP monitor doesn't have a current CPU.
Examples for "is of use only for human users": HMP command "help", the
integrated pocket calculator.
Debugging commands are kind of borderline. Debugging is commonly a
human activity, where HMP is just fine. However, humans create tools to
assist with their activities, and then QMP is useful. While I wouldn't
encourage HMP-only for the debugging use case, I wouldn't veto it.
Your (overly terse!) commit message and help texts make me guess the
commands are for gathering statistics. Statistics can have debugging
uses. But they often have non-debugging uses as well. What use cases
can you imagine for these commands?
[...]
next prev parent reply other threads:[~2019-07-05 14:02 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-02 21:00 [Qemu-devel] [PATCH v3 1/6] accel/tcg: adding structure to store TB statistics vandersonmr
2019-07-02 21:00 ` [Qemu-devel] [PATCH v3 2/6] accel/tcg: Adding an optional tb execution counter vandersonmr
2019-07-04 15:22 ` Alex Bennée
2019-07-02 21:00 ` [Qemu-devel] [PATCH v3 3/6] accel/tcg: Collecting translation/code quality measurements vandersonmr
2019-07-04 15:39 ` Alex Bennée
2019-07-02 21:00 ` [Qemu-devel] [PATCH v3 4/6] util/log: introduce dump of tbstats and -d hot_tbs:limit vandersonmr
2019-07-04 15:40 ` Alex Bennée
2019-07-04 16:34 ` Alex Bennée
2019-07-02 21:00 ` [Qemu-devel] [PATCH v3 5/6] monitor: adding info tb and tbs to monitor vandersonmr
2019-07-04 16:36 ` Alex Bennée
2019-07-05 13:54 ` Markus Armbruster [this message]
2019-07-05 14:36 ` Alex Bennée
2019-07-06 6:09 ` Markus Armbruster
2019-07-08 2:51 ` Vanderson Martins do Rosario
2019-07-08 4:49 ` Marc-André Lureau
2019-07-09 9:57 ` Dr. David Alan Gilbert
2019-07-02 21:00 ` [Qemu-devel] [PATCH v3 6/6] monitor: adding start_stats " vandersonmr
2019-07-04 16:43 ` Alex Bennée
2019-07-04 14:05 ` [Qemu-devel] [PATCH v3 1/6] accel/tcg: adding structure to store TB statistics Alex Bennée
2019-07-04 14:05 ` Alex Bennée
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=877e8wk2nm.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=dgilbert@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=vandersonmr2@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.