Home
last modified time | relevance | path

Searched refs:tp_cnt (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-6.6/samples/bpf/
H A Dibumad_user.c32 static int tp_cnt; variable
61 while (tp_cnt) in dump_exit()
62 bpf_link__destroy(tp_links[--tp_cnt]); in dump_exit()
136 tp_links[tp_cnt] = bpf_program__attach(prog); in main()
137 if (libbpf_get_error(tp_links[tp_cnt])) { in main()
139 tp_links[tp_cnt] = NULL; in main()
142 tp_cnt++; in main()
153 while (tp_cnt) in main()
154 bpf_link__destroy(tp_links[--tp_cnt]); in main()
/kernel/linux/linux-5.10/samples/bpf/
H A Dxdp_monitor_user.c53 static int tp_cnt; variable
72 while (tp_cnt) in int_exit()
73 bpf_link__destroy(tp_links[--tp_cnt]); in int_exit()
661 printf("Loaded BPF prog have %d bpf program(s)\n", tp_cnt); in print_bpf_prog_info()
679 printf("Searching for (max:%d) event file descriptor(s)\n", tp_cnt); in print_bpf_prog_info()
680 for (i = 0; i < tp_cnt; 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()
762 tp_cnt in main()
[all...]
H A Dxdp_redirect_cpu_user.c69 static int tp_cnt = 0; variable
119 while (tp_cnt) in int_exit()
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()
698 tp_cnt++; in init_tracepoints()

Completed in 3 milliseconds