Home
last modified time | relevance | path

Searched refs:equal_fn (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/tools/perf/util/
Dhashmap.h54 hashmap_equal_fn equal_fn; member
63 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ argument
65 .equal_fn = (equal_fn), \
74 hashmap_equal_fn equal_fn, void *ctx);
76 hashmap_equal_fn equal_fn,
185 if (map->equal_fn(cur->key, (_key), map->ctx))
193 if (map->equal_fn(cur->key, (_key), map->ctx))
Dhashmap.c39 hashmap_equal_fn equal_fn, void *ctx) in hashmap__init() argument
42 map->equal_fn = equal_fn; in hashmap__init()
52 hashmap_equal_fn equal_fn, in hashmap__new() argument
59 hashmap__init(map, hash_fn, equal_fn, ctx); in hashmap__new()
143 if (map->equal_fn(cur->key, key, map->ctx)) { in hashmap_find_entry()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dhashmap.h54 hashmap_equal_fn equal_fn; member
63 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ argument
65 .equal_fn = (equal_fn), \
74 hashmap_equal_fn equal_fn, void *ctx);
76 hashmap_equal_fn equal_fn,
185 if (map->equal_fn(cur->key, (_key), map->ctx))
193 if (map->equal_fn(cur->key, (_key), map->ctx))
Dhashmap.c39 hashmap_equal_fn equal_fn, void *ctx) in hashmap__init() argument
42 map->equal_fn = equal_fn; in hashmap__init()
52 hashmap_equal_fn equal_fn, in hashmap__new() argument
59 hashmap__init(map, hash_fn, equal_fn, ctx); in hashmap__new()
143 if (map->equal_fn(cur->key, key, map->ctx)) { in hashmap_find_entry()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dhashmap.c18 static bool equal_fn(const void *a, const void *b, void *ctx) in equal_fn() function
50 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_generic()
269 map = hashmap__new(collision_hash_fn, equal_fn, NULL); in test_hashmap_multimap()
341 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_empty()