Searched refs:unknownIfaceBytesTotal (Results 1 – 3 of 3) sorted by relevance
/system/netd/libnetdbpf/include/netdbpf/ |
D | BpfNetworkStats.h | 75 const Key& curKey, int64_t* unknownIfaceBytesTotal) { in getIfaceNameFromMap() argument 78 maybeLogUnknownIface(ifaceIndex, statsMap, curKey, unknownIfaceBytesTotal); in getIfaceNameFromMap() 87 const Key& curKey, int64_t* unknownIfaceBytesTotal) { in maybeLogUnknownIface() argument 89 if (*unknownIfaceBytesTotal == -1) { in maybeLogUnknownIface() 100 *unknownIfaceBytesTotal += (statsEntry.value().rxBytes + statsEntry.value().txBytes); in maybeLogUnknownIface() 101 if (*unknownIfaceBytesTotal >= MAX_UNKNOWN_IFACE_BYTES) { in maybeLogUnknownIface() 103 *unknownIfaceBytesTotal); in maybeLogUnknownIface() 104 *unknownIfaceBytesTotal = -1; in maybeLogUnknownIface()
|
/system/netd/libnetdbpf/ |
D | BpfNetworkStats.cpp | 76 int64_t unknownIfaceBytesTotal = 0; in bpfGetIfaceStatsInternal() local 79 const auto processIfaceStats = [iface, stats, &ifaceNameMap, &unknownIfaceBytesTotal] in bpfGetIfaceStatsInternal() 84 &unknownIfaceBytesTotal)) { in bpfGetIfaceStatsInternal() 136 int64_t unknownIfaceBytesTotal = 0; in parseBpfNetworkStatsDetailInternal() local 138 &unknownIfaceBytesTotal, in parseBpfNetworkStatsDetailInternal() 143 &unknownIfaceBytesTotal)) { in parseBpfNetworkStatsDetailInternal() 235 int64_t unknownIfaceBytesTotal = 0; in parseBpfNetworkStatsDevInternal() local 236 const auto processDetailIfaceStats = [lines, &unknownIfaceBytesTotal, &ifaceMap, &statsMap]( in parseBpfNetworkStatsDevInternal() 240 if (getIfaceNameFromMap(ifaceMap, statsMap, key, ifname, key, &unknownIfaceBytesTotal)) { in parseBpfNetworkStatsDevInternal()
|
D | BpfNetworkStatsTest.cpp | 390 int64_t unknownIfaceBytesTotal = 0; in TEST_F() local 392 ifname, curKey, &unknownIfaceBytesTotal)); in TEST_F() 393 ASSERT_EQ(((int64_t)(TEST_BYTES0 * 20 + TEST_BYTES1 * 20)), unknownIfaceBytesTotal); in TEST_F() 396 ifname, curKey, &unknownIfaceBytesTotal)); in TEST_F() 397 ASSERT_EQ(-1, unknownIfaceBytesTotal); in TEST_F()
|