Searched refs:StatsKey (Results 1 – 9 of 9) sorted by relevance
/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() 217 StatsKey* key, uint8_t selectedMap) { in update_stats_with_config() 262 StatsKey key = {.uid = uid, .tag = tag, .counterSet = 0, .ifaceIndex = skb->ifindex}; in bpf_traffic_account()
|
/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; 90 mFakeStatsMap = BpfMap<StatsKey, StatsValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp() 108 StatsValue value, BpfMap<StatsKey, StatsValue>& map) { in populateFakeStats() argument 109 StatsKey key = { in populateFakeStats() 390 StatsKey curKey = { in TEST_F()
|
/system/netd/tests/ |
D | bpf_base_test.cpp | 165 BpfMap<StatsKey, StatsValue> statsMapA(STATS_MAP_A_PATH); in TEST_F() 167 BpfMap<StatsKey, StatsValue> statsMapB(STATS_MAP_B_PATH); in TEST_F() 172 StatsKey key = {.uid = TEST_UID, .tag = TEST_TAG, .counterSet = TEST_COUNTERSET, in TEST_F()
|
/system/netd/server/ |
D | TrafficControllerTest.cpp | 70 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() 415 StatsKey tagStatsMapKey[4]; in TEST_F() 427 StatsKey tagStatsMapKey[4]; in TEST_F() 478 StatsKey tagStatsMapKey; in TEST_F() 493 StatsKey tagStatsMapKey; in TEST_F() 520 StatsKey tagStatsMapKey; in TEST_F() 541 StatsKey tagStatsMapKey1; in TEST_F() [all …]
|
D | TrafficController.h | 163 BpfMap<StatsKey, StatsValue> mStatsMapA GUARDED_BY(mMutex); 165 BpfMap<StatsKey, StatsValue> mStatsMapB GUARDED_BY(mMutex);
|
D | TrafficController.cpp | 334 const StatsKey& key, in tagSocket() 335 const BpfMap<StatsKey, StatsValue>&) { in tagSocket() argument 353 BpfMap<StatsKey, StatsValue>& currentMap = in tagSocket() 463 const auto deleteMatchedUidTagEntries = [uid, tag](const StatsKey& key, in deleteTagData() 464 BpfMap<StatsKey, StatsValue>& map) { in deleteTagData() argument 985 const auto printStatsInfo = [&dw, this](const StatsKey& key, const StatsValue& value, in dump() 986 const BpfMap<StatsKey, StatsValue>&) { in dump() argument
|
/system/netd/libnetdbpf/include/netdbpf/ |
D | bpf_shared.h | 37 } StatsKey; typedef
|
D | BpfNetworkStats.h | 68 int limitUid, const BpfMap<StatsKey, StatsValue>& statsMap,
|