Home
last modified time | relevance | path

Searched refs:bpf_prog_load (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Draw_tp_writable_test_run.c26 int bpf_fd = bpf_prog_load(BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE, NULL, "GPL v2", in serial_test_raw_tp_writable_test_run()
43 int filter_fd = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL v2", in serial_test_raw_tp_writable_test_run()
H A Dlog_buf.c165 fd = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, "good_prog", "GPL", in bpf_prog_load_log_buf()
176 fd = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, "good_prog", "GPL", in bpf_prog_load_log_buf()
187 fd = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, "bad_prog", "GPL", in bpf_prog_load_log_buf()
H A Draw_tp_writable_reject_nbd_invalid.c27 bpf_fd = bpf_prog_load(BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE, NULL, "GPL v2", in test_raw_tp_writable_reject_nbd_invalid()
H A Dxdp_dev_bound_only.c15 return bpf_prog_load(BPF_PROG_TYPE_XDP, name, "GPL", insns, ARRAY_SIZE(insns), &opts); in load_dummy_prog()
H A Dfexit_stress.c37 fexit_fd[i] = bpf_prog_load(BPF_PROG_TYPE_TRACING, NULL, "GPL", in serial_test_fexit_stress()
H A Dverifier_log.c40 prog_fd = bpf_prog_load(BPF_PROG_TYPE_RAW_TRACEPOINT, "log_prog", in load_prog()
104 prog_fd = bpf_prog_load(BPF_PROG_TYPE_RAW_TRACEPOINT, "log_fixed25", in verif_log_subtest()
136 prog_fd = bpf_prog_load(BPF_PROG_TYPE_RAW_TRACEPOINT, prog_name, in verif_log_subtest()
H A Dmodule_fentry_shadow.c101 prog_fd[i] = bpf_prog_load(BPF_PROG_TYPE_TRACING, NULL, "GPL", in test_module_fentry_shadow()
H A Dunpriv_bpf_disabled.c170 ASSERT_EQ(bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, "simple_prog", "GPL", in test_unpriv_bpf_disabled_negative()
H A Dalign.c620 fd_prog = bpf_prog_load(prog_type ? : BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL", in do_test_single()
H A Dfexit_bpf2bpf.c449 return bpf_prog_load(BPF_PROG_TYPE_TRACING, in load_fentry()
H A Dctx_rewrite.c763 prog_fd = bpf_prog_load(pinfo->prog_type, NULL, "GPL", in match_program()
/openbmc/linux/samples/bpf/
H A Dsock_example.c68 prog_fd = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL", in test_sock()
H A Dtest_cgrp2_attach.c80 return bpf_prog_load(BPF_PROG_TYPE_CGROUP_SKB, NULL, "GPL", in prog_load()
H A Dfds_example.c72 return bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL", in bpf_prog_create()
H A Dtest_cgrp2_sock.c122 ret = bpf_prog_load(BPF_PROG_TYPE_CGROUP_SOCK, NULL, "GPL", in prog_load()
H A Dcookie_uid_helper_example.c165 prog_fd = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL", in prog_load()
/openbmc/linux/tools/bpf/bpftool/
H A Dfeature.c505 bpf_prog_load(BPF_PROG_TYPE_UNSPEC, NULL, NULL, NULL, 0, NULL); in probe_bpf_syscall()
531 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts); in probe_prog_load_ifindex()
796 fd = bpf_prog_load(BPF_PROG_TYPE_SOCKET_FILTER, NULL, "GPL", in probe_misc_feature()
/openbmc/linux/tools/lib/bpf/
H A Dlibbpf.map297 bpf_prog_load;
H A Dlibbpf_probes.c191 fd = bpf_prog_load(prog_type, NULL, "GPL", insns, insns_cnt, &opts); in probe_prog_load()
H A Dbpf.h109 LIBBPF_API int bpf_prog_load(enum bpf_prog_type prog_type,
/openbmc/linux/tools/build/
H A DMakefile.feature105 libbpf-bpf_prog_load \
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtesting_helpers.c308 return bpf_prog_load(type, NULL, license, insns, insns_cnt, &opts); in bpf_test_load_program()
H A Dtest_sock.c400 ret = bpf_prog_load(BPF_PROG_TYPE_CGROUP_SOCK, NULL, "GPL", prog, insn_cnt, &opts); in load_sock_prog()
H A Dtest_verifier.c584 return bpf_prog_load(prog_type, NULL, "GPL", prog, ARRAY_SIZE(prog), NULL); in create_prog_dummy_simple()
599 return bpf_prog_load(prog_type, NULL, "GPL", prog, ARRAY_SIZE(prog), NULL); in create_prog_dummy_loop()
1646 fd_prog = bpf_prog_load(prog_type, NULL, "GPL", prog, prog_len, &opts); in do_test_single()
/openbmc/linux/tools/build/feature/
H A DMakefile309 $(OUTPUT)test-libbpf-bpf_prog_load.bin:

12