summaryrefslogtreecommitdiff
path: root/server/ControllersTest.cpp
diff options
context:
space:
mode:
authorjunyulai <junyulai@google.com>2018-11-09 16:12:29 +0800
committerjunyulai <junyulai@google.com>2018-11-13 09:43:16 +0800
commita130ac22c0172fa1e2d4d8cfbc7de57f1d42dd20 (patch)
treed2bb6bb2f5e58a6a63e4dd67a6e287e1de6c769f /server/ControllersTest.cpp
parent669a6884f1836377f40cf89caa4fdf2f371ee5c2 (diff)
Sort and group network stats collected from eBPF.
Since eBPF use hash map to record stats, network stats collected from eBPF will be out of order. And the performance of findIndexHinted in NetworkStats would be impacted. Furthermore, since the StatsKey contains iface index, the network stats reported to framework would create items with the same iface, uid, tag and set, which causes NetworkStats maps wrong item to subtract. Thus, the stats needs to be properly sorted and grouped before reported. Bug: 112226716 Bug: 119193941 Test: 1. manually reconnect vpn 2. update apps from playstore 3. atest libnetdbpf_test 4. runtest frameworks-net 5. cts-tradefed run cts -m CtsUsageStatsTestCases -t \ android.app.usage.cts.NetworkUsageStatsTest Change-Id: I6d485a368fd8e52d21d5e894fc189ac8f0e9f502
Diffstat (limited to 'server/ControllersTest.cpp')
0 files changed, 0 insertions, 0 deletions