Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 7 of 7) sorted by relevance

/samples/bpf/
Dlwt_len_hist_user.c33 uint64_t values[nr_cpus], sum, max_value = 0, data[MAX_INDEX] = {}; in main() local
53 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()
Dxdp1_user.c56 __u64 sum = 0; in poll_stats() local
60 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()
Dxdp_redirect_user.c71 __u64 sum = 0; in poll_stats() local
78 sum += (values[i] - prev[i]); in poll_stats()
79 if (sum) in poll_stats()
81 ifindex, sum / interval); in poll_stats()
Dxdp_redirect_map_user.c71 __u64 sum = 0; in poll_stats() local
78 sum += (values[i] - prev[i]); in poll_stats()
79 if (sum) in poll_stats()
81 ifindex, sum / interval); in poll_stats()
Dxdp_tx_iptunnel_user.c66 __u64 sum = 0; in poll_stats() local
71 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()
Dxdp_router_ipv4_user.c572 __u64 sum = 0; in monitor_route() local
577 sum += (values[i] - prev[key][i]); in monitor_route()
578 if (sum) in monitor_route()
580 key, sum / interval); in monitor_route()
/samples/mic/mpssd/
Dmpssd.c340 ssize_t sum = 0; in sum_iovec_len() local
344 sum += copy->iov[i].iov_len; in sum_iovec_len()
345 return sum; in sum_iovec_len()