[dpdk-dev] [PATCH v4] doc: guidelines for library statistics
Morten Brørup
mb at smartsharesystems.com
Thu Jun 18 16:38:56 CEST 2015
The suggested solution with only one single flag per library prevents implementing statistics with varying granularity for different purposes. E.g. a library could have one set of statistics counters for ordinary SNMP purposes, and another set of statistics counters for debugging/optimization purposes.
Multiple flags per library should be possible. A hierarchy of flags per library is probably not required.
And since the compile time flag CONFIG_RTE_<LIBRARY_NAME>[_<STATS_COLLECTION_NAME>]_STATS_COLLECT already tells the application if the statistics are present or not, the application should simply use this flag to determine if statistics are accessible or not.
Med venlig hilsen / kind regards
Morten Brørup
CTO
SmartShare Systems A/S
Tonsbakken 16-18
DK-2740 Skovlunde
Denmark
Office +45 70 20 00 93
Direct +45 89 93 50 22
Mobile +45 25 40 82 12
mb at smartsharesystems.com <mailto:mb at smartsharesystems.com>
www.smartsharesystems.com <http://www.smartsharesystems.com/>
More information about the dev
mailing list