/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector_reattach.c | 90 static void test_prog_attach_prog_attach(int netns, int prog1, int prog2) in test_prog_attach_prog_attach() argument 102 err = bpf_prog_attach(prog2, 0, BPF_FLOW_DISSECTOR, 0); in test_prog_attach_prog_attach() 104 perror("bpf_prog_attach(prog2) #1"); in test_prog_attach_prog_attach() 107 CHECK_FAIL(query_attached_prog_id(netns) != query_prog_id(prog2)); in test_prog_attach_prog_attach() 110 err = bpf_prog_attach(prog2, 0, BPF_FLOW_DISSECTOR, 0); in test_prog_attach_prog_attach() 112 perror("bpf_prog_attach(prog2) #2"); in test_prog_attach_prog_attach() 113 CHECK_FAIL(query_attached_prog_id(netns) != query_prog_id(prog2)); in test_prog_attach_prog_attach() 116 err = bpf_prog_detach2(prog2, 0, BPF_FLOW_DISSECTOR); in test_prog_attach_prog_attach() 122 static void test_link_create_link_create(int netns, int prog1, int prog2) in test_link_create_link_create() argument 136 link2 = bpf_link_create(prog2, netn in test_link_create_link_create() 147 test_prog_attach_link_create(int netns, int prog1, int prog2) test_prog_attach_link_create() argument 174 test_link_create_prog_attach(int netns, int prog1, int prog2) test_link_create_prog_attach() argument 197 test_link_create_prog_detach(int netns, int prog1, int prog2) test_link_create_prog_detach() argument 220 test_prog_attach_detach_query(int netns, int prog1, int prog2) test_prog_attach_detach_query() argument 241 test_link_create_close_query(int netns, int prog1, int prog2) test_link_create_close_query() argument 258 test_link_update_no_old_prog(int netns, int prog1, int prog2) test_link_update_no_old_prog() argument 283 test_link_update_replace_old_prog(int netns, int prog1, int prog2) test_link_update_replace_old_prog() argument 308 test_link_update_same_prog(int netns, int prog1, int prog2) test_link_update_same_prog() argument 333 test_link_update_invalid_opts(int netns, int prog1, int prog2) test_link_update_invalid_opts() argument 393 test_link_update_invalid_prog(int netns, int prog1, int prog2) test_link_update_invalid_prog() argument 436 test_link_update_netns_gone(int netns, int prog1, int prog2) test_link_update_netns_gone() argument 473 test_link_get_info(int netns, int prog1, int prog2) test_link_get_info() argument [all...] |
H A D | sk_lookup.c | 1181 struct bpf_program *prog2; member 1210 link2 = attach_lookup_prog(t->prog2); in run_multi_prog_lookup() 1263 .prog2 = skel->progs.multi_prog_pass2, in test_multi_prog_lookup() 1269 .prog2 = skel->progs.multi_prog_drop2, in test_multi_prog_lookup() 1276 .prog2 = skel->progs.multi_prog_drop2, in test_multi_prog_lookup() 1283 .prog2 = skel->progs.multi_prog_pass2, in test_multi_prog_lookup() 1290 .prog2 = skel->progs.multi_prog_redir2, in test_multi_prog_lookup() 1296 .prog2 = skel->progs.multi_prog_pass2, in test_multi_prog_lookup() 1302 .prog2 = skel->progs.multi_prog_redir2, in test_multi_prog_lookup() 1308 .prog2 in test_multi_prog_lookup() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector_reattach.c | 90 static void test_prog_attach_prog_attach(int netns, int prog1, int prog2) in test_prog_attach_prog_attach() argument 102 err = bpf_prog_attach(prog2, 0, BPF_FLOW_DISSECTOR, 0); in test_prog_attach_prog_attach() 104 perror("bpf_prog_attach(prog2) #1"); in test_prog_attach_prog_attach() 107 CHECK_FAIL(query_attached_prog_id(netns) != query_prog_id(prog2)); in test_prog_attach_prog_attach() 110 err = bpf_prog_attach(prog2, 0, BPF_FLOW_DISSECTOR, 0); in test_prog_attach_prog_attach() 112 perror("bpf_prog_attach(prog2) #2"); in test_prog_attach_prog_attach() 113 CHECK_FAIL(query_attached_prog_id(netns) != query_prog_id(prog2)); in test_prog_attach_prog_attach() 116 err = bpf_prog_detach2(prog2, 0, BPF_FLOW_DISSECTOR); in test_prog_attach_prog_attach() 122 static void test_link_create_link_create(int netns, int prog1, int prog2) in test_link_create_link_create() argument 136 link2 = bpf_link_create(prog2, netn in test_link_create_link_create() 147 test_prog_attach_link_create(int netns, int prog1, int prog2) test_prog_attach_link_create() argument 174 test_link_create_prog_attach(int netns, int prog1, int prog2) test_link_create_prog_attach() argument 197 test_link_create_prog_detach(int netns, int prog1, int prog2) test_link_create_prog_detach() argument 220 test_prog_attach_detach_query(int netns, int prog1, int prog2) test_prog_attach_detach_query() argument 241 test_link_create_close_query(int netns, int prog1, int prog2) test_link_create_close_query() argument 258 test_link_update_no_old_prog(int netns, int prog1, int prog2) test_link_update_no_old_prog() argument 283 test_link_update_replace_old_prog(int netns, int prog1, int prog2) test_link_update_replace_old_prog() argument 308 test_link_update_same_prog(int netns, int prog1, int prog2) test_link_update_same_prog() argument 333 test_link_update_invalid_opts(int netns, int prog1, int prog2) test_link_update_invalid_opts() argument 393 test_link_update_invalid_prog(int netns, int prog1, int prog2) test_link_update_invalid_prog() argument 436 test_link_update_netns_gone(int netns, int prog1, int prog2) test_link_update_netns_gone() argument 473 test_link_get_info(int netns, int prog1, int prog2) test_link_get_info() argument [all...] |
H A D | autoattach.c | 15 /* disable auto-attach for prog2 */ in test_autoattach() 16 bpf_program__set_autoattach(skel->progs.prog2, false); in test_autoattach() 18 ASSERT_FALSE(bpf_program__autoattach(skel->progs.prog2), "autoattach_prog2"); in test_autoattach()
|
H A D | sk_lookup.c | 1211 struct bpf_program *prog2; member 1240 link2 = attach_lookup_prog(t->prog2); in run_multi_prog_lookup() 1293 .prog2 = skel->progs.multi_prog_pass2, in test_multi_prog_lookup() 1299 .prog2 = skel->progs.multi_prog_drop2, in test_multi_prog_lookup() 1306 .prog2 = skel->progs.multi_prog_drop2, in test_multi_prog_lookup() 1313 .prog2 = skel->progs.multi_prog_pass2, in test_multi_prog_lookup() 1320 .prog2 = skel->progs.multi_prog_redir2, in test_multi_prog_lookup() 1326 .prog2 = skel->progs.multi_prog_pass2, in test_multi_prog_lookup() 1332 .prog2 = skel->progs.multi_prog_redir2, in test_multi_prog_lookup() 1338 .prog2 in test_multi_prog_lookup() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_autoattach.c | 18 int prog2(const void *ctx) in prog2() function
|
H A D | test_autoload.c | 21 int prog2(const void *ctx) in prog2() function
|
H A D | test_overhead.c | 19 int BPF_KRETPROBE(prog2, int ret) in BPF_KRETPROBE()
|
H A D | test_subprogs.c | 81 int prog2(void *ctx) in prog2() function 113 /* prog4 has the same section name as prog2 */
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | test_overhead_tp.bpf.c | 19 int prog2(struct trace_event_raw_fib_table_lookup *ctx) in prog2() function
|
H A D | test_overhead_raw_tp.bpf.c | 13 int prog2(struct bpf_raw_tracepoint_args *ctx) in prog2() function
|
H A D | test_overhead_kprobe.bpf.c | 35 int prog2(struct pt_regs *ctx) in prog2() function
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | test_overhead_raw_tp_kern.c | 13 int prog2(struct bpf_raw_tracepoint_args *ctx) in prog2() function
|
H A D | test_overhead_tp_kern.c | 32 int prog2(struct urandom_read *ctx) in prog2() function
|
H A D | test_overhead_kprobe_kern.c | 42 int prog2(struct pt_regs *ctx) in prog2() function
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_autoload.c | 21 int prog2(const void *ctx) in prog2() function
|
H A D | test_trampoline_count.c | 17 int BPF_PROG(prog2, struct task_struct *tsk, const char *buf, bool exec) in BPF_PROG()
|
H A D | test_overhead.c | 19 int BPF_KRETPROBE(prog2, int ret) in BPF_KRETPROBE()
|
H A D | test_subprogs.c | 68 int prog2(void *ctx) in prog2() function 92 /* prog4 has the same section name as prog2 */
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/benchs/ |
H A D | bench_rename.c | 88 attach_bpf(ctx.skel->progs.prog2); in setup_kretprobe()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/benchs/ |
H A D | bench_rename.c | 88 attach_bpf(ctx.skel->progs.prog2); in setup_kretprobe()
|