summaryrefslogtreecommitdiff
path: root/server/InterfaceController.cpp
diff options
context:
space:
mode:
authorjunyulai <junyulai@google.com>2018-11-13 10:12:46 +0800
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-12-05 05:14:34 +0000
commit3674fd5b5ba7cd6af9331d6c65dae44be5ae87cb (patch)
tree82a5ca77c6d2466a42ef094339e666077a21e188 /server/InterfaceController.cpp
parent52165e655c4cc756bc4838fbe4473ee8e58c5051 (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 libbpf_test 4. runtest frameworks-net 5. cts-tradefed run cts -m CtsUsageStatsTestCases -t \ android.app.usage.cts.NetworkUsageStatsTest Change-Id: I7cb622bfcc643f6e1a0ab59c5aafa85319313493 Merged-In: I6d485a368fd8e52d21d5e894fc189ac8f0e9f502 (cherry picked from commit aa7a47495dd1bfe3b053a3867b9b6fd32cd7d481)
Diffstat (limited to 'server/InterfaceController.cpp')
0 files changed, 0 insertions, 0 deletions