Searched refs:unknownIfaceBytesTotal (Results 1 – 3 of 3) sorted by relevance
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/include/netdbpf/ |
D | BpfNetworkStats.h | 82 const Key& curKey, int64_t* unknownIfaceBytesTotal) { in maybeLogUnknownIface() argument 84 if (*unknownIfaceBytesTotal == -1) { in maybeLogUnknownIface() 95 *unknownIfaceBytesTotal += (statsEntry.value().rxBytes + statsEntry.value().txBytes); in maybeLogUnknownIface() 96 if (*unknownIfaceBytesTotal >= MAX_UNKNOWN_IFACE_BYTES) { in maybeLogUnknownIface() 98 *unknownIfaceBytesTotal); in maybeLogUnknownIface() 99 *unknownIfaceBytesTotal = -1; in maybeLogUnknownIface()
|
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/ |
D | BpfNetworkStats.cpp | 92 int64_t unknownIfaceBytesTotal = 0; in bpfGetIfaceStatsInternal() local 94 [iface, stats, ifindex2name, &unknownIfaceBytesTotal]( in bpfGetIfaceStatsInternal() 99 maybeLogUnknownIface(key, ifaceStatsMap, key, &unknownIfaceBytesTotal); in bpfGetIfaceStatsInternal() 151 int64_t unknownIfaceBytesTotal = 0; in parseBpfNetworkStatsDetailInternal() local 153 [&lines, &unknownIfaceBytesTotal, &ifindex2name]( in parseBpfNetworkStatsDetailInternal() 158 maybeLogUnknownIface(key.ifaceIndex, statsMap, key, &unknownIfaceBytesTotal); in parseBpfNetworkStatsDetailInternal() 242 int64_t unknownIfaceBytesTotal = 0; in parseBpfNetworkStatsDevInternal() local 243 const auto processDetailIfaceStats = [&lines, &unknownIfaceBytesTotal, ifindex2name, &statsMap]( in parseBpfNetworkStatsDevInternal() 248 maybeLogUnknownIface(key, statsMap, key, &unknownIfaceBytesTotal); in parseBpfNetworkStatsDevInternal()
|
D | BpfNetworkStatsTest.cpp | 358 int64_t unknownIfaceBytesTotal = 0; in TEST_F() local 360 maybeLogUnknownIface(ifaceIndex, mFakeStatsMap, curKey, &unknownIfaceBytesTotal); in TEST_F() 362 ASSERT_EQ(((int64_t)(TEST_BYTES0 * 20 + TEST_BYTES1 * 20)), unknownIfaceBytesTotal); in TEST_F() 366 maybeLogUnknownIface(ifaceIndex, mFakeStatsMap, curKey, &unknownIfaceBytesTotal); in TEST_F() 368 ASSERT_EQ(-1, unknownIfaceBytesTotal); in TEST_F()
|