/tools/testing/selftests/bpf/verifier/ |
D | event_output.c | 42 .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,
|
D | sleepable.c | 7 .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,
|
D | ld_dw.c | 6 .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,
|
D | jset.c | 30 .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,
|
D | calls.c | 8 .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 …]
|
D | ld_abs.c | 92 .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 …]
|
D | perf_event_sample_period.c | 15 .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,
|
D | jmp32.c | 16 .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 …]
|
D | map_kptr.c | 17 .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 …]
|
D | ctx_sk_lookup.c | 258 .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 …]
|
D | ctx_skb.c | 185 .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 …]
|
D | scale.c | 6 .prog_type = BPF_PROG_TYPE_SCHED_CLS, 15 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
|
D | bpf_st_mem.c | 12 .prog_type = BPF_PROG_TYPE_SK_LOOKUP, 34 .prog_type = BPF_PROG_TYPE_SK_LOOKUP, 64 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
|
D | precise.c | 37 .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,
|
D | basic_call.c | 37 .prog_type = BPF_PROG_TYPE_SCHED_CLS, 49 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
|
D | bpf_loop_inline.c | 59 .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,
|
D | wide_access.c | 11 .prog_type = BPF_PROG_TYPE_CGROUP_SOCK_ADDR, \ 53 .prog_type = BPF_PROG_TYPE_CGROUP_SOCK_ADDR, \
|
D | basic_instr.c | 28 .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/ |
D | section_names.c | 11 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()
|
D | libbpf_probes.c | 28 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()
|
D | align.c | 20 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 …]
|
D | signal_pending.c | 10 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/ |
D | feature.c | 517 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/ |
D | libbpf_probes.c | 103 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/ |
D | test_verifier.c | 145 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 …]
|