Home
last modified time | relevance | path

Searched refs:statsEntry (Results 1 – 2 of 2) sorted by relevance

/system/netd/libnetdbpf/
DBpfNetworkStats.cpp49 auto statsEntry = appUidStatsMap.readValue(uid); in bpfGetUidStatsInternal() local
50 if (statsEntry.ok()) { in bpfGetUidStatsInternal()
51 stats->rxPackets = statsEntry.value().rxPackets; in bpfGetUidStatsInternal()
52 stats->txPackets = statsEntry.value().txPackets; in bpfGetUidStatsInternal()
53 stats->rxBytes = statsEntry.value().rxBytes; in bpfGetUidStatsInternal()
54 stats->txBytes = statsEntry.value().txBytes; in bpfGetUidStatsInternal()
56 return (statsEntry.ok() || statsEntry.error().code() == ENOENT) ? 0 in bpfGetUidStatsInternal()
57 : -statsEntry.error().code(); in bpfGetUidStatsInternal()
87 Result<StatsValue> statsEntry = ifaceStatsMap.readValue(key); in bpfGetIfaceStatsInternal() local
88 if (!statsEntry.ok()) { in bpfGetIfaceStatsInternal()
[all …]
/system/netd/libnetdbpf/include/netdbpf/
DBpfNetworkStats.h95 auto statsEntry = statsMap.readValue(curKey); in maybeLogUnknownIface() local
96 if (!statsEntry.ok()) { in maybeLogUnknownIface()
101 *unknownIfaceBytesTotal += (statsEntry.value().rxBytes + statsEntry.value().txBytes); in maybeLogUnknownIface()