[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150108010230.GA11821@angus-think.lan>
Date: Thu, 8 Jan 2015 03:02:30 +0200
From: Vadim Kochan <vadim4j@...il.com>
To: Thomas Graf <tgraf@...g.ch>
Cc: Vadim Kochan <vadim4j@...il.com>,
Stephen Hemminger <stephen@...workplumber.org>,
netdev@...r.kernel.org
Subject: Re: iproute2 tc: Print qdisc, stats, class, filter info to string
rather than FILE
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,
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists