commit | 52a8f3c275fa034012c163318b769289d5ecd277 | [log] [tgz] |
---|---|---|
author | Ryan Zuklie <rzuklie@google.com> | Wed Sep 18 07:46:06 2024 -0700 |
committer | Maciej Żenczykowski <maze@google.com> | Wed Sep 18 18:34:17 2024 +0000 |
tree | d78698a41057bd899fc4a0d5d79538603ad20668 | |
parent | d2a88a27b73a81e5bdf5c3c1aeea8b025ed15a1c [diff] |
Add separate mutex for BPF ring buffer. This covers the ring buffer and ConsumeAll methods. This change also removes unnecessary GUARDED_BY for TraceIfaces (making it static) and mCallback (making it const). This should be close to a no-op. The new lock is taken in addition to, or instead of in the few places it's needed. Bug: 320700806 Test: atest libnetworkstats_test Change-Id: I45d36eba033afae1c03eac2f8d5b2ac4c9e78716