Home
last modified time | relevance | path

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

/linux/tools/perf/util/
A 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))
A 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()
/linux/tools/lib/bpf/
A 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))
A 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()
/linux/tools/testing/selftests/bpf/prog_tests/
A 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()
268 map = hashmap__new(collision_hash_fn, equal_fn, NULL); in test_hashmap_multimap()
339 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_empty()

Completed in 10 milliseconds