Home
last modified time | relevance | path

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

/Linux-v5.4/samples/bpf/
Dxdp_redirect_cpu_user.c249 double period_ = 0; in calc_period() local
254 period_ = ((double) period / NANOSEC_PER_SEC); in calc_period()
256 return period_; in calc_period()
259 static __u64 calc_pps(struct datarec *r, struct datarec *p, double period_) in calc_pps() argument
264 if (period_ > 0) { in calc_pps()
266 pps = packets / period_; in calc_pps()
271 static __u64 calc_drop_pps(struct datarec *r, struct datarec *p, double period_) in calc_drop_pps() argument
276 if (period_ > 0) { in calc_drop_pps()
278 pps = packets / period_; in calc_drop_pps()
284 struct datarec *p, double period_) in calc_errs_pps() argument
[all …]
Dxdp_rxq_info_user.c306 double period_ = 0; in calc_period() local
311 period_ = ((double) period / NANOSEC_PER_SEC); in calc_period()
313 return period_; in calc_period()
316 static __u64 calc_pps(struct datarec *r, struct datarec *p, double period_) in calc_pps() argument
321 if (period_ > 0) { in calc_pps()
323 pps = packets / period_; in calc_pps()
329 struct datarec *p, double period_) in calc_errs_pps() argument
334 if (period_ > 0) { in calc_errs_pps()
336 pps = packets / period_; in calc_errs_pps()
Dxdp_monitor_user.c212 double period_ = 0; in calc_period() local
217 period_ = ((double) period / NANOSEC_PER_SEC); in calc_period()
219 return period_; in calc_period()
224 double period_ = 0; in calc_period_u64() local
229 period_ = ((double) period / NANOSEC_PER_SEC); in calc_period_u64()
231 return period_; in calc_period_u64()