diff options
| author | Chenbo Feng <fengc@google.com> | 2018-03-16 18:10:07 -0700 |
|---|---|---|
| committer | Chenbo Feng <fengc@google.com> | 2018-03-26 14:44:06 -0700 |
| commit | 33a4de15aa324c93503cf380bf2b172591a4fa03 (patch) | |
| tree | 803b863ce34a55451dab7247d40227862cdb74ea /server/TetherControllerTest.cpp | |
| parent | 1651348ccaf8a2403c3ddcb62385265bbbe5775a (diff) | |
Use bpf map to read the interface stats
With the support of xt_bpf module, the more accurate per interface
network traffic stats can be obtained from ifaceStatsMap under
sys/fs/bpf/. Change the framework NetworkStatsService native
implementation to read from map instead of /proc/net/dev. The
corresponding test is added and refactor the old test to be compatible.
Test: ./libbpf_test
atest android.net.cts.TrafficStatsTest
Bug: 72111305
Change-Id: I2a6c6f82317bd9667c1b15e6b082fc9f153f6bf3
Diffstat (limited to 'server/TetherControllerTest.cpp')
0 files changed, 0 insertions, 0 deletions
