From: Wei Liu <wei.liu2@citrix.com>
To: Stefan Wieser <swieser@edu.aau.at>
Cc: xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com,
wei.liu2@citrix.com
Subject: Re: [PATCH] xentop: Adds options for tabs-separators, and including the domain ID in the output.
Date: Mon, 15 Aug 2016 13:17:03 +0100 [thread overview]
Message-ID: <20160815121703.GS20641@citrix.com> (raw)
In-Reply-To: <20160815120932.GQ20641@citrix.com>
On Mon, Aug 15, 2016 at 01:09:32PM +0100, Wei Liu wrote:
> On Sat, Aug 13, 2016 at 05:51:21PM +0000, Stefan Wieser wrote:
> > This change adds two options to xentop:
> >
> > -T adds a tabulator (\t) character after each field, to allow
> > easier and more robust parsing. This affects batch mode only.
> > -I includes a column with the domain ID in the output (both the
> > graphical output, and the batch output)
> >
> > This makes the output easier to parse for automated tools.
> > If none of the options are passed, the output is unchanged, so none of them would break existing tools.
>
> Line too long.
>
> And thanks for having compatibility in mind.
>
> > @@ -1235,9 +1273,19 @@ int main(int argc, char **argv)
> > case 't':
> > show_tmem = 1;
> > break;
> > + case 'T':
> > + use_tabs = 1;
> > + break;
> > + case 'I':
> > + show_domid = 1;
> > + break;
> > }
> > }
> >
> > + if (use_tabs && !batch) {
> > + fail("Cannot use tabs in interactive mode.\n");
> > + }
> > +
>
> Minor nit: no need to use {} here.
>
> No need to resend, though. Should be easy to fix if I am to commit this
> patch.
>
> All in all I have no opinion for a few new options. I will wait a few
> gays so that other people can express their opinions.
>
^ days, sorry...
> Wei.
>
> > /* Get xenstat handle */
> > xhandle = xenstat_init();
> > if (xhandle == NULL)
> > --
> > 1.9.1
> >
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-08-15 12:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-13 17:51 [PATCH] xentop: Adds options for tabs-separators, and including the domain ID in the output Stefan Wieser
2016-08-15 12:09 ` Wei Liu
2016-08-15 12:17 ` Wei Liu [this message]
2016-08-15 13:41 ` Ian Jackson
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=20160815121703.GS20641@citrix.com \
--to=wei.liu2@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=swieser@edu.aau.at \
--cc=xen-devel@lists.xenproject.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).