Home
last modified time | relevance | path

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

123

/tools/testing/selftests/bpf/verifier/
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,
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,
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,
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,
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 …]
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 …]
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,
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 …]
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 …]
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 …]
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 …]
Dscale.c6 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
15 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
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,
Dprecise.c37 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
96 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
137 .prog_type = BPF_PROG_TYPE_XDP,
153 .prog_type = BPF_PROG_TYPE_XDP,
180 .prog_type = BPF_PROG_TYPE_XDP,
218 .prog_type = BPF_PROG_TYPE_XDP,
255 .prog_type = BPF_PROG_TYPE_XDP,
Dbasic_call.c37 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
49 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
Dbpf_loop_inline.c59 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
92 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
129 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
167 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
237 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
254 .prog_type = BPF_PROG_TYPE_TRACEPOINT,
Dwide_access.c11 .prog_type = BPF_PROG_TYPE_CGROUP_SOCK_ADDR, \
53 .prog_type = BPF_PROG_TYPE_CGROUP_SOCK_ADDR, \
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,
/tools/testing/selftests/bpf/prog_tests/
Dsection_names.c11 enum bpf_prog_type prog_type; member
166 enum bpf_prog_type prog_type; in test_prog_type_by_name() local
169 rc = libbpf_prog_type_by_name(test->sec_name, &prog_type, in test_prog_type_by_name()
178 CHECK(prog_type != test->expected_load.prog_type, "check_prog_type", in test_prog_type_by_name()
180 prog_type, test->sec_name); in test_prog_type_by_name()
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()
37 res = libbpf_probe_bpf_prog_type(prog_type, NULL); in test_libbpf_probe_prog_types()
88 .prog_type = BPF_PROG_TYPE_ ## prog, \ in test_libbpf_probe_helpers()
95 enum bpf_prog_type prog_type; in test_libbpf_probe_helpers() member
121 res = libbpf_probe_bpf_helper(d->prog_type, d->helper_id, NULL); in test_libbpf_probe_helpers()
Dalign.c20 enum bpf_prog_type prog_type; member
40 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
68 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
97 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
119 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
162 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
195 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
235 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
296 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
394 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
[all …]
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()
/tools/bpf/bpftool/
Dfeature.c517 probe_prog_load_ifindex(enum bpf_prog_type prog_type, in probe_prog_load_ifindex() argument
531 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts); in probe_prog_load_ifindex()
538 static bool probe_prog_type_ifindex(enum bpf_prog_type prog_type, __u32 ifindex) in probe_prog_type_ifindex() argument
546 return probe_prog_load_ifindex(prog_type, insns, ARRAY_SIZE(insns), in probe_prog_type_ifindex()
551 probe_prog_type(enum bpf_prog_type prog_type, const char *prog_type_str, in probe_prog_type() argument
560 switch (prog_type) { in probe_prog_type()
568 res = probe_prog_type_ifindex(prog_type, ifindex); in probe_prog_type()
570 res = libbpf_probe_bpf_prog_type(prog_type, NULL) > 0; in probe_prog_type()
581 supported_types[prog_type] |= res; in probe_prog_type()
659 probe_helper_ifindex(enum bpf_func_id id, enum bpf_prog_type prog_type, in probe_helper_ifindex() argument
[all …]
/tools/lib/bpf/
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()
403 int libbpf_probe_bpf_helper(enum bpf_prog_type prog_type, enum bpf_func_id helper_id, in libbpf_probe_bpf_helper() argument
420 switch (prog_type) { in libbpf_probe_bpf_helper()
431 ret = probe_prog_load(prog_type, insns, insn_cnt, buf, sizeof(buf)); in libbpf_probe_bpf_helper()
/tools/testing/selftests/bpf/
Dtest_verifier.c145 enum bpf_prog_type prog_type; member
577 static int create_prog_dummy_simple(enum bpf_prog_type prog_type, int ret) in create_prog_dummy_simple() argument
584 return bpf_prog_load(prog_type, NULL, "GPL", prog, ARRAY_SIZE(prog), NULL); in create_prog_dummy_simple()
587 static int create_prog_dummy_loop(enum bpf_prog_type prog_type, int mfd, in create_prog_dummy_loop() argument
599 return bpf_prog_load(prog_type, NULL, "GPL", prog, ARRAY_SIZE(prog), NULL); in create_prog_dummy_loop()
602 static int create_prog_array(enum bpf_prog_type prog_type, uint32_t max_elem, in create_prog_array() argument
616 p1fd = create_prog_dummy_simple(prog_type, 42); in create_prog_array()
617 p2fd = create_prog_dummy_loop(prog_type, mfd, p2key, 41); in create_prog_array()
618 p3fd = create_prog_dummy_simple(prog_type, 24); in create_prog_array()
1009 static void do_test_fixup(struct bpf_test *test, enum bpf_prog_type prog_type, in do_test_fixup() argument
[all …]

123