summaryrefslogtreecommitdiff
path: root/include/net/activity_stats.h (follow)
Commit message (Collapse)AuthorAge
* Revert "net: activity_stats: Add statistics for network transmission activity"Amit Pundir2016-07-28
| | | | | | | | | | | | This reverts commit afedd7beba14385fd797166751fde39e0f52cf72. Change-Id: Ibc9160b445254b0212c23664a94fd27b7788aa76 CRs-Fixed: 1035969 Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Git-commit: 42d9422a803afc7c1db3502787fdbe75577bc14d Git-repo: https://android.googlesource.com/kernel/common/ [bflowers@codeaurora.org: Fix-up internal configs] Signed-off-by: Bryse Flowers <bflowers@codeaurora.org>
* net: activity_stats: Add statistics for network transmission activityMike Chan2016-02-16
When enabled, tracks the frequency of network transmissions (inbound and outbound) and buckets them accordingly. Buckets are determined by time between network activity. Each bucket represents the number of network transmisions that were N sec or longer apart. Where N is defined as 1 << bucket index. This network pattern tracking is particularly useful for wireless networks (ie: 3G) where batching network activity closely together is more power efficient than far apart. New file: /proc/net/stat/activity output: Min Bucket(sec) Count 1 7 2 0 4 1 8 0 16 0 32 2 64 1 128 0 Change-Id: I4c4cd8627b872a55f326b1715c51bc3bdd6e8d92 Signed-off-by: Mike Chan <mike@android.com>