summaryrefslogtreecommitdiff
path: root/server/ControllersTest.cpp
diff options
context:
space:
mode:
authorjunyulai <junyulai@google.com>2018-11-01 16:18:59 +0800
committerjunyulai <junyulai@google.com>2018-11-05 14:44:45 +0800
commit7b03736655caacdfad68f3e95a63464ce6bab972 (patch)
treedf8442172bfc5ef2fff833ec436d4b0a3674884a /server/ControllersTest.cpp
parentf778204a792f6955cabcaf3220cff85b69d3c0b6 (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 Test: 1. manually reconnect vpn 2. atest libnetdbpf_test 3. runtest frameworks-net 4. cts-tradefed run cts -m CtsUsageStatsTestCases -t \ android.app.usage.cts.NetworkUsageStatsTest Change-Id: I7cb622bfcc643f6e1a0ab59c5aafa85319313493
Diffstat (limited to 'server/ControllersTest.cpp')
0 files changed, 0 insertions, 0 deletions