Home
last modified time | relevance | path

Searched refs:UidTagValue (Results 1 – 8 of 8) sorted by relevance

/system/netd/tests/
Dnetlink_listener_test.cpp67 BpfMap<uint64_t, UidTagValue> mCookieTagMap;
79 const auto deleteTestCookieEntries = [](const uint64_t& key, const UidTagValue& value, in TearDown()
80 BpfMap<uint64_t, UidTagValue>& map) { in TearDown()
96 const auto checkGarbageTags = [](const uint64_t&, const UidTagValue& value, in checkNoGarbageTagsExist()
97 const BpfMap<uint64_t, UidTagValue>&) -> Result<void> { in checkNoGarbageTagsExist() argument
Dbpf_base_test.cpp102 BpfMap<uint64_t, UidTagValue> cookieTagMap(COOKIE_TAG_MAP_PATH); in TEST_F()
109 Result<UidTagValue> tagResult = cookieTagMap.readValue(cookie); in TEST_F()
122 BpfMap<uint64_t, UidTagValue> cookieTagMap(COOKIE_TAG_MAP_PATH); in TEST_F()
129 Result<UidTagValue> tagResult = cookieTagMap.readValue(cookie); in TEST_F()
/system/netd/libnetdbpf/include/netdbpf/
Dbpf_shared.h30 } UidTagValue; typedef
/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp74 BpfMap<uint64_t, UidTagValue> mFakeCookieTagMap;
84 mFakeCookieTagMap = BpfMap<uint64_t, UidTagValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp()
147 UidTagValue tag = {.uid = TEST_UID1, .tag = TEST_TAG}; in TEST_F()
178 UidTagValue tag = {.uid = TEST_UID1, .tag = TEST_TAG}; in TEST_F()
184 [&totalCount, &totalSum](const uint64_t& key, const BpfMap<uint64_t, UidTagValue>&) { in TEST_F() argument
/system/netd/bpf_progs/
Dnetd.c50 DEFINE_BPF_MAP_GRO(cookie_tag_map, HASH, uint64_t, UidTagValue, COOKIE_UID_MAP_SIZE, in DEFINE_BPF_MAP_GRO() argument
241 UidTagValue* utag = bpf_cookie_tag_map_lookup_elem(&cookie); in bpf_traffic_account()
/system/netd/server/
DTrafficController.h137 BpfMap<uint64_t, UidTagValue> mCookieTagMap GUARDED_BY(mMutex);
DTrafficControllerTest.cpp67 BpfMap<uint64_t, UidTagValue> mFakeCookieTagMap;
80 mFakeCookieTagMap.reset(createMap(BPF_MAP_TYPE_HASH, sizeof(uint64_t), sizeof(UidTagValue), in SetUp()
143 Result<UidTagValue> tagResult = mFakeCookieTagMap.readValue(cookie); in expectUidTag()
152 UidTagValue cookieMapkey = {.uid = (uint32_t)uid, .tag = tag}; in populateFakeStats()
279 Result<UidTagValue> cookieMapResult = mFakeCookieTagMap.readValue(cookie); in expectFakeStatsUnchanged()
547 Result<UidTagValue> cookieMapResult = mFakeCookieTagMap.readValue(cookie2); in TEST_F()
DTrafficController.cpp324 UidTagValue newKey = {.uid = (uint32_t)uid, .tag = tag}; in tagSocket()
447 const UidTagValue& value, in deleteTagData()
448 BpfMap<uint64_t, UidTagValue>& map) { in deleteTagData()
945 const auto printCookieTagInfo = [&dw](const uint64_t& key, const UidTagValue& value, in dump()
946 const BpfMap<uint64_t, UidTagValue>&) { in dump() argument