Home
last modified time | relevance | path

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

/samples/bpf/
A Dxdp_sample.bpf.c70 struct datarec *rec; in xdp_redirect_collect_stat() local
80 if (!rec) in xdp_redirect_collect_stat()
132 struct datarec *rec; in BPF_PROG() local
140 if (!rec) in BPF_PROG()
159 struct datarec *rec; in BPF_PROG() local
167 if (!rec) in BPF_PROG()
185 struct datarec *rec; in BPF_PROG() local
198 if (!rec) in BPF_PROG()
209 struct datarec *rec; in BPF_PROG() local
223 if (!rec) in BPF_PROG()
[all …]
A Dxdp_sample_user.c453 rec = calloc(1, sizeof(*rec) + sample_n_cpus * sizeof(struct record)); in alloc_stats_record()
454 if (!rec) { in alloc_stats_record()
461 if (!rec->rx_cnt.cpu) { in alloc_stats_record()
528 return rec; in alloc_stats_record()
536 free(rec->kthread.cpu); in alloc_stats_record()
541 free(rec->rx_cnt.cpu); in alloc_stats_record()
543 free(rec); in alloc_stats_record()
1405 &rec->enq[i]); in sample_stats_collect()
1409 &rec->kthread); in sample_stats_collect()
1508 swap(prev, rec); in sample_timer_cb()
[all …]
A Dxdp_router_ipv4.bpf.c80 struct datarec *rec; in xdp_router_ipv4_prog() local
85 if (rec) in xdp_router_ipv4_prog()
86 NO_TEAR_INC(rec->processed); in xdp_router_ipv4_prog()
106 if (rec) in xdp_router_ipv4_prog()
107 NO_TEAR_INC(rec->xdp_pass); in xdp_router_ipv4_prog()
158 if (rec) in xdp_router_ipv4_prog()
159 NO_TEAR_INC(rec->xdp_pass); in xdp_router_ipv4_prog()
173 if (rec) in xdp_router_ipv4_prog()
174 NO_TEAR_INC(rec->xdp_redirect); in xdp_router_ipv4_prog()
183 if (rec) in xdp_router_ipv4_prog()
[all …]

Completed in 8 milliseconds