Home
last modified time | relevance | path

Searched refs:bpf_prog_test_load (Results 1 – 25 of 36) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_attach.c18 err = bpf_prog_test_load(file, BPF_PROG_TYPE_XDP, &obj1, &fd1); in test_xdp_attach()
26 err = bpf_prog_test_load(file, BPF_PROG_TYPE_XDP, &obj2, &fd2); in test_xdp_attach()
36 err = bpf_prog_test_load(file, BPF_PROG_TYPE_XDP, &obj3, &fd3); in test_xdp_attach()
128 err = bpf_prog_test_load(file, BPF_PROG_TYPE_XDP, &obj, &fd_xdp); in test_xdp_attach_fail()
H A Dtailcalls.c23 err = bpf_prog_test_load("tailcall1.bpf.o", BPF_PROG_TYPE_SCHED_CLS, &obj, in test_tailcall_1()
159 err = bpf_prog_test_load("tailcall2.bpf.o", BPF_PROG_TYPE_SCHED_CLS, &obj, in test_tailcall_2()
234 err = bpf_prog_test_load(which, BPF_PROG_TYPE_SCHED_CLS, &obj, in test_tailcall_count()
332 err = bpf_prog_test_load("tailcall4.bpf.o", BPF_PROG_TYPE_SCHED_CLS, &obj, in test_tailcall_4()
422 err = bpf_prog_test_load("tailcall5.bpf.o", BPF_PROG_TYPE_SCHED_CLS, &obj, in test_tailcall_5()
510 err = bpf_prog_test_load("tailcall_bpf2bpf1.bpf.o", BPF_PROG_TYPE_SCHED_CLS, in test_tailcall_bpf2bpf_1()
594 err = bpf_prog_test_load("tailcall_bpf2bpf2.bpf.o", BPF_PROG_TYPE_SCHED_CLS, in test_tailcall_bpf2bpf_2()
674 err = bpf_prog_test_load("tailcall_bpf2bpf3.bpf.o", BPF_PROG_TYPE_SCHED_CLS, in test_tailcall_bpf2bpf_3()
769 err = bpf_prog_test_load("tailcall_bpf2bpf4.bpf.o", BPF_PROG_TYPE_SCHED_CLS, in test_tailcall_bpf2bpf_4()
H A Dget_stack_raw_tp.c99 err = bpf_prog_test_load(file_err, BPF_PROG_TYPE_RAW_TRACEPOINT, &obj, &prog_fd); in test_get_stack_raw_tp()
103 err = bpf_prog_test_load(file, BPF_PROG_TYPE_RAW_TRACEPOINT, &obj, &prog_fd); in test_get_stack_raw_tp()
H A Dtcp_estats.c10 err = bpf_prog_test_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd); in test_tcp_estats()
H A Dxdp_adjust_tail.c20 err = bpf_prog_test_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); in test_xdp_adjust_tail_shrink()
55 err = bpf_prog_test_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); in test_xdp_adjust_tail_grow()
97 err = bpf_prog_test_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); in test_xdp_adjust_tail_grow2()
H A Dpkt_md_access.c16 err = bpf_prog_test_load(file, BPF_PROG_TYPE_SCHED_CLS, &obj, &prog_fd); in test_pkt_md_access()
H A Dskb_helpers.c23 err = bpf_prog_test_load("./test_skb_helpers.bpf.o", in test_skb_helpers()
H A Dxdp_perf.c18 err = bpf_prog_test_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); in test_xdp_perf()
H A Dpkt_access.c16 err = bpf_prog_test_load(file, BPF_PROG_TYPE_SCHED_CLS, &obj, &prog_fd); in test_pkt_access()
H A Dfexit_bpf2bpf.c76 err = bpf_prog_test_load(target_obj_file, BPF_PROG_TYPE_UNSPEC, in test_fexit_bpf2bpf_common()
247 err = bpf_prog_test_load(tgt_obj_file, BPF_PROG_TYPE_UNSPEC, in test_second_attach()
295 err = bpf_prog_test_load(tgt_name, BPF_PROG_TYPE_UNSPEC, in test_fmod_ret_freplace()
362 err = bpf_prog_test_load(target_obj_file, BPF_PROG_TYPE_UNSPEC, in test_obj_load_failure_common()
H A Dglobal_func_args.c51 err = bpf_prog_test_load(file, BPF_PROG_TYPE_CGROUP_SKB, &obj, &prog_fd); in test_global_func_args()
H A Dstacktrace_map_raw_tp.c15 err = bpf_prog_test_load(file, BPF_PROG_TYPE_RAW_TRACEPOINT, &obj, &prog_fd); in test_stacktrace_map_raw_tp()
H A Dload_bytes_relative.c30 err = bpf_prog_test_load("./load_bytes_relative.bpf.o", BPF_PROG_TYPE_CGROUP_SKB, in test_load_bytes_relative()
H A Dstacktrace_map.c15 err = bpf_prog_test_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd); in test_stacktrace_map()
H A Dxdp.c25 err = bpf_prog_test_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); in test_xdp()
H A Dxdp_info.c33 err = bpf_prog_test_load(file, BPF_PROG_TYPE_XDP, &obj, &prog_fd); in serial_test_xdp_info()
H A Dtask_fd_query_rawtp.c14 err = bpf_prog_test_load(file, BPF_PROG_TYPE_RAW_TRACEPOINT, &obj, &prog_fd); in test_task_fd_query_rawtp()
H A Dskb_ctx.c34 err = bpf_prog_test_load("./test_skb_ctx.bpf.o", BPF_PROG_TYPE_SCHED_CLS, in test_skb_ctx()
H A Dtask_fd_query_tp.c16 err = bpf_prog_test_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd); in test_task_fd_query_tp_core()
H A Dmap_lock.c59 err = bpf_prog_test_load(file, BPF_PROG_TYPE_CGROUP_SKB, &obj, &prog_fd); in test_map_lock()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtesting_helpers.h14 int bpf_prog_test_load(const char *file, enum bpf_prog_type type,
H A Dtest_dev_cgroup.c33 if (bpf_prog_test_load(DEV_CGROUP_PROG, BPF_PROG_TYPE_CGROUP_DEVICE, in main()
H A Dflow_dissector_load.h22 ret = bpf_prog_test_load(path, BPF_PROG_TYPE_FLOW_DISSECTOR, obj, in bpf_flow_load()
H A Dtest_lirc_mode2_user.c62 ret = bpf_prog_test_load("test_lirc_mode2_kern.bpf.o", in main()
H A Dtest_tcpnotify_user.c94 if (bpf_prog_test_load(file, BPF_PROG_TYPE_SOCK_OPS, &obj, &prog_fd)) { in main()

12