Home
last modified time | relevance | path

Searched refs:StatsKey (Results 1 – 9 of 9) sorted by relevance

/system/netd/bpf_progs/
Dnetd.c56 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/
Dbpf_shared.h43 } StatsKey; typedef
44 STRUCT_SIZE(StatsKey, 4 * 4); // 16
DBpfNetworkStats.h68 int limitUid, const BpfMap<StatsKey, StatsValue>& statsMap,
/system/netd/libnetdbpf/
DBpfNetworkStats.cpp119 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()
DBpfNetworkStatsTest.cpp76 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/
Dbpf_base_test.cpp145 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/
DTrafficControllerTest.cpp71 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 …]
DTrafficController.h157 BpfMap<StatsKey, StatsValue> mStatsMapA GUARDED_BY(mMutex);
159 BpfMap<StatsKey, StatsValue> mStatsMapB GUARDED_BY(mMutex);
DTrafficController.cpp326 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