Home
last modified time | relevance | path

Searched refs:prog2 (Results 1 - 21 of 21) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector_reattach.c90 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 Dsk_lookup.c1181 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 Dflow_dissector_reattach.c90 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 Dautoattach.c15 /* 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 Dsk_lookup.c1211 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 Dtest_autoattach.c18 int prog2(const void *ctx) in prog2() function
H A Dtest_autoload.c21 int prog2(const void *ctx) in prog2() function
H A Dtest_overhead.c19 int BPF_KRETPROBE(prog2, int ret) in BPF_KRETPROBE()
H A Dtest_subprogs.c81 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 Dtest_overhead_tp.bpf.c19 int prog2(struct trace_event_raw_fib_table_lookup *ctx) in prog2() function
H A Dtest_overhead_raw_tp.bpf.c13 int prog2(struct bpf_raw_tracepoint_args *ctx) in prog2() function
H A Dtest_overhead_kprobe.bpf.c35 int prog2(struct pt_regs *ctx) in prog2() function
/kernel/linux/linux-5.10/samples/bpf/
H A Dtest_overhead_raw_tp_kern.c13 int prog2(struct bpf_raw_tracepoint_args *ctx) in prog2() function
H A Dtest_overhead_tp_kern.c32 int prog2(struct urandom_read *ctx) in prog2() function
H A Dtest_overhead_kprobe_kern.c42 int prog2(struct pt_regs *ctx) in prog2() function
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_autoload.c21 int prog2(const void *ctx) in prog2() function
H A Dtest_trampoline_count.c17 int BPF_PROG(prog2, struct task_struct *tsk, const char *buf, bool exec) in BPF_PROG()
H A Dtest_overhead.c19 int BPF_KRETPROBE(prog2, int ret) in BPF_KRETPROBE()
H A Dtest_subprogs.c68 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 Dbench_rename.c88 attach_bpf(ctx.skel->progs.prog2); in setup_kretprobe()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/benchs/
H A Dbench_rename.c88 attach_bpf(ctx.skel->progs.prog2); in setup_kretprobe()

Completed in 8 milliseconds