Searched refs:sum (Results 1 – 7 of 7) sorted by relevance
33 uint64_t values[nr_cpus], sum, max_value = 0, data[MAX_INDEX] = {}; in main() local53 sum = 0; in main()55 sum += values[i]; in main()57 data[next_key] = sum; in main()58 if (sum && next_key > max_key) in main()61 if (sum > max_value) in main()62 max_value = sum; in main()
56 __u64 sum = 0; in poll_stats() local60 sum += values[i]; in poll_stats()61 if (sum > prev[key]) in poll_stats()63 key, (sum - prev[key]) / interval); in poll_stats()64 prev[key] = sum; in poll_stats()
71 __u64 sum = 0; in poll_stats() local78 sum += (values[i] - prev[i]); in poll_stats()79 if (sum) in poll_stats()81 ifindex, sum / interval); in poll_stats()
66 __u64 sum = 0; in poll_stats() local71 sum += (values[i] - prev[proto][i]); in poll_stats()73 if (sum) in poll_stats()75 proto, sum, sum / STATS_INTERVAL_S); in poll_stats()
572 __u64 sum = 0; in monitor_route() local577 sum += (values[i] - prev[key][i]); in monitor_route()578 if (sum) in monitor_route()580 key, sum / interval); in monitor_route()
340 ssize_t sum = 0; in sum_iovec_len() local344 sum += copy->iov[i].iov_len; in sum_iovec_len()345 return sum; in sum_iovec_len()