Lines Matching refs:lines

133 int parseBpfNetworkStatsDetailInternal(std::vector<stats_line>* lines,  in parseBpfNetworkStatsDetailInternal()  argument
139 [lines, &limitIfaces, &limitTag, &limitUid, &unknownIfaceBytesTotal, &ifaceMap]( in parseBpfNetworkStatsDetailInternal()
163 lines->push_back(populateStatsEntry(key, statsEntry.value(), ifname)); in parseBpfNetworkStatsDetailInternal()
182 groupNetworkStats(lines); in parseBpfNetworkStatsDetailInternal()
186 int parseBpfNetworkStatsDetail(std::vector<stats_line>* lines, in parseBpfNetworkStatsDetail() argument
218 int ret = parseBpfNetworkStatsDetailInternal(lines, limitIfaces, limitTag, limitUid, statsMap, in parseBpfNetworkStatsDetail()
234 int parseBpfNetworkStatsDevInternal(std::vector<stats_line>* lines, in parseBpfNetworkStatsDevInternal() argument
238 const auto processDetailIfaceStats = [lines, &unknownIfaceBytesTotal, &ifaceMap, &statsMap]( in parseBpfNetworkStatsDevInternal()
250 lines->push_back(populateStatsEntry(fakeKey, value, ifname)); in parseBpfNetworkStatsDevInternal()
260 groupNetworkStats(lines); in parseBpfNetworkStatsDevInternal()
264 int parseBpfNetworkStatsDev(std::vector<stats_line>* lines) { in parseBpfNetworkStatsDev() argument
279 return parseBpfNetworkStatsDevInternal(lines, ifaceStatsMap, ifaceIndexNameMap); in parseBpfNetworkStatsDev()
286 void groupNetworkStats(std::vector<stats_line>* lines) { in groupNetworkStats() argument
287 if (lines->size() <= 1) return; in groupNetworkStats()
288 std::sort(lines->begin(), lines->end()); in groupNetworkStats()
292 for (size_t i = 1; i < lines->size(); i++) { in groupNetworkStats()
293 if (lines->at(nextOutput) == lines->at(i)) { in groupNetworkStats()
294 lines->at(nextOutput) += lines->at(i); in groupNetworkStats()
298 lines->at(nextOutput) = lines->at(i); in groupNetworkStats()
303 if (lines->size() != nextOutput + 1) { in groupNetworkStats()
304 lines->resize(nextOutput + 1); in groupNetworkStats()