Home
last modified time | relevance | path

Searched refs:counterSet (Results 1 – 10 of 10) sorted by relevance

/system/netd/bpfloader/
Dbpf_kern.h50 uint32_t counterSet; member
186 struct stats_key key = {.uid = uid, .tag = tag, .counterSet = 0, .ifaceIndex = skb->ifindex}; in bpf_traffic_account()
188 uint8_t* counterSet = find_map_entry(UID_COUNTERSET_MAP, &uid); in bpf_traffic_account() local
189 if (counterSet) key.counterSet = (uint32_t)*counterSet; in bpf_traffic_account()
/system/netd/include/
DNetdClient.h48 int setCounterSet(uint32_t counterSet, uid_t uid);
/system/netd/libbpf/
DBpfNetworkStatsTest.cpp122 void populateFakeStats(uid_t uid, uint32_t tag, uint32_t ifaceIndex, uint32_t counterSet, in populateFakeStats() argument
125 .uid = (uint32_t)uid, .tag = tag, .counterSet = counterSet, .ifaceIndex = ifaceIndex}; in populateFakeStats()
143 int counterSet, uint32_t tag, const stats_line& result) { in expectStatsLineEqual() argument
146 EXPECT_EQ(counterSet, result.set); in expectStatsLineEqual()
384 .counterSet = TEST_COUNTERSET0}; in TEST_F()
DBpfUtils.cpp55 return ((lhs.uid == rhs.uid) && (lhs.tag == rhs.tag) && (lhs.counterSet == rhs.counterSet) && in operator ==()
DBpfNetworkStats.cpp118 newLine.set = (int32_t)statsKey.counterSet; in populateStatsEntry()
219 .uid = (uint32_t)UID_ALL, .counterSet = (uint32_t)SET_ALL, .tag = (uint32_t)TAG_NONE}; in parseBpfNetworkStatsDevInternal()
/system/netd/client/
DNetdClient.cpp258 extern "C" int setCounterSet(uint32_t counterSet, uid_t uid) { in setCounterSet() argument
259 FwmarkCommand command = {FwmarkCommand::SET_COUNTERSET, 0, uid, counterSet}; in setCounterSet()
/system/netd/libbpf/include/bpf/
DBpfUtils.h47 uint32_t counterSet; member
/system/netd/server/
DTrafficControllerTest.cpp153 *key = {.uid = uid, .tag = tag, .counterSet = TEST_COUNTERSET, .ifaceIndex = 1}; in populateFakeStats()
155 uint8_t counterSet = TEST_COUNTERSET; in populateFakeStats() local
156 EXPECT_TRUE(isOk(mFakeUidCounterSetMap.writeValue(uid, counterSet, BPF_ANY))); in populateFakeStats()
DTrafficController.cpp692 ifname.value().name, key.tag, key.uid, key.counterSet, value.rxBytes, in dump()
/system/netd/tests/
Dbpf_base_test.cpp158 StatsKey key = {.uid = TEST_UID, .tag = TEST_TAG, .counterSet = TEST_COUNTERSET, in TEST_F()