Home
last modified time | relevance | path

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

/Linux-v5.4/samples/bpf/
Dxdp_redirect_cpu_user.c146 struct datarec { struct
153 struct datarec total; argument
154 struct datarec *cpu;
168 struct datarec values[nr_cpus]; in map_collect_percpu()
197 static struct datarec *alloc_record_per_cpu(void) in alloc_record_per_cpu()
200 struct datarec *array; in alloc_record_per_cpu()
203 size = sizeof(struct datarec) * nr_cpus; in alloc_record_per_cpu()
259 static __u64 calc_pps(struct datarec *r, struct datarec *p, double period_) in calc_pps()
271 static __u64 calc_drop_pps(struct datarec *r, struct datarec *p, double period_) in calc_drop_pps()
283 static __u64 calc_errs_pps(struct datarec *r, in calc_errs_pps()
[all …]
Dxdp_monitor_kern.c124 struct datarec { struct
135 .value_size = sizeof(struct datarec), argument
142 .value_size = sizeof(struct datarec),
163 struct datarec *rec; in trace_xdp_cpumap_enqueue()
197 struct datarec *rec; in trace_xdp_cpumap_kthread()
216 .value_size = sizeof(struct datarec),
238 struct datarec *rec; in trace_xdp_devmap_xmit()
Dxdp_redirect_cpu_kern.c29 struct datarec { struct
41 .value_size = sizeof(struct datarec), argument
49 .value_size = sizeof(struct datarec),
58 .value_size = sizeof(struct datarec),
66 .value_size = sizeof(struct datarec),
96 .value_size = sizeof(struct datarec),
205 struct datarec *rec; in xdp_prognum0_no_touch()
236 struct datarec *rec; in xdp_prognum1_touch_data()
279 struct datarec *rec; in xdp_prognum2_round_robin()
328 struct datarec *rec; in xdp_prognum3_proto_separate()
[all …]
Dxdp_rxq_info_user.c183 struct datarec { struct
189 struct datarec total; argument
190 struct datarec *cpu;
197 static struct datarec *alloc_record_per_cpu(void) in alloc_record_per_cpu()
200 struct datarec *array; in alloc_record_per_cpu()
203 size = sizeof(struct datarec) * nr_cpus; in alloc_record_per_cpu()
266 struct datarec values[nr_cpus]; in map_collect_percpu()
316 static __u64 calc_pps(struct datarec *r, struct datarec *p, double period_) in calc_pps()
328 static __u64 calc_errs_pps(struct datarec *r, in calc_errs_pps()
329 struct datarec *p, double period_) in calc_errs_pps()
[all …]
Dxdp_monitor_user.c116 struct datarec { struct
127 struct datarec total; argument
128 struct datarec *cpu;
152 struct datarec values[nr_cpus]; in map_collect_record()
234 static double calc_pps(struct datarec *r, struct datarec *p, double period) in calc_pps()
258 static double calc_drop(struct datarec *r, struct datarec *p, double period) in calc_drop()
270 static double calc_info(struct datarec *r, struct datarec *p, double period) in calc_info()
282 static double calc_err(struct datarec *r, struct datarec *p, double period) in calc_err()
371 struct datarec *r = &rec->cpu[i]; in stats_print()
372 struct datarec *p = &prev->cpu[i]; in stats_print()
[all …]
Dxdp_rxq_info_kern.c34 struct datarec { struct
42 .value_size = sizeof(struct datarec), argument
52 .value_size = sizeof(struct datarec),
78 struct datarec *rec, *rxq_rec; in xdp_prognum0()