/system/netd/bpf_progs/ |
D | netd.c | 56 DEFINE_BPF_MAP_GRW(stats_map_A, HASH, StatsKey, StatsValue, STATS_MAP_SIZE, AID_NET_BW_STATS) in DEFINE_BPF_MAP_GRO() 57 DEFINE_BPF_MAP_GRW(stats_map_B, HASH, StatsKey, StatsValue, STATS_MAP_SIZE, AID_NET_BW_STATS) in DEFINE_BPF_MAP_GRO() 133 DEFINE_UPDATE_STATS(stats_map_A, StatsKey) in DEFINE_UPDATE_STATS() 134 DEFINE_UPDATE_STATS(stats_map_B, StatsKey) in DEFINE_UPDATE_STATS() 220 StatsKey* key, uint8_t selectedMap) { in update_stats_with_config() 265 StatsKey key = {.uid = uid, .tag = tag, .counterSet = 0, .ifaceIndex = skb->ifindex}; in bpf_traffic_account()
|
/system/netd/libnetdbpf/include/netdbpf/ |
D | bpf_shared.h | 43 } StatsKey; typedef 44 STRUCT_SIZE(StatsKey, 4 * 4); // 16
|
D | BpfNetworkStats.h | 68 int limitUid, const BpfMap<StatsKey, StatsValue>& statsMap,
|
/system/netd/libnetdbpf/ |
D | BpfNetworkStats.cpp | 119 stats_line populateStatsEntry(const StatsKey& statsKey, const StatsValue& statsEntry, in populateStatsEntry() 135 int limitUid, const BpfMap<StatsKey, StatsValue>& statsMap, in parseBpfNetworkStatsDetailInternal() argument 140 const StatsKey& key, in parseBpfNetworkStatsDetailInternal() 141 const BpfMap<StatsKey, StatsValue>& statsMap) -> Result<void> { in parseBpfNetworkStatsDetailInternal() argument 209 BpfMap<StatsKey, StatsValue> statsMap(statsMapPath); in parseBpfNetworkStatsDetail() 245 StatsKey fakeKey = { in parseBpfNetworkStatsDevInternal()
|
D | BpfNetworkStatsTest.cpp | 76 BpfMap<StatsKey, StatsValue> mFakeStatsMap; 89 mFakeStatsMap = BpfMap<StatsKey, StatsValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp() 107 StatsValue value, BpfMap<StatsKey, StatsValue>& map) { in populateFakeStats() argument 108 StatsKey key = { in populateFakeStats() 373 StatsKey curKey = { in TEST_F()
|
/system/netd/tests/ |
D | bpf_base_test.cpp | 145 BpfMap<StatsKey, StatsValue> statsMapA(STATS_MAP_A_PATH); in TEST_F() 147 BpfMap<StatsKey, StatsValue> statsMapB(STATS_MAP_B_PATH); in TEST_F() 152 StatsKey key = {.uid = TEST_UID, .tag = TEST_TAG, .counterSet = TEST_COUNTERSET, in TEST_F()
|
/system/netd/server/ |
D | TrafficControllerTest.cpp | 71 BpfMap<StatsKey, StatsValue> mFakeStatsMapA; 92 mFakeStatsMapA.reset(createMap(BPF_MAP_TYPE_HASH, sizeof(StatsKey), sizeof(StatsValue), in SetUp() 151 void populateFakeStats(uint64_t cookie, uint32_t uid, uint32_t tag, StatsKey* key) { in populateFakeStats() 278 StatsKey tagStatsMapKey) { in expectFakeStatsUnchanged() 397 StatsKey tagStatsMapKey[4]; in TEST_F() 407 StatsKey tagStatsMapKey[4]; in TEST_F() 450 StatsKey tagStatsMapKey; in TEST_F() 463 StatsKey tagStatsMapKey; in TEST_F() 488 StatsKey tagStatsMapKey; in TEST_F() 507 StatsKey tagStatsMapKey1; in TEST_F() [all …]
|
D | TrafficController.h | 157 BpfMap<StatsKey, StatsValue> mStatsMapA GUARDED_BY(mMutex); 159 BpfMap<StatsKey, StatsValue> mStatsMapB GUARDED_BY(mMutex);
|
D | TrafficController.cpp | 326 const StatsKey& key, in tagSocket() 327 const BpfMap<StatsKey, StatsValue>&) { in tagSocket() argument 345 BpfMap<StatsKey, StatsValue>& currentMap = in tagSocket() 441 const auto deleteMatchedUidTagEntries = [uid, tag](const StatsKey& key, in deleteTagData() 442 BpfMap<StatsKey, StatsValue>& map) { in deleteTagData() argument 913 const auto printStatsInfo = [&dw, this](const StatsKey& key, const StatsValue& value, in dump() 914 const BpfMap<StatsKey, StatsValue>&) { in dump() argument
|