Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 6 of 6) 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_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()
Dxdpsock_user.c672 u32 sum = (u32)csum; in csum_fold() local
674 sum = (sum & 0xffff) + (sum >> 16); in csum_fold()
675 sum = (sum & 0xffff) + (sum >> 16); in csum_fold()
676 return (__sum16)~sum; in csum_fold()
693 __u32 len, __u8 proto, __wsum sum);
700 __u32 len, __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument
702 unsigned long long s = (u32)sum; in csum_tcpudp_nofold()
720 __u8 proto, __wsum sum) in csum_tcpudp_magic() argument
722 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
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()
Dxdp_sample_user.c861 double t, drop, sum = 0; in stats_get_redirect_err_cnt() local
895 sum += drop; in stats_get_redirect_err_cnt()
899 out->redir_cnt.err = sum; in stats_get_redirect_err_cnt()
900 out->totals.err += sum; in stats_get_redirect_err_cnt()
909 double t, drop, sum = 0; in stats_get_exception_cnt() local
920 sum += drop; in stats_get_exception_cnt()
944 out->except_cnt.hits = sum; in stats_get_exception_cnt()
945 out->totals.err += sum; in stats_get_exception_cnt()