[Click] Counters or other instrumentation
Manuel Requena
manuel.requena at cttc.es
Thu May 8 10:25:24 EDT 2008
Hi all,
I'm also interested in this kind of counters so I define:
#define CLICK_STATS 1
in include/click/element.hh
but I get the following compilation errors:
CXX ../lib/element.cc
../lib/element.cc: In function 'String read_icounts_handler(Element*, void*)':
../lib/element.cc:1885: error: 'const class Element::Port' has no member named 'allowed'
../lib/element.cc: In function 'String read_ocounts_handler(Element*, void*)':
../lib/element.cc:1897: error: 'const class Element::Port' has no member named 'allowed'
This happens in click-1.6.0 and latest cvs repository.
Maybe allowed() call should be changed by active()? Port class defines active() method and it seems
appropiate according to its comments. I try and it seems to work. I have icounts and ocounts
handlers.
Manuel
> -----Original Message-----
> From: click-bounces at amsterdam.lcs.mit.edu
> [mailto:click-bounces at amsterdam.lcs.mit.edu] On Behalf Of Eddie Kohler
> Sent: Wednesday, May 07, 2008 6:48 PM
> To: Roman Chertov
> Cc: Jeff Enderwick; click at amsterdam.lcs.mit.edu
> Subject: Re: [Click] Counters or other instrumentation
>
> In addition, if you compile click with
> #define CLICK_STATS 1
> each active port (push output/pull input) remembers how
> packets traversed it.
> This information is visible in the element's "ports" handler.
>
> Eddie
>
>
>
> Roman Chertov wrote:
> > Hello Jeff,
> > Each ToDevice has a counter associated with it.
> Additionally, you
> > can use AverageCounter elements to provide you with count/rate
> > statistics for packets and bytes.
> >
> > Roman
> >
> > Jeff Enderwick wrote:
> >> Using Click embedded in a Linux kernel. Wondering if there is any
> >> infrastructure to maintain counters at each port, or other
> >> instrumentation to see where the packets are going. If
> not, it might
> >> be a cool thing :-)
> >>
> >> _______________________________________________
> >> click mailing list
> >> click at amsterdam.lcs.mit.edu
> >> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> >>
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
More information about the click
mailing list