summaryrefslogtreecommitdiff
path: root/server/TetherController.cpp
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2018-05-11 19:15:15 -0700
committerChenbo Feng <fengc@google.com>2018-05-29 20:15:36 -0700
commitbc4a15f91f97fbfcbfdc9dc19d73226f380bc977 (patch)
tree8870f6e47fb4e508de2aa0ac4851c4c9bd0b141a /server/TetherController.cpp
parent4f6c237759e8bdc3ace937ad0eaaf9be893702da (diff)
Use a separate map to store per app stats
To avoid iterating through the eBPF map to get the total stats of a specific uid. A new bpf map called appUidStatsMap is added to the trafficController so that TrafficStats API can directly read that map for per uid total stats regardless of tag, counterSet and iface information. This could make this call more efficient and solve the possible racing problem. Bug: 79171384 Test: netd_unit_test, libbpf_test, netd_integration_test Change-Id: I47a4ac3466caa729c5730a498a2de226303d6b77
Diffstat (limited to 'server/TetherController.cpp')
0 files changed, 0 insertions, 0 deletions