Searched refs:prog1 (Results 1 – 8 of 8) sorted by relevance
/linux/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 94 err = bpf_prog_attach(prog1, 0, BPF_FLOW_DISSECTOR, 0); in test_prog_attach_prog_attach() 99 CHECK_FAIL(query_attached_prog_id(netns) != query_prog_id(prog1)); 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 127 link1 = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &opts); in test_link_create_link_create() 132 CHECK_FAIL(query_attached_prog_id(netns) != query_prog_id(prog1)); in test_link_create_link_create() 141 CHECK_FAIL(query_attached_prog_id(netns) != query_prog_id(prog1)); in test_link_create_link_create() 147 static void test_prog_attach_link_create(int netns, int prog1, int prog2) in test_prog_attach_link_create() argument 152 err = bpf_prog_attach(prog1, 0, BPF_FLOW_DISSECTOR, 0); in test_prog_attach_link_create() 157 CHECK_FAIL(query_attached_prog_id(netns) != query_prog_id(prog1)); in test_prog_attach_link_create() [all …]
|
H A D | sk_lookup.c | 1153 struct bpf_program *prog1; member 1181 link1 = attach_lookup_prog(t->prog1); in run_multi_prog_lookup() 1239 .prog1 = skel->progs.multi_prog_pass1, in test_multi_prog_lookup() 1245 .prog1 = skel->progs.multi_prog_drop1, in test_multi_prog_lookup() 1252 .prog1 = skel->progs.multi_prog_pass1, in test_multi_prog_lookup() 1259 .prog1 = skel->progs.multi_prog_drop1, in test_multi_prog_lookup() 1266 .prog1 = skel->progs.multi_prog_pass1, in test_multi_prog_lookup() 1272 .prog1 = skel->progs.multi_prog_redir1, in test_multi_prog_lookup() 1278 .prog1 = skel->progs.multi_prog_drop1, in test_multi_prog_lookup() 1284 .prog1 = skel->progs.multi_prog_redir1, in test_multi_prog_lookup() [all …]
|
H A D | autoattach.c | 17 ASSERT_TRUE(bpf_program__autoattach(skel->progs.prog1), "autoattach_prog1"); in test_autoattach()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_autoattach.c | 11 int prog1(const void *ctx) in prog1() function
|
H A D | test_autoload.c | 14 int prog1(const void *ctx) in prog1() function
|
H A D | test_overhead.c | 13 int BPF_KPROBE(prog1, struct task_struct *tsk, const char *buf, bool exec) in BPF_KPROBE() argument
|
H A D | test_subprogs.c | 66 int prog1(void *ctx) in prog1() function
|
/linux/tools/testing/selftests/bpf/benchs/ |
H A D | bench_rename.c | 82 attach_bpf(ctx.skel->progs.prog1); in setup_kprobe()
|