[PATCH 0/2] Add device statistics interface



This patch set add a statistics interface for each device so clients can
be notified of current network activity. This happens by
PropertiesChanged signals, which are generated when the measured
magnitudes change, with a minimum time between signals determined by
the RefreshRateMs property. Also, when this property is set to zero,
the interface gets deactivated and no more signals are generated.

These patches are an initial implementation looking for comments. The
underlaying mechanism used to track activity is netlink routing sockets.
For the moment, TxBytes and RxBytes are the only magnitudes measured.

Alfonso Sanchez-Beato (2):
  exported-object: allow exporting multiple ifaces
  device: add statistics interface

 introspection/Makefile.am              |   6 +-
 introspection/nm-device-statistics.xml |  43 ++++
 libnm-core/nm-dbus-interface.h         |   1 +
 src/Makefile.am                        |   2 +
 src/devices/nm-device-private.h        |   3 +
 src/devices/nm-device-statistics.c     | 407 +++++++++++++++++++++++++++++++++
 src/devices/nm-device-statistics.h     |  33 +++
 src/devices/nm-device.c                | 102 ++++++++-
 src/devices/nm-device.h                |   4 +
 src/nm-exported-object.c               |  18 +-
 src/nm-types.h                         |   1 +
 11 files changed, 610 insertions(+), 10 deletions(-)
 create mode 100644 introspection/nm-device-statistics.xml
 create mode 100644 src/devices/nm-device-statistics.c
 create mode 100644 src/devices/nm-device-statistics.h

-- 
2.7.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]