aboutsummaryrefslogtreecommitdiff
path: root/net/Makefile
diff options
context:
space:
mode:
authorMike Chan <mike@android.com>2011-09-19 21:17:20 -0700
committerPraneeth Bajjuri <praneeth@ti.com>2011-09-19 21:18:24 -0700
commit5571e9c8d1044809f77c166bfdbf4b12ccaf9ada (patch)
tree0d05802cef0e029c3c04c09c63469b5e4fd0c021 /net/Makefile
parent5e94167bdfdd76fd507c214cde0fe4411fec7641 (diff)
downloadlinux-linaro-5571e9c8d1044809f77c166bfdbf4b12ccaf9ada.tar.gz
net: activity_stats: Add statistics for network transmission activity
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: I15136982e997f7f6120f0b46074bfd87e121a6b0 Signed-off-by: Mike Chan <mike@android.com>
Diffstat (limited to 'net/Makefile')
-rw-r--r--net/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index acdde4950de..3b62f1a4252 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -69,3 +69,4 @@ obj-$(CONFIG_DNS_RESOLVER) += dns_resolver/
obj-$(CONFIG_CEPH_LIB) += ceph/
obj-$(CONFIG_BATMAN_ADV) += batman-adv/
obj-$(CONFIG_NFC) += nfc/
+obj-$(CONFIG_NET_ACTIVITY_STATS) += activity_stats.o