commit | 93afbf258f554e980b58c3c67d55ebbb3e4eb915 | [log] [tgz] |
---|---|---|
author | Chenbo Feng <fengc@google.com> | Thu Jan 18 19:48:52 2018 -0800 |
committer | Chenbo Feng <fengc@google.com> | Tue Jan 23 00:35:02 2018 -0800 |
tree | 4cd78252d3a7d85ddee6e706badb6cbf2cf0c2ec | |
parent | 828f1b45fb302f68b5eb8934bf474177fa249c7c [diff] |
Use /proc/net/dev to get stats summary If the qtaguid proc file is no longer exist, the device is running new eBPF module to do traffic accounting. So the NetworkStatsFactory need to use the proc/net/dev interface to get the per interface traffic stats summary. Also, adding a test to verify the helper function work properly Bug: 30950746 Test: run NetworkStatsFactoryTest Change-Id: Ia36808bf02f1637dd41a3e7c50917b91b1a77524