Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3c69a399 authored by Chenbo Feng's avatar Chenbo Feng
Browse files

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
(cherry picked from aosp commit 33a4de15)
parent 40508ea0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment