Before sending an RFC on my work with network coding/catwoman, I would like some feedback on this stats-feature I build to measure the behaviour of catwoman.
It is basically a set of counters that are incremented on various places in the code as a more detailed alternative to the interface statistics.
Currently, my catwoman branch uses these counters (e.g. to tell how many packets are coded together), but other counters can easily be added. E.g. counters relevant to the BLA, DAT, OGM/ELP code.
If this feature is unneeded/unwanted, I will remove the dependency in catwoman.
Martin Hundebøll (2): batman-adv: Add interface to keep stats batman-adv: Increment stat counters on rx, tx, fwd
Makefile | 2 + Makefile.kbuild | 1 + bat_debugfs.c | 17 +++++++ bat_stats.c | 132 ++++++++++++++++++++++++++++++++++++++++++++++++ bat_stats.h | 60 ++++++++++++++++++++++ gen-compat-autoconf.sh | 1 + main.c | 6 +++ routing.c | 2 + soft-interface.c | 3 ++ types.h | 20 ++++++++ 10 files changed, 244 insertions(+) create mode 100644 bat_stats.c create mode 100644 bat_stats.h