Home
last modified time | relevance | path

Searched defs:prog_fd (Results 1 – 25 of 129) sorted by relevance

123456

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Datomics.c9 int err, prog_fd; in test_add() local
34 int err, prog_fd; in test_sub() local
59 int err, prog_fd; in test_and() local
81 int err, prog_fd; in test_or() local
103 int err, prog_fd; in test_xor() local
125 int err, prog_fd; in test_cmpxchg() local
147 int err, prog_fd; in test_xchg() local
Dtailcalls.c11 int err, map_fd, prog_fd, main_fd, i, j; in test_tailcall_1() local
147 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_2() local
223 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_count() local
319 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_4() local
409 int err, map_fd, prog_fd, main_fd, data_fd, i, key[] = { 1111, 1234, 5678 }; in test_tailcall_5() local
499 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_bpf2bpf_1() local
583 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_bpf2bpf_2() local
663 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_bpf2bpf_3() local
757 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_bpf2bpf_4() local
842 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_bpf2bpf_6() local
Dxdp_adjust_tail.c10 int err, prog_fd; in test_xdp_adjust_tail_shrink() local
46 int err, prog_fd; in test_xdp_adjust_tail_grow() local
81 int max_grow, prog_fd; in test_xdp_adjust_tail_grow2() local
148 int err, prog_fd; in test_xdp_adjust_frags_tail_shrink() local
215 int err, i, prog_fd; in test_xdp_adjust_frags_tail_grow() local
Dbpf_cookie.c74 int err, prog_fd; in kprobe_multi_test_run() local
102 int prog_fd, link1_fd = -1, link2_fd = -1; in kprobe_multi_link_api_subtest() local
495 int prog_fd; in tracing_subtest() local
548 int prog_fd; in lsm_subtest() local
Dkfunc_call.c95 int prog_fd, err; in verify_success() local
157 int prog_fd, err; in verify_fail() local
235 int prog_fd, err; in test_subprog() local
259 int prog_fd, err; in test_subprog_lskel() local
Dprog_run_opts.c9 static void check_run_cnt(int prog_fd, __u64 run_cnt) in check_run_cnt()
26 int err, stats_fd = -1, prog_fd; in test_prog_run_opts() local
Dverifier_log.c10 static bool check_prog_load(int prog_fd, bool expect_err, const char *tag) in check_prog_load()
38 int prog_fd; in load_prog() local
55 int i, mode, err, prog_fd, res; in verif_log_subtest() local
Dtype_cast.c10 int err, prog_fd; in test_xdp() local
47 int err, prog_fd; in test_tc() local
Dxdp_context_test_run.c6 void test_xdp_context_error(int prog_fd, struct bpf_test_run_opts opts, in test_xdp_context_error()
41 int err, prog_fd; in test_xdp_context_test_run() local
Dget_func_ip_test.c13 int err, prog_fd; in test_function_entry() local
70 int err, prog_fd; in test_function_body_kprobe() local
Dsyscall.c11 int prog_fd; member
29 int err, prog_fd; in test_syscall() local
Dmap_lock.c7 int err, prog_fd = *(u32 *) arg; in spin_lock_thread() local
53 int prog_fd, map_fd[2], vars[17] = {}; in test_map_lock() local
Dunpriv_bpf_disabled.c59 __u32 prog_id, int prog_fd, int perf_fd, in test_unpriv_bpf_disabled_positive()
142 __u32 prog_id, int prog_fd, int perf_fd, in test_unpriv_bpf_disabled_negative()
236 int prog_fd, perf_fd = -1, i, ret; in test_unpriv_bpf_disabled() local
Dspin_lock.c115 int err, prog_fd = *(u32 *) arg; in spin_lock_thread() local
132 int prog_fd, i; in test_spin_lock_success() local
Dtask_local_storage.c82 int err, map_fd, prog_fd, task_fd; in test_recursion() local
176 int i, prog_fd, err; in test_nodeadlock() local
Dcheck_mtu.c85 int err, prog_fd = bpf_program__fd(prog); in test_check_mtu_run_xdp() local
138 int err, prog_fd = bpf_program__fd(prog); in test_check_mtu_run_tc() local
Dget_func_args_test.c8 int err, prog_fd; in test_get_func_args_test() local
/linux-6.6.21/samples/bpf/
Dxdp_fwd_user.c32 static int do_attach(int idx, int prog_fd, int map_fd, const char *name) in do_attach()
56 int prog_fd; in do_detach() local
125 int prog_fd = -1, map_fd = -1; in main() local
/linux-6.6.21/tools/testing/selftests/bpf/
Dxdp_synproxy.c26 int prog_fd; in cleanup() local
195 int prog_fd; in syncookie_attach() local
277 int prog_fd; in syncookie_open_bpf_maps() local
/linux-6.6.21/tools/lib/bpf/
Dbpf.c115 int prog_fd; in probe_memcg_account() local
622 int bpf_prog_attach(int prog_fd, int target_fd, enum bpf_attach_type type, in bpf_prog_attach()
632 int bpf_prog_attach_opts(int prog_fd, int target, enum bpf_attach_type type, in bpf_prog_attach_opts()
670 int bpf_prog_detach_opts(int prog_fd, int target, enum bpf_attach_type type, in bpf_prog_detach_opts()
712 int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_detach2()
717 int bpf_link_create(int prog_fd, int target_fd, in bpf_link_create()
953 int bpf_prog_test_run_opts(int prog_fd, struct bpf_test_run_opts *opts) in bpf_prog_test_run_opts()
1133 int bpf_prog_get_info_by_fd(int prog_fd, struct bpf_prog_info *info, __u32 *info_len) in bpf_prog_get_info_by_fd()
1153 int bpf_raw_tracepoint_open(const char *name, int prog_fd) in bpf_raw_tracepoint_open()
1256 int bpf_prog_bind_map(int prog_fd, int map_fd, in bpf_prog_bind_map()
Dskel_internal.h45 int prog_fd; member
277 static inline int skel_raw_tracepoint_open(const char *name, int prog_fd) in skel_raw_tracepoint_open()
289 static inline int skel_link_create(int prog_fd, int target_fd, in skel_link_create()
313 int map_fd = -1, prog_fd = -1, key = 0, err; in bpf_load_and_run() local
/linux-6.6.21/tools/perf/util/
Dbpf_counter_cgroup.c53 int prog_fd, err; in bperf_load_program() local
203 int prog_fd = bpf_program__fd(skel->progs.trigger_read); in bperf_cgrp__sync_counters() local
/linux-6.6.21/kernel/bpf/preload/iterators/
Diterators.lskel-big-endian.h26 int prog_fd = skel->progs.dump_bpf_map.prog_fd; in iterators_bpf__dump_bpf_map__attach() local
37 int prog_fd = skel->progs.dump_bpf_prog.prog_fd; in iterators_bpf__dump_bpf_prog__attach() local
Diterators.lskel-little-endian.h26 int prog_fd = skel->progs.dump_bpf_map.prog_fd; in iterators_bpf__dump_bpf_map__attach() local
37 int prog_fd = skel->progs.dump_bpf_prog.prog_fd; in iterators_bpf__dump_bpf_prog__attach() local
/linux-6.6.21/tools/bpf/bpftool/
Dcgroup.c105 int prog_fd; in show_bpf_prog() local
513 int cgroup_fd, prog_fd; in do_attach() local
573 int prog_fd, cgroup_fd; in do_detach() local

123456