Home
last modified time | relevance | path

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

1234

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dverify_pkcs7_sig.c308 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, BPF_ANY); in test_verify_pkcs7_sig()
317 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, BPF_ANY); in test_verify_pkcs7_sig()
326 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, BPF_ANY); in test_verify_pkcs7_sig()
337 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, BPF_ANY); in test_verify_pkcs7_sig()
351 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, BPF_ANY); in test_verify_pkcs7_sig()
359 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, BPF_ANY); in test_verify_pkcs7_sig()
373 BPF_ANY); in test_verify_pkcs7_sig()
380 BPF_ANY); in test_verify_pkcs7_sig()
387 BPF_ANY); in test_verify_pkcs7_sig()
Dtailcalls.c55 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_1()
85 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_1()
106 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_1()
191 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_count()
372 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_4()
378 err = bpf_map_update_elem(data_fd, &zero, &i, BPF_ANY); in test_tailcall_4()
388 err = bpf_map_update_elem(data_fd, &zero, &i, BPF_ANY); in test_tailcall_4()
462 err = bpf_map_update_elem(map_fd, &i, &prog_fd, BPF_ANY); in test_tailcall_5()
468 err = bpf_map_update_elem(data_fd, &zero, &key[i], BPF_ANY); in test_tailcall_5()
[all …]
Dfor_each.c34 &val, sizeof(val), BPF_ANY); in test_hash_map()
49 percpu_valbuf, percpu_val_sz, BPF_ANY); in test_hash_map()
104 &val, sizeof(val), BPF_ANY); in test_array_map()
119 percpu_valbuf, percpu_val_sz, BPF_ANY); in test_array_map()
Dbloom_filter_map.c111 err = bpf_map_update_elem(inner_map_fd, NULL, rand_vals + i, BPF_ANY); in test_inner_map()
118 err = bpf_map_update_elem(outer_map_fd, &key, &inner_map_fd, BPF_ANY); in test_inner_map()
170 err = bpf_map_update_elem(random_data_fd, &i, &val, BPF_ANY); in setup_progs()
174 err = bpf_map_update_elem(bloom_fd, NULL, &val, BPF_ANY); in setup_progs()
/linux-6.1.9/samples/bpf/
Dmap_perf_test_kern.c114 bpf_map_update_elem(&hash_map, &key, &init_val, BPF_ANY); in SYSCALL()
132 bpf_map_update_elem(&percpu_hash_map, &key, &init_val, BPF_ANY); in SYSCALL()
149 bpf_map_update_elem(&hash_map_alloc, &key, &init_val, BPF_ANY); in SYSCALL()
166 bpf_map_update_elem(&percpu_hash_map_alloc, &key, &init_val, BPF_ANY); in SYSCALL()
216 ret = bpf_map_update_elem(&lru_hash_map, &key, &val, BPF_ANY); in SYSCALL()
219 BPF_ANY); in SYSCALL()
232 BPF_ANY); in SYSCALL()
Dspintest_kern.c41 bpf_map_update_elem(&my_map, &v, &v, BPF_ANY); \
42 bpf_map_update_elem(&my_map2, &v, &v, BPF_ANY); \
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()
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.c79 bpf_map_update_elem(&wokeby, &pid, &woke, BPF_ANY); in waker()
140 bpf_map_update_elem(&start, &pid, &ts, BPF_ANY);
Dtest_map_in_map_user.c53 ret = bpf_map_update_elem(PORT_A, &port_key, &magic_result, BPF_ANY); in populate_map()
60 ret = bpf_map_update_elem(A_OF_PORT_A, &port_key, &PORT_A, BPF_ANY); in populate_map()
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_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()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_sockmap.c1044 err = bpf_map_update_elem(map_fd[1], &i, &c1, BPF_ANY); in run_options()
1057 err = bpf_map_update_elem(map_fd[2], &i, &redir_fd, BPF_ANY); in run_options()
1067 &i, &txmsg_apply, BPF_ANY); in run_options()
1078 &i, &txmsg_cork, BPF_ANY); in run_options()
1089 &i, &txmsg_start, BPF_ANY); in run_options()
1101 &i, &txmsg_end, BPF_ANY); in run_options()
1113 &i, &txmsg_start_push, BPF_ANY); in run_options()
1125 &i, &txmsg_end_push, BPF_ANY); in run_options()
1137 &i, &txmsg_start_pop, BPF_ANY); in run_options()
1147 &i, &txmsg_start_pop, BPF_ANY); in run_options()
[all …]
Dtest_maps.c51 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap()
69 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap()
96 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap()
173 assert(bpf_map_update_elem(fd, &key, value, BPF_ANY) == 0); in test_hashmap_percpu()
375 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_arraymap()
433 assert(bpf_map_update_elem(fd, &key, values, BPF_ANY) == 0); in test_arraymap_percpu()
496 assert(bpf_map_update_elem(fd, &key, values, BPF_ANY) == 0); in test_arraymap_percpu_many_keys()
758 err = bpf_map_update_elem(fd, &i, &udp, BPF_ANY); in test_sockmap()
768 err = bpf_map_update_elem(fd, &i, &sfd[i], BPF_ANY); in test_sockmap()
931 err = bpf_map_update_elem(map_fd_rx, &i, &sfd[i], BPF_ANY); in test_sockmap()
[all …]
Dxdp_synproxy.c404 err = bpf_map_update_elem(ports_map_fd, &port_idx, &port, BPF_ANY); in main()
414 err = bpf_map_update_elem(ports_map_fd, &port_idx, &port_last, BPF_ANY); in main()
428 err = bpf_map_update_elem(values_map_fd, &key, &tcpipopts, BPF_ANY); in main()
/linux-6.1.9/tools/perf/tests/
Dbpf-script-example.c10 #define BPF_ANY 0 macro
56 bpf_map_update_elem(&flip_table, &ind, &new_flag, BPF_ANY); in bpf_func__SyS_epoll_pwait()
/linux-6.1.9/tools/perf/util/
Dbpf_off_cpu.c86 bpf_map_update_elem(fd, &pid, &val, BPF_ANY); in off_cpu_start()
213 bpf_map_update_elem(fd, &cpu, &val, BPF_ANY); in off_cpu_prepare()
234 bpf_map_update_elem(fd, &tgid, &val, BPF_ANY); in off_cpu_prepare()
245 bpf_map_update_elem(fd, &pid, &val, BPF_ANY); in off_cpu_prepare()
268 bpf_map_update_elem(fd, &cgrp->id, &val, BPF_ANY); in off_cpu_prepare()
Dbpf_lock_contention.c65 bpf_map_update_elem(fd, &cpu, &val, BPF_ANY); in lock_contention_prepare()
78 bpf_map_update_elem(fd, &pid, &val, BPF_ANY); in lock_contention_prepare()
88 bpf_map_update_elem(fd, &pid, &val, BPF_ANY); in lock_contention_prepare()
Dbpf_ftrace.c67 bpf_map_update_elem(fd, &cpu, &val, BPF_ANY); in perf_ftrace__latency_prepare_bpf()
80 bpf_map_update_elem(fd, &pid, &val, BPF_ANY); in perf_ftrace__latency_prepare_bpf()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_sk_lookup.c603 bpf_map_update_elem(&run_map, &KEY_PROG1, &PROG_DONE, BPF_ANY); in multi_prog_pass1()
610 bpf_map_update_elem(&run_map, &KEY_PROG2, &PROG_DONE, BPF_ANY); in multi_prog_pass2()
617 bpf_map_update_elem(&run_map, &KEY_PROG1, &PROG_DONE, BPF_ANY); in multi_prog_drop1()
624 bpf_map_update_elem(&run_map, &KEY_PROG2, &PROG_DONE, BPF_ANY); in multi_prog_drop2()
651 bpf_map_update_elem(&run_map, &KEY_PROG1, &PROG_DONE, BPF_ANY); in multi_prog_redir1()
661 bpf_map_update_elem(&run_map, &KEY_PROG2, &PROG_DONE, BPF_ANY); in multi_prog_redir2()
Dtest_select_reuseport_kern.c177 bpf_map_update_elem(&linum_map, &index_zero, &linum, BPF_ANY); in _select_by_skb_data()
178 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_hash_large_key.c39 if (bpf_map_update_elem(&hash_map, key, &value, BPF_ANY)) in bpf_hash_large_key_test()
/linux-6.1.9/tools/perf/util/bpf_skel/
Dbperf_cgroup.bpf.c171 bpf_map_update_elem(&prev_readings, &key, &val, BPF_ANY); in bperf_cgroup_count()
204 &delta, BPF_ANY); in bperf_cgroup_count()

1234