Home
last modified time | relevance | path

Searched refs:statsEntry (Results 1 – 3 of 3) 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()
/system/netd/server/
DTetherController.cpp1059 auto statsEntry = mBpfStatsMap.readValue(ifIndex); in setBpfLimit() local
1061 if (statsEntry.ok()) { in setBpfLimit()
1063 rxBytes = statsEntry.value().rxBytes; in setBpfLimit()
1064 txBytes = statsEntry.value().txBytes; in setBpfLimit()
1065 } else if (statsEntry.error().code() == ENOENT) { in setBpfLimit()
1078 return statsEntry.error(); in setBpfLimit()