/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | verify_pkcs7_sig.c | 308 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()
|
D | tailcalls.c | 55 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 …]
|
D | for_each.c | 34 &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()
|
D | bloom_filter_map.c | 111 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/ |
D | map_perf_test_kern.c | 114 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()
|
D | spintest_kern.c | 41 bpf_map_update_elem(&my_map, &v, &v, BPF_ANY); \ 42 bpf_map_update_elem(&my_map2, &v, &v, BPF_ANY); \
|
D | test_current_task_under_cgroup_user.c | 65 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()
|
D | tracex2_kern.c | 41 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()
|
D | offwaketime_kern.c | 79 bpf_map_update_elem(&wokeby, &pid, &woke, BPF_ANY); in waker() 140 bpf_map_update_elem(&start, &pid, &ts, BPF_ANY);
|
D | test_map_in_map_user.c | 53 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()
|
D | test_map_in_map_kern.c | 169 bpf_map_update_elem(®_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()
|
D | test_current_task_under_cgroup_kern.c | 39 bpf_map_update_elem(&perf_map, &idx, &pid, BPF_ANY); in SYSCALL()
|
D | tracex4_kern.c | 51 bpf_map_update_elem(&my_map, &ptr, &v, BPF_ANY); in bpf_prog2()
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | test_sockmap.c | 1044 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 …]
|
D | test_maps.c | 51 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 …]
|
D | xdp_synproxy.c | 404 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/ |
D | bpf-script-example.c | 10 #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/ |
D | bpf_off_cpu.c | 86 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()
|
D | bpf_lock_contention.c | 65 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()
|
D | bpf_ftrace.c | 67 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/ |
D | test_sk_lookup.c | 603 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()
|
D | test_select_reuseport_kern.c | 177 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()
|
D | load_bytes_relative.c | 45 bpf_map_update_elem(&test_result, &map_key, &test_passed, BPF_ANY); in load_bytes_relative()
|
D | test_hash_large_key.c | 39 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/ |
D | bperf_cgroup.bpf.c | 171 bpf_map_update_elem(&prev_readings, &key, &val, BPF_ANY); in bperf_cgroup_count() 204 &delta, BPF_ANY); in bperf_cgroup_count()
|