Home
last modified time | relevance | path

Searched refs:unknownIfaceBytesTotal (Results 1 – 3 of 3) sorted by relevance

/system/netd/libnetdbpf/include/netdbpf/
DBpfNetworkStats.h76 const Key& curKey, int64_t* unknownIfaceBytesTotal) { in getIfaceNameFromMap() argument
79 maybeLogUnknownIface(ifaceIndex, statsMap, curKey, unknownIfaceBytesTotal); in getIfaceNameFromMap()
88 const Key& curKey, int64_t* unknownIfaceBytesTotal) { in maybeLogUnknownIface() argument
90 if (*unknownIfaceBytesTotal == -1) { in maybeLogUnknownIface()
101 *unknownIfaceBytesTotal += (statsEntry.value().rxBytes + statsEntry.value().txBytes); in maybeLogUnknownIface()
102 if (*unknownIfaceBytesTotal >= MAX_UNKNOWN_IFACE_BYTES) { in maybeLogUnknownIface()
104 *unknownIfaceBytesTotal); in maybeLogUnknownIface()
105 *unknownIfaceBytesTotal = -1; in maybeLogUnknownIface()
/system/netd/libnetdbpf/
DBpfNetworkStats.cpp74 int64_t unknownIfaceBytesTotal = 0; in bpfGetIfaceStatsInternal() local
78 [iface, stats, &ifaceNameMap, &unknownIfaceBytesTotal]( in bpfGetIfaceStatsInternal()
83 &unknownIfaceBytesTotal)) { in bpfGetIfaceStatsInternal()
137 int64_t unknownIfaceBytesTotal = 0; in parseBpfNetworkStatsDetailInternal() local
139 [lines, &limitIfaces, &limitTag, &limitUid, &unknownIfaceBytesTotal, &ifaceMap]( in parseBpfNetworkStatsDetailInternal()
144 &unknownIfaceBytesTotal)) { in parseBpfNetworkStatsDetailInternal()
237 int64_t unknownIfaceBytesTotal = 0; in parseBpfNetworkStatsDevInternal() local
238 const auto processDetailIfaceStats = [lines, &unknownIfaceBytesTotal, &ifaceMap, &statsMap]( in parseBpfNetworkStatsDevInternal()
242 if (getIfaceNameFromMap(ifaceMap, statsMap, key, ifname, key, &unknownIfaceBytesTotal)) { in parseBpfNetworkStatsDevInternal()
DBpfNetworkStatsTest.cpp397 int64_t unknownIfaceBytesTotal = 0; in TEST_F() local
399 ifname, curKey, &unknownIfaceBytesTotal)); in TEST_F()
400 ASSERT_EQ(((int64_t)(TEST_BYTES0 * 20 + TEST_BYTES1 * 20)), unknownIfaceBytesTotal); in TEST_F()
403 ifname, curKey, &unknownIfaceBytesTotal)); in TEST_F()
404 ASSERT_EQ(-1, unknownIfaceBytesTotal); in TEST_F()