Home
last modified time | relevance | path

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

/Linux-v5.15/samples/bpf/
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()
202 array = calloc(nr_cpus, sizeof(struct datarec)); in alloc_record_per_cpu()
259 struct datarec values[nr_cpus]; in map_collect_percpu()
309 static __u64 calc_pps(struct datarec *r, struct datarec *p, double period_) in calc_pps()
321 static __u64 calc_errs_pps(struct datarec *r, in calc_errs_pps()
322 struct datarec *p, double period_) in calc_errs_pps()
[all …]
Dxdp_sample.bpf.c20 __type(value, struct datarec);
70 struct datarec *rec; in xdp_redirect_collect_stat()
132 struct datarec *rec; in BPF_PROG()
159 struct datarec *rec; in BPF_PROG()
185 struct datarec *rec; in BPF_PROG()
209 struct datarec *rec; in BPF_PROG()
240 struct datarec empty = {}; in BPF_PROG()
241 struct datarec *rec; in BPF_PROG()
Dxdp_sample_user.c93 struct datarec total;
94 struct datarec *cpu;
148 struct datarec *sample_mmap[NUM_MAP];
313 static struct datarec *alloc_record_per_cpu(void) in alloc_record_per_cpu()
316 struct datarec *array; in alloc_record_per_cpu()
338 static void map_collect_percpu(struct datarec *values, struct record *rec) in map_collect_percpu()
382 struct datarec *values; in map_collect_percpu_devmap()
390 values = calloc(count * nr_cpus, sizeof(struct datarec)); in map_collect_percpu_devmap()
410 struct datarec *arr; in map_collect_percpu_devmap()
587 static __u64 calc_pps(struct datarec *r, struct datarec *p, double period_) in calc_pps()
[all …]
Dxdp_rxq_info_kern.c35 struct datarec { struct
43 __type(value, struct datarec); argument
53 __type(value, struct datarec);
79 struct datarec *rec, *rxq_rec; in xdp_prognum0()
Dxdp_redirect_cpu.bpf.c146 struct datarec *rec; in xdp_prognum0_no_touch()
176 struct datarec *rec; in xdp_prognum1_touch_data()
217 struct datarec *rec; in xdp_prognum2_round_robin()
264 struct datarec *rec; in xdp_prognum3_proto_separate()
330 struct datarec *rec; in xdp_prognum4_ddos_filter_pktgen()
446 struct datarec *rec; in xdp_prognum5_lb_hash_ip_pairs()
Dxdp_sample_shared.h5 struct datarec { struct
Dxdp_redirect.bpf.c26 struct datarec *rec; in xdp_redirect_prog()
Dxdp_redirect_map.bpf.c44 struct datarec *rec; in xdp_redirect_map()
Dxdp_redirect_map_multi.bpf.c33 struct datarec *rec; in xdp_redirect_map()
Dxdp_sample.bpf.h31 __type(value, struct datarec);