[ofa-general] [infiniband-diags] if perfquery -a is specified loop through ports if required and aggregate output
Al Chu
chu11 at llnl.gov
Fri Oct 10 16:03:05 PDT 2008
Oops, forgot to attach the patch. Here it is.
Al
On Fri, 2008-10-10 at 16:02 -0700, Al Chu wrote:
> Hey Sasha,
>
> And finally the big patch. If -a is specified and AllPortSelect is not
> supported (and -l isn't specified) loop through all ports and aggregate
> them into one output.
>
> So the patch is a tad lengthy given the manual packet parsing/counting
> that had to be done. I'm not aware of any libs/helper funcs in OFED
> that could have made this code shorter. Please let me know if there are
> some obvious funcs that could make this better.
>
> Also, my understanding is that in IB, counters don't wrap around. When
> they get to the max they stay at the max. So wrap-around checks for all
> of the counters is there as I added things up. Couldn't find some
> wrapper funcs for this in OFED already. So hopefully I'm not repeating
> code.
>
> Al
>
--
Albert Chu
chu11 at llnl.gov
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-aggregate-port-counters-for-single-output-under-al.patch
Type: text/x-patch
Size: 10748 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20081010/a27aed4c/attachment.bin>
More information about the general
mailing list