Home
last modified time | relevance | path

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

/system/netd/bpf_progs/
Dnetd.c262 StatsKey key = {.uid = uid, .tag = tag, .counterSet = 0, .ifaceIndex = skb->ifindex}; in bpf_traffic_account()
264 uint8_t* counterSet = bpf_uid_counterset_map_lookup_elem(&uid); in bpf_traffic_account() local
265 if (counterSet) key.counterSet = (uint32_t)*counterSet; in bpf_traffic_account()
/system/netd/include/
DNetdClient.h49 int setCounterSet(uint32_t counterSet, uid_t uid);
/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp107 void populateFakeStats(uid_t uid, uint32_t tag, uint32_t ifaceIndex, uint32_t counterSet, in populateFakeStats() argument
110 .uid = (uint32_t)uid, .tag = tag, .counterSet = counterSet, .ifaceIndex = ifaceIndex}; in populateFakeStats()
128 int counterSet, uint32_t tag, const stats_line& result) { in expectStatsLineEqual() argument
131 EXPECT_EQ((uint32_t) counterSet, result.set); in expectStatsLineEqual()
393 .counterSet = TEST_COUNTERSET0, in TEST_F()
DBpfNetworkStats.cpp124 newLine.set = (int32_t)statsKey.counterSet; in populateStatsEntry()
248 .counterSet = (uint32_t)SET_ALL, in parseBpfNetworkStatsDevInternal()
/system/netd/libnetdbpf/include/netdbpf/
Dbpf_shared.h35 uint32_t counterSet; member
/system/netd/tests/
Dbpf_base_test.cpp172 StatsKey key = {.uid = TEST_UID, .tag = TEST_TAG, .counterSet = TEST_COUNTERSET, in TEST_F()
/system/netd/client/
DNetdClient.cpp519 extern "C" int setCounterSet(uint32_t counterSet, uid_t uid) { in setCounterSet() argument
520 FwmarkCommand command = {FwmarkCommand::SET_COUNTERSET, 0, uid, counterSet}; in setCounterSet()
/system/netd/server/
DTrafficControllerTest.cpp154 *key = {.uid = uid, .tag = tag, .counterSet = TEST_COUNTERSET, .ifaceIndex = 1}; in populateFakeStats()
156 uint8_t counterSet = TEST_COUNTERSET; in populateFakeStats() local
157 EXPECT_RESULT_OK(mFakeUidCounterSetMap.writeValue(uid, counterSet, BPF_ANY)); in populateFakeStats()
DTrafficController.cpp993 ifname.value().name, key.tag, key.uid, key.counterSet, value.rxBytes, in dump()