/tools/perf/tests/ |
D | bpf-script-example.c | 10 #define BPF_ANY 0 macro 45 bpf_map_update_elem(&flip_table, &ind, &new_flag, BPF_ANY); in bpf_func__SyS_epoll_pwait()
|
D | bpf-script-test-relocation.c | 10 #define BPF_ANY 0 macro
|
/tools/testing/selftests/bpf/prog_tests/ |
D | for_each.c | 27 err = bpf_map_update_elem(hashmap_fd, &key, &val, BPF_ANY); in test_hash_map() 41 err = bpf_map_update_elem(percpu_map_fd, &key, percpu_valbuf, BPF_ANY); in test_hash_map() 91 err = bpf_map_update_elem(arraymap_fd, &key, &val, BPF_ANY); in test_array_map() 105 err = bpf_map_update_elem(percpu_map_fd, &key, percpu_valbuf, BPF_ANY); in test_array_map()
|
D | tailcalls.c | 51 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 …]
|
D | hash_large_key.c | 30 err = bpf_map_update_elem(hash_map_fd, &key, &value, BPF_ANY); in test_hash_large_key()
|
D | pe_preserve_elems.c | 25 err = bpf_map_update_elem(mfd, &key, &pfd, BPF_ANY); in test_one_map()
|
D | select_reuseport.c | 527 &tmp_index, BPF_ANY); in test_syncookie() 685 BPF_ANY); in setup_per_test() 694 BPF_ANY); in setup_per_test() 706 err = bpf_map_update_elem(result_map, &i, &zero, BPF_ANY); in cleanup_per_test() 711 err = bpf_map_update_elem(linum_map, &zero, &zero, BPF_ANY); in cleanup_per_test()
|
D | bpf_iter.c | 646 err = bpf_map_update_elem(map_fd, &key, &val, BPF_ANY); in test_bpf_hash_map() 734 err = bpf_map_update_elem(map_fd, &key, val, BPF_ANY); in test_bpf_percpu_hash_map() 805 err = bpf_map_update_elem(map_fd, &i, &val, BPF_ANY); in test_bpf_array_map() 901 err = bpf_map_update_elem(map_fd, &i, val, BPF_ANY); in test_bpf_percpu_array_map()
|
/tools/testing/selftests/bpf/ |
D | test_sockmap.c | 1000 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 …]
|
D | test_maps.c | 52 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 70 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 97 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 175 assert(bpf_map_update_elem(fd, &key, value, BPF_ANY) == 0); in test_hashmap_percpu() 377 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_arraymap() 435 assert(bpf_map_update_elem(fd, &key, values, BPF_ANY) == 0); in test_arraymap_percpu() 498 assert(bpf_map_update_elem(fd, &key, values, BPF_ANY) == 0); in test_arraymap_percpu_many_keys() 766 err = bpf_map_update_elem(fd, &i, &udp, BPF_ANY); in test_sockmap() 775 err = bpf_map_update_elem(fd, &i, &sfd[i], BPF_ANY); in test_sockmap() 938 err = bpf_map_update_elem(map_fd_rx, &i, &sfd[i], BPF_ANY); in test_sockmap() [all …]
|
D | flow_dissector_load.h | 65 bpf_map_update_elem(prog_array_fd, &i, &fd, BPF_ANY); in bpf_flow_load()
|
D | xdping.c | 227 if (bpf_map_update_elem(map_fd, &raddr, &pinginfo, BPF_ANY)) { in main()
|
/tools/testing/selftests/bpf/progs/ |
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()
|
D | test_select_reuseport_kern.c | 179 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()
|
D | test_tcpnotify_kern.c | 83 BPF_ANY); in bpf_testcb()
|
D | test_sk_lookup.c | 583 bpf_map_update_elem(&run_map, &KEY_PROG1, &PROG_DONE, BPF_ANY); in multi_prog_pass1() 590 bpf_map_update_elem(&run_map, &KEY_PROG2, &PROG_DONE, BPF_ANY); in multi_prog_pass2() 597 bpf_map_update_elem(&run_map, &KEY_PROG1, &PROG_DONE, BPF_ANY); in multi_prog_drop1() 604 bpf_map_update_elem(&run_map, &KEY_PROG2, &PROG_DONE, BPF_ANY); in multi_prog_drop2() 631 bpf_map_update_elem(&run_map, &KEY_PROG1, &PROG_DONE, BPF_ANY); in multi_prog_redir1() 641 bpf_map_update_elem(&run_map, &KEY_PROG2, &PROG_DONE, BPF_ANY); in multi_prog_redir2()
|
D | test_tc_edt.c | 45 if (bpf_map_update_elem(&flow_map, &key, &tstamp, BPF_ANY)) in throttle_flow()
|
D | test_tcp_estats.c | 244 bpf_map_update_elem(&ev_record_map, &key, &ev, BPF_ANY); in send_basic_event()
|
/tools/perf/util/bpf_skel/ |
D | bperf_cgroup.bpf.c | 135 bpf_map_update_elem(&prev_readings, &key, &val, BPF_ANY); in bperf_cgroup_count() 168 &delta, BPF_ANY); in bperf_cgroup_count()
|
/tools/perf/util/ |
D | bpf_counter.c | 280 &cpu, &fd, BPF_ANY); in bpf_program_profiler__install_pe() 420 err = bpf_map_update_elem(attr_map_fd, &evsel->core.attr, entry, BPF_ANY); in bperf_reload_leader_program() 472 err = bpf_map_update_elem(attr_map_fd, &evsel->core.attr, &entry, BPF_ANY); in bperf__load() 548 bpf_map_update_elem(filter_map_fd, &key, &i, BPF_ANY); in bperf__load() 574 &cpu, &fd, BPF_ANY); in bperf__install_pe()
|
D | bpf_counter_cgroup.c | 131 BPF_ANY); in bperf_load_program() 154 err = bpf_map_update_elem(map_fd, &cgrp->id, &i, BPF_ANY); in bperf_load_program()
|
D | bpf-loader.c | 1371 err = bpf_map_update_elem(map_fd, pkey, &_val, BPF_ANY); in apply_config_value_for_key() 1376 err = bpf_map_update_elem(map_fd, pkey, &_val, BPF_ANY); in apply_config_value_for_key() 1381 err = bpf_map_update_elem(map_fd, pkey, &_val, BPF_ANY); in apply_config_value_for_key() 1385 err = bpf_map_update_elem(map_fd, pkey, &val, BPF_ANY); in apply_config_value_for_key() 1444 err = bpf_map_update_elem(map_fd, pkey, evt_fd, BPF_ANY); in apply_config_evsel_for_key()
|
/tools/testing/selftests/filesystems/fuse/ |
D | fuse_daemon.c | 235 .flags = BPF_ANY, in main()
|
D | fd_bpf.c | 35 bpf_map_update_elem(&test_map, &key, &value, BPF_ANY); in trace_daemon()
|