From: Vadim Kochan <vadim4j@gmail.com>
To: Thomas Graf <tgraf@suug.ch>
Cc: Vadim Kochan <vadim4j@gmail.com>,
Stephen Hemminger <stephen@networkplumber.org>,
netdev@vger.kernel.org
Subject: Re: iproute2 tc: Print qdisc, stats, class, filter info to string rather than FILE
Date: Thu, 8 Jan 2015 03:02:30 +0200 [thread overview]
Message-ID: <20150108010230.GA11821@angus-think.lan> (raw)
In-Reply-To: <20150108000620.GF21149@casper.infradead.org>
On Thu, Jan 08, 2015 at 12:06:20AM +0000, Thomas Graf wrote:
> On 01/08/15 at 01:46am, Vadim Kochan wrote:
> > I'd like to have text info from tc on screen and output on the other
> > data format to be the same, just only for this.
>
> Look at:
> https://github.com/tgraf/libnl/blob/master/src/nl-tctree-list.c
>
> It shows how to use an API to retrieve the information you want and
> allows to pretty print tc entries.
OK, may be I am not clearly described what I am trying to do ...
So I think it might be useful to have an option in TC which would be
generate classes graph in plot format but keep the same text info as it
is printed on console by default. I just think to re-use the existing
code which prints that text info to console but use it for plot
generating. Do you think that this not right thing feature to be in TC
and it might better to have this separately from TC ?
Thanks,
prev parent reply other threads:[~2015-01-08 1:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-07 21:53 iproute2 tc: Print qdisc, stats, class, filter info to string rather than FILE Vadim Kochan
2015-01-07 22:13 ` Florian Westphal
2015-01-07 22:12 ` Vadim Kochan
2015-01-07 23:08 ` Stephen Hemminger
2015-01-07 23:46 ` Vadim Kochan
2015-01-08 0:06 ` Thomas Graf
2015-01-08 1:02 ` Vadim Kochan [this message]
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=20150108010230.GA11821@angus-think.lan \
--to=vadim4j@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
--cc=tgraf@suug.ch \
/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).