Home
last modified time | relevance | path

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

/Linux-v5.10/samples/bpf/
Dxdp_monitor_user.c58 struct bpf_link *tp_links[NUM_TP] = {}; variable
73 bpf_link__destroy(tp_links[--tp_cnt]); in int_exit()
681 int fd = bpf_link__fd(tp_links[i]); in print_bpf_prog_info()
756 tp_links[tp_cnt] = bpf_program__attach(prog); in main()
757 if (libbpf_get_error(tp_links[tp_cnt])) { in main()
759 tp_links[tp_cnt] = NULL; in main()
774 bpf_link__destroy(tp_links[2]); /* tracepoint/xdp/xdp_redirect */ in main()
775 tp_links[2] = NULL; in main()
777 bpf_link__destroy(tp_links[3]); /* tracepoint/xdp/xdp_redirect_map */ in main()
778 tp_links[3] = NULL; in main()
[all …]
Dxdp_redirect_cpu_user.c67 struct bpf_link *tp_links[NUM_TP] = {}; variable
120 bpf_link__destroy(tp_links[--tp_cnt]); in int_exit()
693 tp_links[tp_cnt] = bpf_program__attach(prog); in init_tracepoints()
694 if (libbpf_get_error(tp_links[tp_cnt])) { in init_tracepoints()
695 tp_links[tp_cnt] = NULL; in init_tracepoints()