Home
last modified time | relevance | path

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

/linux/samples/bpf/
H A Dxdp_sample_user.c572 double period_ = 0; in calc_period() local
577 period_ = ((double)period / NANOSEC_PER_SEC); in calc_period()
579 return period_; in calc_period()
589 static __u64 calc_pps(struct datarec *r, struct datarec *p, double period_) in calc_pps() argument
594 if (period_ > 0) { in calc_pps()
596 pps = sample_round(packets / period_); in calc_pps()
601 static __u64 calc_drop_pps(struct datarec *r, struct datarec *p, double period_) in calc_drop_pps() argument
606 if (period_ > 0) { in calc_drop_pps()
608 pps = sample_round(packets / period_); in calc_drop_pps()
613 static __u64 calc_errs_pps(struct datarec *r, struct datarec *p, double period_) in calc_errs_pps() argument
[all …]