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;
75 const auto deleteTestCookieEntries = [](const uint64_t& key, const UidTagValue& value, in TearDown()
76 BpfMap<uint64_t, UidTagValue>& map) { in TearDown()
92 const auto checkGarbageTags = [](const uint64_t&, const UidTagValue& value, in checkNoGarbageTagsExist()
93 const BpfMap<uint64_t, UidTagValue>&) -> Result<void> { in checkNoGarbageTagsExist() argument
Dbpf_base_test.cpp88 BpfMap<uint64_t, UidTagValue> cookieTagMap(COOKIE_TAG_MAP_PATH); in TEST_F()
95 Result<UidTagValue> tagResult = cookieTagMap.readValue(cookie); in TEST_F()
106 BpfMap<uint64_t, UidTagValue> cookieTagMap(COOKIE_TAG_MAP_PATH); in TEST_F()
113 Result<UidTagValue> tagResult = cookieTagMap.readValue(cookie); in TEST_F()
/system/netd/libnetdbpf/include/netdbpf/
Dbpf_shared.h35 } UidTagValue; typedef
36 STRUCT_SIZE(UidTagValue, 2 * 4); // 8
/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp74 BpfMap<uint64_t, UidTagValue> mFakeCookieTagMap;
83 mFakeCookieTagMap = BpfMap<uint64_t, UidTagValue>(BPF_MAP_TYPE_HASH, TEST_MAP_SIZE, 0); in SetUp()
144 UidTagValue tag = {.uid = TEST_UID1, .tag = TEST_TAG}; in TEST_F()
173 UidTagValue tag = {.uid = TEST_UID1, .tag = TEST_TAG}; in TEST_F()
179 [&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
244 UidTagValue* utag = bpf_cookie_tag_map_lookup_elem(&cookie); in bpf_traffic_account()
/system/netd/server/
DTrafficController.h131 BpfMap<uint64_t, UidTagValue> mCookieTagMap GUARDED_BY(mMutex);
DTrafficControllerTest.cpp68 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()
513 Result<UidTagValue> cookieMapResult = mFakeCookieTagMap.readValue(cookie2); in TEST_F()
DTrafficController.cpp316 UidTagValue newKey = {.uid = (uint32_t)uid, .tag = tag}; in tagSocket()
425 const UidTagValue& value, in deleteTagData()
426 BpfMap<uint64_t, UidTagValue>& map) { in deleteTagData()
873 const auto printCookieTagInfo = [&dw](const uint64_t& key, const UidTagValue& value, in dump()
874 const BpfMap<uint64_t, UidTagValue>&) { in dump() argument