Home
last modified time | relevance | path

Searched refs:hashmap__find (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-6.6/tools/perf/tests/
H A Dexpr.c135 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAR", &val_ptr)); in test__expr()
136 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAZ", &val_ptr)); in test__expr()
137 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BOZO", &val_ptr)); in test__expr()
145 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1,param=3@", &val_ptr)); in test__expr()
146 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT2,param=3@", &val_ptr)); in test__expr()
153 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "dash-event1", &val_ptr)); in test__expr()
154 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "dash-event2", &val_ptr)); in test__expr()
167 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, in test__expr()
176 TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, in test__expr()
201 TEST_ASSERT_VAL("find ids", hashmap__find(ct in test__expr()
[all...]
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dexpr.c68 TEST_ASSERT_VAL("find other", hashmap__find(&ctx.ids, "BAR", in test__expr()
70 TEST_ASSERT_VAL("find other", hashmap__find(&ctx.ids, "BAZ", in test__expr()
72 TEST_ASSERT_VAL("find other", hashmap__find(&ctx.ids, "BOZO", in test__expr()
80 TEST_ASSERT_VAL("find other", hashmap__find(&ctx.ids, "EVENT1,param=3/", in test__expr()
82 TEST_ASSERT_VAL("find other", hashmap__find(&ctx.ids, "EVENT2,param=3/", in test__expr()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dhashmap.c77 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
125 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
352 if (CHECK(hashmap__find(map, k, NULL), "elem_find", in test_hashmap_empty()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dhashmap.c76 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
123 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
311 CHECK(!hashmap__find(map, "b", &value), "hashmap__find", "can't find value for 'b'\n"); in test_hashmap_ptr_iface()
312 CHECK_STR("hashmap__find", value, "blueberry"); in test_hashmap_ptr_iface()
429 if (CHECK(hashmap__find(map, k, NULL), "elem_find", in test_hashmap_empty()
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dstrset.c130 if (hashmap__find(set->strs_hash, new_off, &old_off)) in strset__find_str()
H A Dhashmap.h104 * hashmap__for_each_key_entry() iteration. If hashmap__find() is still
159 #define hashmap__find(map, key, value) \ macro
H A Dusdt.c909 if (hashmap__find(specs_hash, target->spec_str, &tmp)) { in allocate_spec_id()
H A Dbtf.c1581 hashmap__find(p->str_off_map, *str_off, &mapped_off)) { in btf_rewrite_str()
4578 if (!hashmap__find(names_map, t->name_off, &cand_id)) in btf_dedup_resolve_fwd()
H A Dbtf_dump.c1643 (void)hashmap__find(name_map, orig_name, &dup_cnt); in btf_dump_name_dups()
H A Dlibbpf.c5763 !hashmap__find(cand_cache, local_id, &cands)) { in bpf_core_resolve_relo()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dhashmap.h94 * hashmap__for_each_key_entry() iteration. If hashmap__find() is still
147 bool hashmap__find(const struct hashmap *map, const void *key, void **value);
H A Dhashmap.c206 bool hashmap__find(const struct hashmap *map, const void *key, void **value) in hashmap__find() function
H A Dbtf_dump.c1477 hashmap__find(name_map, orig_name, (void **)&dup_cnt); in btf_dump_name_dups()
H A Dbtf.c1506 if (hashmap__find(btf->strs_hash, (void *)new_off, (void **)&old_off)) in btf__find_str()
H A Dlibbpf.c5785 if (!hashmap__find(cand_cache, type_key, (void **)&cand_ids)) { in bpf_core_apply_relo()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dhashmap.h94 * hashmap__for_each_key_entry() iteration. If hashmap__find() is still
147 bool hashmap__find(const struct hashmap *map, const void *key, void **value);
H A Dexpr.c136 return hashmap__find(&ctx->ids, id, (void **)data) ? 0 : -1; in expr__get_id()
H A Dhashmap.c206 bool hashmap__find(const struct hashmap *map, const void *key, void **value) in hashmap__find() function
H A Dmetricgroup.c201 hashmap__find(&pctx->ids, "duration_time", (void **)&val_ptr)) in find_evsel_group()
237 if (hashmap__find(&pctx->ids, ev->name, (void **)&val_ptr)) in find_evsel_group()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dhashmap.h104 * hashmap__for_each_key_entry() iteration. If hashmap__find() is still
159 #define hashmap__find(map, key, value) \ macro
H A Dexpr.c225 return hashmap__find(ctx->ids, id, data) ? 0 : -1; in expr__get_id()
494 if (hashmap__find(ctx->ids, id, /*value=*/NULL)) in expr__has_event()
H A Dstat.c357 if (hashmap__find(mask, key, NULL)) { in check_per_pkg()
H A Dmetricgroup.c315 if (hashmap__find(ids, metric_id, &val_ptr)) { in setup_metric_events()
/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dgen.c2088 !hashmap__find(cand_cache, relo->type_id, &cands)) { in btfgen_record_obj()

Completed in 61 milliseconds