Home
last modified time | relevance | path

Searched refs:hashmap__insert (Results 1 - 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dhashmap.h106 * hashmap__insert() adds key/value entry w/ various semantics, depending on
112 int hashmap__insert(struct hashmap *map, const void *key, void *value,
119 return hashmap__insert(map, key, value, HASHMAP_ADD, NULL, NULL); in hashmap__add()
126 return hashmap__insert(map, key, value, HASHMAP_SET, in hashmap__set()
134 return hashmap__insert(map, key, value, HASHMAP_UPDATE, in hashmap__update()
141 return hashmap__insert(map, key, value, HASHMAP_APPEND, NULL, NULL); in hashmap__append()
H A Dhashmap.c154 int hashmap__insert(struct hashmap *map, const void *key, void *value, in hashmap__insert() function
H A Dbtf.c1546 err = hashmap__insert(btf->strs_hash, (void *)new_off, (void *)new_off, in btf__add_str()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dhashmap.h106 * hashmap__insert() adds key/value entry w/ various semantics, depending on
112 int hashmap__insert(struct hashmap *map, const void *key, void *value,
119 return hashmap__insert(map, key, value, HASHMAP_ADD, NULL, NULL); in hashmap__add()
126 return hashmap__insert(map, key, value, HASHMAP_SET, in hashmap__set()
134 return hashmap__insert(map, key, value, HASHMAP_UPDATE, in hashmap__update()
141 return hashmap__insert(map, key, value, HASHMAP_APPEND, NULL, NULL); in hashmap__append()
H A Dhashmap.c154 int hashmap__insert(struct hashmap *map, const void *key, void *value, in hashmap__insert() function
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dhashmap.h50 * behind auxiliary macros, e.g. hashmap_insert <-> hashmap__insert;
123 * hashmap__insert() adds key/value entry w/ various semantics, depending on
133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ macro
139 hashmap__insert((map), (key), (value), HASHMAP_ADD, NULL, NULL)
142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value))
145 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value))
148 hashmap__insert((map), (key), (value), HASHMAP_APPEND, NULL, NULL)
H A Dstrset.c168 err = hashmap__insert(set->strs_hash, new_off, new_off, in strset__add_str()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dhashmap.h50 * behind auxiliary macros, e.g. hashmap_insert <-> hashmap__insert;
123 * hashmap__insert() adds key/value entry w/ various semantics, depending on
133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ macro
139 hashmap__insert((map), (key), (value), HASHMAP_ADD, NULL, NULL)
142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value))
145 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value))
148 hashmap__insert((map), (key), (value), HASHMAP_APPEND, NULL, NULL)
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dhashmap.c275 err = hashmap__insert(map, "a", "apricot", HASHMAP_ADD, NULL, NULL); in test_hashmap_ptr_iface()
276 if (CHECK(err, "hashmap__insert", "unexpected error: %d\n", err)) in test_hashmap_ptr_iface()
279 err = hashmap__insert(map, "a", "apple", HASHMAP_SET, &old_key, &old_value); in test_hashmap_ptr_iface()
280 if (CHECK(err, "hashmap__insert", "unexpected error: %d\n", err)) in test_hashmap_ptr_iface()

Completed in 10 milliseconds