Searched refs:UidTagValue (Results 1 – 8 of 8) sorted by relevance
/system/netd/tests/ |
D | netlink_listener_test.cpp | 67 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
|
D | bpf_base_test.cpp | 88 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/ |
D | bpf_shared.h | 35 } UidTagValue; typedef 36 STRUCT_SIZE(UidTagValue, 2 * 4); // 8
|
/system/netd/libnetdbpf/ |
D | BpfNetworkStatsTest.cpp | 74 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/ |
D | netd.c | 50 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/ |
D | TrafficController.h | 131 BpfMap<uint64_t, UidTagValue> mCookieTagMap GUARDED_BY(mMutex);
|
D | TrafficControllerTest.cpp | 68 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()
|
D | TrafficController.cpp | 316 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
|