Home
last modified time | relevance | path

Searched refs:BPF_ANY (Results 1 – 25 of 57) sorted by relevance

123

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_tcpbpf_kern.c42 BPF_ANY); in update_event_map()
47 BPF_ANY); in update_event_map()
129 BPF_ANY); in bpf_testcb()
149 BPF_ANY); in bpf_testcb()
177 BPF_ANY); in bpf_testcb()
187 bpf_map_update_elem(&sockopt_results, &key, &v, BPF_ANY); in bpf_testcb()
Dtest_sk_lookup.c584 bpf_map_update_elem(&run_map, &KEY_PROG1, &PROG_DONE, BPF_ANY); in multi_prog_pass1()
591 bpf_map_update_elem(&run_map, &KEY_PROG2, &PROG_DONE, BPF_ANY); in multi_prog_pass2()
598 bpf_map_update_elem(&run_map, &KEY_PROG1, &PROG_DONE, BPF_ANY); in multi_prog_drop1()
605 bpf_map_update_elem(&run_map, &KEY_PROG2, &PROG_DONE, BPF_ANY); in multi_prog_drop2()
632 bpf_map_update_elem(&run_map, &KEY_PROG1, &PROG_DONE, BPF_ANY); in multi_prog_redir1()
642 bpf_map_update_elem(&run_map, &KEY_PROG2, &PROG_DONE, BPF_ANY); in multi_prog_redir2()
Dtest_select_reuseport_kern.c179 bpf_map_update_elem(&linum_map, &index_zero, &linum, BPF_ANY); in _select_by_skb_data()
180 bpf_map_update_elem(&data_check_map, &index_zero, &data_check, BPF_ANY); in _select_by_skb_data()
Dload_bytes_relative.c45 bpf_map_update_elem(&test_result, &map_key, &test_passed, BPF_ANY); in load_bytes_relative()
Dtest_tcpnotify_kern.c83 BPF_ANY); in bpf_testcb()
/kernel/linux/linux-5.10/samples/bpf/
Dmap_perf_test_kern.c112 bpf_map_update_elem(&hash_map, &key, &init_val, BPF_ANY); in SYSCALL()
127 bpf_map_update_elem(&percpu_hash_map, &key, &init_val, BPF_ANY); in SYSCALL()
141 bpf_map_update_elem(&hash_map_alloc, &key, &init_val, BPF_ANY); in SYSCALL()
155 bpf_map_update_elem(&percpu_hash_map_alloc, &key, &init_val, BPF_ANY); in SYSCALL()
204 ret = bpf_map_update_elem(&lru_hash_map, &key, &val, BPF_ANY); in SYSCALL()
207 BPF_ANY); in SYSCALL()
220 BPF_ANY); in SYSCALL()
Dtest_current_task_under_cgroup_user.c65 if (bpf_map_update_elem(map_fd[0], &idx, &cg2, BPF_ANY)) { in main()
93 bpf_map_update_elem(map_fd[1], &idx, &remote_pid, BPF_ANY); in main()
Dspintest_kern.c41 bpf_map_update_elem(&my_map, &v, &v, BPF_ANY); \
42 bpf_map_update_elem(&my_map2, &v, &v, BPF_ANY); \
Dtracex2_kern.c41 bpf_map_update_elem(&my_map, &loc, &init_val, BPF_ANY); in bpf_prog2()
98 bpf_map_update_elem(&my_hist_map, &key, &init_val, BPF_ANY); in SYSCALL()
Doffwaketime_kern.c78 bpf_map_update_elem(&wokeby, &pid, &woke, BPF_ANY); in waker()
139 bpf_map_update_elem(&start, &pid, &ts, BPF_ANY);
Dtest_map_in_map_kern.c169 bpf_map_update_elem(&reg_result_h, &ret_key, &ret, BPF_ANY); in trace_sys_connect()
170 bpf_map_update_elem(&inline_result_h, &ret_key, &inline_ret, BPF_ANY); in trace_sys_connect()
Dtest_map_in_map_user.c52 ret = bpf_map_update_elem(PORT_A, &port_key, &magic_result, BPF_ANY); in populate_map()
59 ret = bpf_map_update_elem(A_OF_PORT_A, &port_key, &PORT_A, BPF_ANY); in populate_map()
Dtest_current_task_under_cgroup_kern.c39 bpf_map_update_elem(&perf_map, &idx, &pid, BPF_ANY); in SYSCALL()
Dtracex4_kern.c51 bpf_map_update_elem(&my_map, &ptr, &v, BPF_ANY); in bpf_prog2()
Dlwt_len_hist_kern.c77 bpf_map_update_elem(&lwt_len_hist_map, &key, &init_val, BPF_ANY); in do_len_hist()
Dtracex3_kern.c30 bpf_map_update_elem(&my_map, &rq, &val, BPF_ANY); in bpf_prog1()
Dtracex5_user.c87 bpf_map_update_elem(progs_fd, &key, &fd, BPF_ANY); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dtailcalls.c51 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_1()
83 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_1()
105 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_1()
189 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_2()
264 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_3()
354 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_4()
360 err = bpf_map_update_elem(data_fd, &zero, &i, BPF_ANY); in test_tailcall_4()
371 err = bpf_map_update_elem(data_fd, &zero, &i, BPF_ANY); in test_tailcall_4()
442 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_5()
448 err = bpf_map_update_elem(data_fd, &zero, &key[i], BPF_ANY); in test_tailcall_5()
[all …]
Dselect_reuseport.c526 &tmp_index, BPF_ANY); in test_syncookie()
684 BPF_ANY); in setup_per_test()
693 BPF_ANY); in setup_per_test()
705 err = bpf_map_update_elem(result_map, &i, &zero, BPF_ANY); in cleanup_per_test()
710 err = bpf_map_update_elem(linum_map, &zero, &zero, BPF_ANY); in cleanup_per_test()
Dpe_preserve_elems.c25 err = bpf_map_update_elem(mfd, &key, &pfd, BPF_ANY); in test_one_map()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_sockmap.c1000 err = bpf_map_update_elem(map_fd[1], &i, &c1, BPF_ANY); in run_options()
1013 err = bpf_map_update_elem(map_fd[2], &i, &redir_fd, BPF_ANY); in run_options()
1023 &i, &txmsg_apply, BPF_ANY); in run_options()
1034 &i, &txmsg_cork, BPF_ANY); in run_options()
1045 &i, &txmsg_start, BPF_ANY); in run_options()
1057 &i, &txmsg_end, BPF_ANY); in run_options()
1069 &i, &txmsg_start_push, BPF_ANY); in run_options()
1081 &i, &txmsg_end_push, BPF_ANY); in run_options()
1093 &i, &txmsg_start_pop, BPF_ANY); in run_options()
1103 &i, &txmsg_start_pop, BPF_ANY); in run_options()
[all …]
Dtest_maps.c52 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap()
90 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap()
168 assert(bpf_map_update_elem(fd, &key, value, BPF_ANY) == 0); in test_hashmap_percpu()
360 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_arraymap()
418 assert(bpf_map_update_elem(fd, &key, values, BPF_ANY) == 0); in test_arraymap_percpu()
481 assert(bpf_map_update_elem(fd, &key, values, BPF_ANY) == 0); in test_arraymap_percpu_many_keys()
749 err = bpf_map_update_elem(fd, &i, &udp, BPF_ANY); in test_sockmap()
758 err = bpf_map_update_elem(fd, &i, &sfd[i], BPF_ANY); in test_sockmap()
921 err = bpf_map_update_elem(map_fd_rx, &i, &sfd[i], BPF_ANY); in test_sockmap()
927 err = bpf_map_update_elem(map_fd_tx, &i, &sfd[i], BPF_ANY); in test_sockmap()
[all …]
Dflow_dissector_load.h65 bpf_map_update_elem(prog_array_fd, &i, &fd, BPF_ANY); in bpf_flow_load()
/kernel/linux/linux-5.10/tools/perf/tests/
Dbpf-script-example.c10 #define BPF_ANY 0 macro
45 bpf_map_update_elem(&flip_table, &ind, &new_flag, BPF_ANY); in bpf_func__SyS_epoll_pwait()
Dbpf-script-test-relocation.c10 #define BPF_ANY 0 macro

123