Home
last modified time | relevance | path

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

12

/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
/tools/testing/selftests/bpf/prog_tests/
Dfor_each.c27 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()
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 …]
Dhash_large_key.c30 err = bpf_map_update_elem(hash_map_fd, &key, &value, BPF_ANY); in test_hash_large_key()
Dpe_preserve_elems.c25 err = bpf_map_update_elem(mfd, &key, &pfd, BPF_ANY); in test_one_map()
Dselect_reuseport.c527 &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()
Dbpf_iter.c646 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/
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()
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 …]
Dflow_dissector_load.h65 bpf_map_update_elem(prog_array_fd, &i, &fd, BPF_ANY); in bpf_flow_load()
Dxdping.c227 if (bpf_map_update_elem(map_fd, &raddr, &pinginfo, BPF_ANY)) { in main()
/tools/testing/selftests/bpf/progs/
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()
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()
Dtest_tcpnotify_kern.c83 BPF_ANY); in bpf_testcb()
Dtest_sk_lookup.c583 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()
Dtest_tc_edt.c45 if (bpf_map_update_elem(&flow_map, &key, &tstamp, BPF_ANY)) in throttle_flow()
Dtest_tcp_estats.c244 bpf_map_update_elem(&ev_record_map, &key, &ev, BPF_ANY); in send_basic_event()
/tools/perf/util/bpf_skel/
Dbperf_cgroup.bpf.c135 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/
Dbpf_counter.c280 &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()
Dbpf_counter_cgroup.c131 BPF_ANY); in bperf_load_program()
154 err = bpf_map_update_elem(map_fd, &cgrp->id, &i, BPF_ANY); in bperf_load_program()
Dbpf-loader.c1371 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/
Dfuse_daemon.c235 .flags = BPF_ANY, in main()
Dfd_bpf.c35 bpf_map_update_elem(&test_map, &key, &value, BPF_ANY); in trace_daemon()

12