/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | hashmap.h | 54 hashmap_equal_fn equal_fn; member 63 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ 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))
|
H A D | hashmap.c | 39 hashmap_equal_fn equal_fn, void *ctx) in hashmap__init() 42 map->equal_fn = equal_fn; in hashmap__init() 52 hashmap_equal_fn equal_fn, in hashmap__new() 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() 38 hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, hashmap_equal_fn equal_fn, void *ctx) hashmap__init() argument 51 hashmap__new(hashmap_hash_fn hash_fn, hashmap_equal_fn equal_fn, void *ctx) hashmap__new() argument
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | hashmap.h | 54 hashmap_equal_fn equal_fn; member 63 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ 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))
|
H A D | hashmap.c | 39 hashmap_equal_fn equal_fn, void *ctx) in hashmap__init() 42 map->equal_fn = equal_fn; in hashmap__init() 52 hashmap_equal_fn equal_fn, in hashmap__new() 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() 38 hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, hashmap_equal_fn equal_fn, void *ctx) hashmap__init() argument 51 hashmap__new(hashmap_hash_fn hash_fn, hashmap_equal_fn equal_fn, void *ctx) hashmap__new() argument
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | hashmap.h | 74 hashmap_equal_fn equal_fn; member 84 hashmap_equal_fn equal_fn, void *ctx); 86 hashmap_equal_fn equal_fn, 198 if (map->equal_fn(cur->key, (_key), map->ctx)) 206 if (map->equal_fn(cur->key, (_key), map->ctx))
|
H A D | hashmap.c | 39 hashmap_equal_fn equal_fn, void *ctx) in hashmap__init() 42 map->equal_fn = equal_fn; in hashmap__init() 52 hashmap_equal_fn equal_fn, in hashmap__new() 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() 38 hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, hashmap_equal_fn equal_fn, void *ctx) hashmap__init() argument 51 hashmap__new(hashmap_hash_fn hash_fn, hashmap_equal_fn equal_fn, void *ctx) hashmap__new() argument
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | hashmap.h | 74 hashmap_equal_fn equal_fn; member 84 hashmap_equal_fn equal_fn, void *ctx); 86 hashmap_equal_fn equal_fn, 198 if (map->equal_fn(cur->key, (_key), map->ctx)) 206 if (map->equal_fn(cur->key, (_key), map->ctx))
|
H A D | hashmap.c | 39 hashmap_equal_fn equal_fn, void *ctx) in hashmap__init() 42 map->equal_fn = equal_fn; in hashmap__init() 52 hashmap_equal_fn equal_fn, in hashmap__new() 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() 38 hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, hashmap_equal_fn equal_fn, void *ctx) hashmap__init() argument 51 hashmap__new(hashmap_hash_fn hash_fn, hashmap_equal_fn equal_fn, void *ctx) hashmap__new() argument
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | hashmap.c | 18 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H 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()
|