Home
last modified time | relevance | path

Searched refs:bpf_map__update_elem (Results 1 – 14 of 14) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfor_each.c35 err = bpf_map__update_elem(skel->maps.hashmap, &key, sizeof(key), in test_hash_map()
50 err = bpf_map__update_elem(skel->maps.percpu_map, &key, sizeof(key), in test_hash_map()
105 err = bpf_map__update_elem(skel->maps.arraymap, &key, sizeof(key), in test_array_map()
120 err = bpf_map__update_elem(skel->maps.percpu_map, &key, sizeof(key), in test_array_map()
171 err = bpf_map__update_elem(skel->maps.arraymap, &key, sizeof(key), in test_multi_maps()
183 err = bpf_map__update_elem(skel->maps.hashmap, &key, sizeof(key), in test_multi_maps()
227 err = bpf_map__update_elem(skel->maps.hashmap, &key, sizeof(key), in test_hash_modify()
H A Dcore_retro.c17 err = bpf_map__update_elem(skel->maps.exp_tgid_map, &zero, sizeof(zero), in test_core_retro()
H A Dmap_kptr.c51 ret = bpf_map__update_elem(skel->maps.array_map, in test_map_kptr_success()
59 ret = bpf_map__update_elem(skel->maps.pcpu_array_map, in test_map_kptr_success()
H A Dtest_mmap_inner_array.c39 err = bpf_map__update_elem(skel->maps.outer_map, in test_mmap_inner_array()
H A Dcgroup_storage.c78 err = bpf_map__update_elem(skel->maps.cgroup_storage, &key, sizeof(key), in test_cgroup_storage()
H A Dxdp_metadata.c429 if (!ASSERT_ERR(bpf_map__update_elem(prog_arr, &key, sizeof(key), in test_xdp_metadata()
440 if (!ASSERT_ERR(bpf_map__update_elem(devmap, &key, sizeof(key), in test_xdp_metadata()
H A Dlinked_list.c140 ASSERT_OK(bpf_map__update_elem(map, &key, sizeof(key), buf, sizeof(buf), 0), "check_and_free_fields"); in clear_fields()
/linux/tools/perf/util/
H A Dbpf_trace_augment.c75 bpf_map__update_elem(skel->maps.__augmented_syscalls__, in augmented_syscalls__setup_bpf_output()
92 err = bpf_map__update_elem(skel->maps.pids_filtered, &pids[i], in augmented_syscalls__set_filter_pids()
H A Dbpf_off_cpu.c94 err = bpf_map__update_elem(skel->maps.offcpu_output, &cpu_nr, sizeof(int), in off_cpu_start()
/linux/tools/tracing/rtla/src/
H A Dtimerlat_bpf.c117 return bpf_map__update_elem(bpf->maps.stop_tracing, in timerlat_bpf_restart_tracing()
/linux/tools/lib/bpf/
H A Dlibbpf.map342 bpf_map__update_elem;
H A Dlibbpf.h1191 * @brief **bpf_map__update_elem()** allows to insert or update value in BPF
1207 * **bpf_map__update_elem()** is high-level equivalent of
1210 LIBBPF_API int bpf_map__update_elem(const struct bpf_map *map,
H A Dlibbpf.c10654 int bpf_map__update_elem(const struct bpf_map *map, in bpf_map__update_elem() function
/linux/tools/testing/selftests/bpf/
H A Dxdp_features.c290 err = bpf_map__update_elem(skel->maps.dev_map, in dut_attach_xdp_prog()
319 err = bpf_map__update_elem(skel->maps.cpu_map, in dut_attach_xdp_prog()