/linux/tools/testing/selftests/bpf/verifier/ |
H A 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,
|
H A 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 …]
|
H A 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,
|
H A 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 …]
|
H A 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,
|
H A 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 …]
|
H A 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,
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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,
|
H A 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, 92 .prog_type = BPF_PROG_TYPE_SK_LOOKUP,
|
H A D | precise.c | 37 .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 D | bpf_loop_inline.c | 59 .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 D | scale.c | 6 .prog_type = BPF_PROG_TYPE_SCHED_CLS, 15 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
|
H A D | basic_call.c | 37 .prog_type = BPF_PROG_TYPE_SCHED_CLS, 49 .prog_type = BPF_PROG_TYPE_SCHED_CLS,
|
H A 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,
|
/linux/tools/bpf/bpftool/ |
H A D | feature.c | 513 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 D | align.c | 21 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 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() 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 D | section_names.c | 11 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 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()
|
H A D | sockopt.c | 27 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 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() 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 D | test_verifier.c | 143 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...] |