Home
last modified time | relevance | path

Searched refs:prog_type (Results 1 – 25 of 58) sorted by relevance

123

/linux/tools/testing/selftests/bpf/verifier/
H A Devent_output.c42 .prog_type = BPF_PROG_TYPE_SOCK_OPS,
50 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
58 .prog_type = BPF_PROG_TYPE_LWT_OUT,
66 .prog_type = BPF_PROG_TYPE_XDP,
74 .prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
82 .prog_type = BPF_PROG_TYPE_SK_SKB,
90 .prog_type = BPF_PROG_TYPE_CGROUP_SKB,
98 .prog_type = BPF_PROG_TYPE_CGROUP_DEVICE,
106 .prog_type = BPF_PROG_TYPE_CGROUP_SYSCTL,
114 .prog_type = BPF_PROG_TYPE_CGROUP_SOCKOPT,
H A Dcalls.c8 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
21 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
32 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
47 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
62 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
77 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
92 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
110 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
133 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
153 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
[all …]
H A Dsleepable.c7 .prog_type = BPF_PROG_TYPE_TRACING,
20 .prog_type = BPF_PROG_TYPE_TRACING,
33 .prog_type = BPF_PROG_TYPE_TRACING,
46 .prog_type = BPF_PROG_TYPE_TRACING,
59 .prog_type = BPF_PROG_TYPE_LSM,
72 .prog_type = BPF_PROG_TYPE_KPROBE,
84 .prog_type = BPF_PROG_TYPE_TRACING,
H A Djmp32.c16 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
48 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
104 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
128 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
169 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
193 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
234 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
261 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
305 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
332 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
[all …]
H A Djset.c30 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
70 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
84 .prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
98 .prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
113 .prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
127 .prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
143 .prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
165 .prog_type = BPF_PROG_TYPE_SOCKET_FILTER,
H A Dld_abs.c92 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
103 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
115 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
161 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
181 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
201 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
217 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
233 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
244 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
272 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
[all …]
H A Dld_dw.c6 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
15 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
24 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
33 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
42 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
H A Dmap_kptr.c17 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
37 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
67 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
100 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
121 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
151 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
176 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
197 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
220 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
244 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
[all …]
H A Dctx_sk_lookup.c258 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
273 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
286 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
300 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
313 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
327 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
341 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
354 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
368 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
382 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
[all …]
H A Dctx_skb.c185 .prog_type = BPF_PROG_TYPE_SK_SKB,
195 .prog_type = BPF_PROG_TYPE_SK_SKB,
205 .prog_type = BPF_PROG_TYPE_SK_SKB,
221 .prog_type = BPF_PROG_TYPE_SK_SKB,
237 .prog_type = BPF_PROG_TYPE_SK_SKB,
247 .prog_type = BPF_PROG_TYPE_SK_SKB,
257 .prog_type = BPF_PROG_TYPE_SK_SKB,
267 .prog_type = BPF_PROG_TYPE_SK_SKB,
278 .prog_type = BPF_PROG_TYPE_SK_SKB,
290 .prog_type = BPF_PROG_TYPE_SK_SKB,
[all …]
H A Dperf_event_sample_period.c15 .prog_type = BPF_PROG_TYPE_PERF_EVENT,
31 .prog_type = BPF_PROG_TYPE_PERF_EVENT,
47 .prog_type = BPF_PROG_TYPE_PERF_EVENT,
58 .prog_type = BPF_PROG_TYPE_PERF_EVENT,
H A Dbpf_st_mem.c12 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
34 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
64 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
92 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
H A Dprecise.c37 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
96 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
137 .prog_type = BPF_PROG_TYPE_XDP,
154 .prog_type = BPF_PROG_TYPE_XDP,
183 .prog_type = BPF_PROG_TYPE_XDP,
224 .prog_type = BPF_PROG_TYPE_XDP,
261 .prog_type = BPF_PROG_TYPE_XDP,
H A Dbpf_loop_inline.c59 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
93 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
131 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
170 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
241 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
259 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
H A Dscale.c6 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
15 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
H A Dbasic_call.c37 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
49 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
H A Dbasic_instr.c28 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
204 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
217 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
/linux/tools/bpf/bpftool/
H A Dfeature.c513 probe_prog_load_ifindex(enum bpf_prog_type prog_type, in probe_prog_load_ifindex() argument
527 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts); in probe_prog_load_ifindex()
534 static bool probe_prog_type_ifindex(enum bpf_prog_type prog_type, __u32 ifindex) in probe_prog_type_ifindex() argument
542 return probe_prog_load_ifindex(prog_type, insns, ARRAY_SIZE(insns), in probe_prog_type_ifindex()
547 probe_prog_type(enum bpf_prog_type prog_type, const char *prog_type_str, in probe_prog_type() argument
556 switch (prog_type) { in probe_prog_type()
564 res = probe_prog_type_ifindex(prog_type, ifindex); in probe_prog_type()
566 res = libbpf_probe_bpf_prog_type(prog_type, NULL) > 0; in probe_prog_type()
577 supported_types[prog_type] |= res; in probe_prog_type()
655 probe_helper_ifindex(enum bpf_func_id id, enum bpf_prog_type prog_type, in probe_helper_ifindex() argument
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dalign.c21 enum bpf_prog_type prog_type; member
41 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
69 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
98 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
120 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
163 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
196 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
236 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
297 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
395 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
[all …]
H A Dlibbpf_probes.c28 enum bpf_prog_type prog_type = (enum bpf_prog_type)e->val; in test_libbpf_probe_prog_types() local
31 if (prog_type == BPF_PROG_TYPE_UNSPEC) in test_libbpf_probe_prog_types()
39 res = libbpf_probe_bpf_prog_type(prog_type, NULL); in test_libbpf_probe_prog_types()
92 .prog_type = BPF_PROG_TYPE_ ## prog, \ in test_libbpf_probe_helpers()
99 enum bpf_prog_type prog_type; in test_libbpf_probe_helpers() member
125 res = libbpf_probe_bpf_helper(d->prog_type, d->helper_id, NULL); in test_libbpf_probe_helpers()
H A Dsection_names.c11 enum bpf_prog_type prog_type; member
211 enum bpf_prog_type prog_type; in test_prog_type_by_name() local
214 rc = libbpf_prog_type_by_name(test->sec_name, &prog_type, in test_prog_type_by_name()
223 CHECK(prog_type != test->expected_load.prog_type, "check_prog_type", in test_prog_type_by_name()
225 prog_type, test->sec_name); in test_prog_type_by_name()
H A Dsignal_pending.c10 static void test_signal_pending_by_type(enum bpf_prog_type prog_type) in test_signal_pending_by_type() argument
29 prog_fd = bpf_test_load_program(prog_type, prog, ARRAY_SIZE(prog), in test_signal_pending_by_type()
H A Dsockopt.c27 enum bpf_prog_type prog_type; member
943 .prog_type = BPF_PROG_TYPE_CGROUP_SKB,
957 .prog_type = BPF_PROG_TYPE_CGROUP_SKB,
965 enum bpf_prog_type prog_type, in load_prog() argument
982 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts); in load_prog()
1074 int prog_type = BPF_PROG_TYPE_CGROUP_SOCKOPT; in run_test() local
1079 if (test->prog_type) in run_test()
1080 prog_type = test->prog_type; in run_test()
1082 prog_fd = load_prog(test->insns, prog_type, test->expected_attach_type); in run_test()
/linux/tools/lib/bpf/
H A Dlibbpf_probes.c103 static int probe_prog_load(enum bpf_prog_type prog_type, in probe_prog_load() argument
116 switch (prog_type) { in probe_prog_load()
137 if (prog_type == BPF_PROG_TYPE_TRACING) in probe_prog_load()
191 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts); in probe_prog_load()
205 int libbpf_probe_bpf_prog_type(enum bpf_prog_type prog_type, const void *opts) in libbpf_probe_bpf_prog_type() argument
217 ret = probe_prog_load(prog_type, insns, insn_cnt, NULL, 0); in libbpf_probe_bpf_prog_type()
416 int libbpf_probe_bpf_helper(enum bpf_prog_type prog_type, enum bpf_func_id helper_id, in libbpf_probe_bpf_helper() argument
433 switch (prog_type) { in libbpf_probe_bpf_helper()
444 ret = probe_prog_load(prog_type, insns, insn_cnt, buf, sizeof(buf)); in libbpf_probe_bpf_helper()
/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c143 enum bpf_prog_type prog_type;
575 static int create_prog_dummy_simple(enum bpf_prog_type prog_type, int ret) in update_map()
582 return bpf_prog_load(prog_type, NULL, "GPL", prog, ARRAY_SIZE(prog), NULL); in create_prog_dummy_simple()
585 static int create_prog_dummy_loop(enum bpf_prog_type prog_type, int mfd, in create_prog_dummy_simple()
597 return bpf_prog_load(prog_type, NULL, "GPL", prog, ARRAY_SIZE(prog), NULL); in create_prog_dummy_loop()
600 static int create_prog_array(enum bpf_prog_type prog_type, uint32_t max_elem, in create_prog_dummy_loop()
614 p1fd = create_prog_dummy_simple(prog_type, 42); in create_prog_array()
615 p2fd = create_prog_dummy_loop(prog_type, mfd, p2key, 41); in create_prog_array()
616 p3fd = create_prog_dummy_simple(prog_type, 24); in create_prog_array()
1007 static void do_test_fixup(struct bpf_test *test, enum bpf_prog_type prog_type, in fixup_prog_kfuncs()
147 enum bpf_prog_type prog_type; global() member
579 create_prog_dummy_simple(enum bpf_prog_type prog_type,int ret) create_prog_dummy_simple() argument
589 create_prog_dummy_loop(enum bpf_prog_type prog_type,int mfd,int idx,int ret) create_prog_dummy_loop() argument
604 create_prog_array(enum bpf_prog_type prog_type,uint32_t max_elem,int p1key,int p2key,int p3key) create_prog_array() argument
1011 do_test_fixup(struct bpf_test * test,enum bpf_prog_type prog_type,struct bpf_insn * prog,int * map_fds,int * fd_array) do_test_fixup() argument
1512 int prog_len, prog_type = test->prog_type; do_test_single() local
[all...]

123