Searched refs:equal_fn (Results 1 – 5 of 5) sorted by relevance
/linux-6.3-rc2/tools/perf/util/ |
A D | hashmap.h | 74 hashmap_equal_fn equal_fn; member 83 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ argument 85 .equal_fn = (equal_fn), \ 94 hashmap_equal_fn equal_fn, void *ctx); 96 hashmap_equal_fn equal_fn, 208 if (map->equal_fn(cur->key, (_key), map->ctx)) 216 if (map->equal_fn(cur->key, (_key), map->ctx))
|
A D | hashmap.c | 39 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-6.3-rc2/tools/lib/bpf/ |
A D | hashmap.h | 74 hashmap_equal_fn equal_fn; member 83 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ argument 85 .equal_fn = (equal_fn), \ 94 hashmap_equal_fn equal_fn, void *ctx); 96 hashmap_equal_fn equal_fn, 208 if (map->equal_fn(cur->key, (_key), map->ctx)) 216 if (map->equal_fn(cur->key, (_key), map->ctx))
|
A D | hashmap.c | 39 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-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | hashmap.c | 19 static bool equal_fn(long a, long b, void *ctx) in equal_fn() function 51 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_generic() 348 map = hashmap__new(collision_hash_fn, equal_fn, NULL); in test_hashmap_multimap() 419 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_empty()
|
Completed in 6 milliseconds