hashmap
build_btf_type_table(struct hashmap *tab, enum bpf_obj_type type,
build_btf_tables(struct hashmap *btf_prog_table,
struct hashmap *btf_map_table)
struct hashmap *btf_prog_table,
struct hashmap *btf_map_table)
struct hashmap *btf_prog_table,
struct hashmap *btf_map_table)
show_btf(int fd, struct hashmap *btf_prog_table,
struct hashmap *btf_map_table)
struct hashmap *btf_prog_table;
struct hashmap *btf_map_table;
static struct hashmap *build_fn_table;
int build_pinned_obj_table(struct hashmap *tab,
void delete_pinned_obj_table(struct hashmap *map)
struct hashmap *cand_cache = NULL;
static struct hashmap *link_table;
struct hashmap *refs_table;
int build_pinned_obj_table(struct hashmap *table,
void delete_pinned_obj_table(struct hashmap *table);
__weak int build_obj_refs_table(struct hashmap **table,
__weak void delete_obj_refs_table(struct hashmap *table);
__weak void emit_obj_refs_json(struct hashmap *table, __u32 id,
__weak void emit_obj_refs_plain(struct hashmap *table, __u32 id,
static inline bool hashmap__empty(struct hashmap *map)
extern struct hashmap *refs_table;
static struct hashmap *map_table;
int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type)
void delete_obj_refs_table(struct hashmap *map)
int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type)
void emit_obj_refs_json(struct hashmap *map, __u32 id,
void delete_obj_refs_table(struct hashmap *map) {}
void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix)
void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix) {}
void emit_obj_refs_json(struct hashmap *map, __u32 id, json_writer_t *json_writer) {}
static void add_ref(struct hashmap *map, struct pid_iter_entry *e)
static struct hashmap *prog_table;
struct hashmap *str_off_map; /* map string offsets from src to dst */
struct hashmap *dedup_table;
static int btf_dedup_fill_unique_names_map(struct btf_dedup *d, struct hashmap *names_map)
static int btf_dedup_resolve_fwd(struct btf_dedup *d, struct hashmap *names_map, __u32 type_id)
struct hashmap *names_map;
struct hashmap *type_names;
struct hashmap *ident_names;
static size_t btf_dump_name_dups(struct btf_dump *d, struct hashmap *name_map,
struct hashmap *name_map)
static void btf_dump_free_names(struct hashmap *map)
static size_t btf_dump_name_dups(struct btf_dump *d, struct hashmap *name_map,
static int hashmap_grow(struct hashmap *map)
static bool hashmap_find_entry(const struct hashmap *map,
int hashmap_insert(struct hashmap *map, long key, long value,
bool hashmap_find(const struct hashmap *map, long key, long *value)
bool hashmap_delete(struct hashmap *map, long key,
void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn,
struct hashmap *hashmap__new(hashmap_hash_fn hash_fn,
struct hashmap *map = malloc(sizeof(struct hashmap));
void hashmap__clear(struct hashmap *map)
void hashmap__free(struct hashmap *map)
size_t hashmap__size(const struct hashmap *map)
size_t hashmap__capacity(const struct hashmap *map)
static bool hashmap_needs_to_grow(struct hashmap *map)
int hashmap_insert(struct hashmap *map, long key, long value,
bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value);
bool hashmap_find(const struct hashmap *map, long key, long *value);
void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn,
struct hashmap *hashmap__new(hashmap_hash_fn hash_fn,
void hashmap__clear(struct hashmap *map);
void hashmap__free(struct hashmap *map);
size_t hashmap__size(const struct hashmap *map);
size_t hashmap__capacity(const struct hashmap *map);
struct hashmap *cand_cache,
struct hashmap *cand_cache = NULL;
struct hashmap *strs_hash;
struct hashmap *hash;
static int allocate_spec_id(struct usdt_manager *man, struct hashmap *specs_hash,
struct hashmap *specs_hash = NULL;
struct hashmap *syscall_stats;
static struct hashmap *alloc_syscall_stats(void)
static void delete_syscall_stats(struct hashmap *syscall_stats)
struct hashmap *syscall_stats;
struct hashmap *syscall_stats = ttrace->syscall_stats;
static struct syscall_entry *syscall__sort_stats(struct hashmap *syscall_stats)
struct hashmap *syscall_stats)
struct hashmap *ids1, *ids2;
struct hashmap *type_hash;
struct hashmap *type_hash;
struct hashmap *samples;
static int update_thread_stats(struct hashmap *hash, struct syscall_key *map_key,
static int update_total_stats(struct hashmap *hash, struct syscall_key *map_key,
static int update_cgroup_stats(struct hashmap *hash, struct syscall_key *map_key,
struct hashmap schash;
static struct hashmap slab_hash;
struct hashmap *per_pkg_mask;
struct hashmap;
struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2)
struct hashmap *tmp = ids1;
struct hashmap *ids__new(void)
struct hashmap *hash;
void ids__free(struct hashmap *ids)
int ids__insert(struct hashmap *ids, const char *id)
struct hashmap *ids;
struct hashmap *ids__new(void);
void ids__free(struct hashmap *ids);
int ids__insert(struct hashmap *ids, const char *id);
struct hashmap *ids__union(struct hashmap *ids1, struct hashmap *ids2);
struct hashmap;
struct hashmap *ids;
static struct hashmap *fncache;
static struct hashmap *fncache__get(void)
struct hashmap *profile_hash;
static int hashmap_grow(struct hashmap *map)
static bool hashmap_find_entry(const struct hashmap *map,
int hashmap_insert(struct hashmap *map, long key, long value,
bool hashmap_find(const struct hashmap *map, long key, long *value)
bool hashmap_delete(struct hashmap *map, long key,
void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn,
struct hashmap *hashmap__new(hashmap_hash_fn hash_fn,
struct hashmap *map = malloc(sizeof(struct hashmap));
void hashmap__clear(struct hashmap *map)
void hashmap__free(struct hashmap *map)
size_t hashmap__size(const struct hashmap *map)
size_t hashmap__capacity(const struct hashmap *map)
static bool hashmap_needs_to_grow(struct hashmap *map)
int hashmap_insert(struct hashmap *map, long key, long value,
bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value);
bool hashmap_find(const struct hashmap *map, long key, long *value);
void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn,
struct hashmap *hashmap__new(hashmap_hash_fn hash_fn,
void hashmap__clear(struct hashmap *map);
void hashmap__free(struct hashmap *map);
size_t hashmap__size(const struct hashmap *map);
size_t hashmap__capacity(const struct hashmap *map);
struct hashmap events;
static int setup_metric_events(const char *pmu, struct hashmap *ids,
struct hashmap *aliases;
struct hashmap;
static struct hashmap *cache;
struct hashmap *tmp = hashmap__new(get_counter_name_hash_fn,
struct hashmap *mask = counter->per_pkg_mask;
struct hashmap shard;
ctx.hashmap_fd = bpf_map__fd(ctx.skel->maps.hashmap);
bpf_map__set_max_entries(skel->maps.hashmap, args.nr_entries);
bpf_map__set_value_size(skel->maps.hashmap, args.value_size);
bpf_map__set_key_size(skel->maps.hashmap, args.value_size);
static void __setup(struct bpf_program *prog, bool hashmap)
if (!hashmap)
if (hashmap)
if (hashmap)
max_entries = bpf_map__max_entries(skel->maps.hashmap);
err = bpf_map__update_elem(skel->maps.hashmap, &key, sizeof(key),
max_entries = bpf_map__max_entries(skel->maps.hashmap);
err = bpf_map__update_elem(skel->maps.hashmap, &key, sizeof(key),
max_entries = bpf_map__max_entries(skel->maps.hashmap);
err = bpf_map__update_elem(skel->maps.hashmap, &key, sizeof(key),
err = bpf_map__lookup_elem(skel->maps.hashmap, &key, sizeof(key), &val, sizeof(val), 0);
struct hashmap *map;
struct hashmap *map;
struct hashmap *map;
struct hashmap *map;
result = bpf_map_lookup_elem(&hashmap,
} hashmap SEC(".maps");
} hashmap SEC(".maps");
bpf_for_each_map_elem(&hashmap, check_hash_elem, &data, 0);
hashmap_elems = bpf_for_each_map_elem(&hashmap, check_hash_elem, &data, 0);
} hashmap SEC(".maps");
bpf_for_each_map_elem(&hashmap, cb, NULL, 0);
} hashmap SEC(".maps");
bpf_for_each_map_elem(&hashmap, check_map_elem, &data, 0);
struct hashmap *map;