Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dxdp_attach.c19 err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj1, &fd1); in test_xdp_attach()
27 err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj2, &fd2); in test_xdp_attach()
37 err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj3, &fd3); in test_xdp_attach()
Dxdp_adjust_tail.c13 err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); in test_xdp_adjust_tail_shrink()
41 err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); in test_xdp_adjust_tail_grow()
78 err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj, &tattr.prog_fd); in test_xdp_adjust_tail_grow2()
Dfexit_bpf2bpf.c66 err = bpf_prog_load(target_obj_file, BPF_PROG_TYPE_UNSPEC, in test_fexit_bpf2bpf_common()
197 err = bpf_prog_load(tgt_obj_file, BPF_PROG_TYPE_UNSPEC, in test_second_attach()
247 err = bpf_prog_load(tgt_name, BPF_PROG_TYPE_UNSPEC, in test_fmod_ret_freplace()
312 err = bpf_prog_load(target_obj_file, BPF_PROG_TYPE_UNSPEC, in test_obj_load_failure_common()
Dtailcalls.c19 err = bpf_prog_load("tailcall1.o", BPF_PROG_TYPE_SCHED_CLS, &obj, in test_tailcall_1()
157 err = bpf_prog_load("tailcall2.o", BPF_PROG_TYPE_SCHED_CLS, &obj, in test_tailcall_2()
234 err = bpf_prog_load("tailcall3.o", BPF_PROG_TYPE_SCHED_CLS, &obj, in test_tailcall_3()
314 err = bpf_prog_load("tailcall4.o", BPF_PROG_TYPE_SCHED_CLS, &obj, in test_tailcall_4()
402 err = bpf_prog_load("tailcall5.o", BPF_PROG_TYPE_SCHED_CLS, &obj, in test_tailcall_5()
488 err = bpf_prog_load("tailcall_bpf2bpf1.o", BPF_PROG_TYPE_SCHED_CLS, in test_tailcall_bpf2bpf_1()
572 err = bpf_prog_load("tailcall_bpf2bpf2.o", BPF_PROG_TYPE_SCHED_CLS, in test_tailcall_bpf2bpf_2()
650 err = bpf_prog_load("tailcall_bpf2bpf3.o", BPF_PROG_TYPE_SCHED_CLS, in test_tailcall_bpf2bpf_3()
740 err = bpf_prog_load("tailcall_bpf2bpf4.o", BPF_PROG_TYPE_SCHED_CLS, in test_tailcall_bpf2bpf_4()
Dget_stack_raw_tp.c97 err = bpf_prog_load(file_err, BPF_PROG_TYPE_RAW_TRACEPOINT, &obj, &prog_fd); in test_get_stack_raw_tp()
101 err = bpf_prog_load(file, BPF_PROG_TYPE_RAW_TRACEPOINT, &obj, &prog_fd); in test_get_stack_raw_tp()
Dtcp_estats.c11 err = bpf_prog_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd); in test_tcp_estats()
Dpkt_md_access.c12 err = bpf_prog_load(file, BPF_PROG_TYPE_SCHED_CLS, &obj, &prog_fd); in test_pkt_md_access()
Dxdp_perf.c12 err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); in test_xdp_perf()
Dskb_helpers.c23 err = bpf_prog_load("./test_skb_helpers.o", BPF_PROG_TYPE_SCHED_CLS, &obj, in test_skb_helpers()
Dpkt_access.c12 err = bpf_prog_load(file, BPF_PROG_TYPE_SCHED_CLS, &obj, &prog_fd); in test_pkt_access()
Dspinlock.c27 err = bpf_prog_load(file, BPF_PROG_TYPE_CGROUP_SKB, &obj, &prog_fd); in test_spinlock()
Dprog_run_xattr.c19 err = bpf_prog_load(file, BPF_PROG_TYPE_SCHED_CLS, &obj, in test_prog_run_xattr()
Dload_bytes_relative.c30 err = bpf_prog_load("./load_bytes_relative.o", BPF_PROG_TYPE_CGROUP_SKB, in test_load_bytes_relative()
Dstacktrace_map_raw_tp.c15 err = bpf_prog_load(file, BPF_PROG_TYPE_RAW_TRACEPOINT, &obj, &prog_fd); in test_stacktrace_map_raw_tp()
Dxdp.c19 err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); in test_xdp()
Dxdp_info.c32 err = bpf_prog_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); in test_xdp_info()
Dstacktrace_map.c15 err = bpf_prog_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd); in test_stacktrace_map()
Dtask_fd_query_tp.c16 err = bpf_prog_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd); in test_task_fd_query_tp_core()
Dtask_fd_query_rawtp.c14 err = bpf_prog_load(file, BPF_PROG_TYPE_RAW_TRACEPOINT, &obj, &prog_fd); in test_task_fd_query_rawtp()
Dskb_ctx.c33 err = bpf_prog_load("./test_skb_ctx.o", BPF_PROG_TYPE_SCHED_CLS, &obj, in test_skb_ctx()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_dev_cgroup.c30 if (bpf_prog_load(DEV_CGROUP_PROG, BPF_PROG_TYPE_CGROUP_DEVICE, in main()
Dflow_dissector_load.h21 ret = bpf_prog_load(path, BPF_PROG_TYPE_FLOW_DISSECTOR, obj, in bpf_flow_load()
Dtest_lirc_mode2_user.c61 ret = bpf_prog_load("test_lirc_mode2_kern.o", in main()
/kernel/linux/linux-5.10/samples/bpf/
Dsockex1_user.c21 if (bpf_prog_load(filename, BPF_PROG_TYPE_SOCKET_FILTER, in main()
Dsockex2_user.c29 if (bpf_prog_load(filename, BPF_PROG_TYPE_SOCKET_FILTER, in main()

12