Home
last modified time | relevance | path

Searched refs:hashmap__add (Results 1 – 15 of 15) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dhashmap.c65 err = hashmap__add(map, k, v); in test_hashmap_generic()
109 err = hashmap__add(map, k, v); in test_hashmap_generic()
110 if (CHECK(err != -EEXIST, "hashmap__add", in test_hashmap_generic()
285 err = hashmap__add(map, "b", "banana"); in test_hashmap_ptr_iface()
286 if (CHECK(err, "hashmap__add", "unexpected error: %d\n", err)) in test_hashmap_ptr_iface()
H A Dkprobe_multi_test.c513 * Filtering out duplicates by using hashmap__add, which won't in get_syms()
548 err = hashmap__add(map, ksym_name, 0); in get_syms()
/linux/tools/perf/util/
H A Dbpf-trace-summary.c180 if (hashmap__add(hash, data->key, data) < 0) { in update_thread_stats()
253 if (hashmap__add(hash, data->key, data) < 0) { in update_total_stats()
313 if (hashmap__add(hash, data->key, data) < 0) { in update_cgroup_stats()
H A Dhashmap.h138 #define hashmap__add(map, key, value) \ macro
H A Dthreads.c118 if (hashmap__add(&table->shard, tid, res)) { in threads__findnew()
H A Dhwmon_pmu.c276 err = hashmap__add(&pmu->events, key.type_and_num, value); in hwmon_pmu__read_events()
H A Dstat.c361 ret = hashmap__add(mask, key, 1); in check_per_pkg()
H A Dbpf_lock_contention.c95 hashmap__add(&slab_hash, data->id, data); in run_slab_cache_iter()
H A Dannotate.c246 if (hashmap__add(src->samples, hash_key, entry) < 0) in __symbol__inc_addr_samples()
/linux/tools/lib/bpf/
H A Dstrset.c67 /* hashmap__add() returns EEXIST if string with the same in strset__new()
70 err = hashmap__add(hash, off, off); in strset__new()
H A Dhashmap.h138 #define hashmap__add(map, key, value) \ macro
H A Dusdt.c930 err = hashmap__add(specs_hash, target->spec_str, *spec_id); in allocate_spec_id()
943 err = hashmap__add(specs_hash, target->spec_str, *spec_id); in allocate_spec_id()
H A Dbtf.c5133 err = hashmap__add(names_map, t->name_off, type_id); in btf_dedup_fill_unique_names_map()
/linux/tools/perf/
H A Dbuiltin-ftrace.c1240 hashmap__add(ftrace->profile_hash, key, prof); in add_func_duration()
H A Dbuiltin-trace.c2633 if (hashmap__add(syscall_stats, id, stats) < 0) { in thread__update_stats()