Home
last modified time | relevance | path

Searched refs:hashmap__size (Results 1 – 8 of 8) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dhashmap.c85 if (CHECK(hashmap__size(map) != ELEM_CNT, "hashmap__size", in test_hashmap_generic()
86 "invalid map size: %zu\n", hashmap__size(map))) in test_hashmap_generic()
88 if (CHECK(hashmap__capacity(map) != exp_cap(hashmap__size(map)), in test_hashmap_generic()
133 if (CHECK(hashmap__size(map) != ELEM_CNT, "hashmap__size", in test_hashmap_generic()
134 "invalid updated map size: %zu\n", hashmap__size(map))) in test_hashmap_generic()
136 if (CHECK(hashmap__capacity(map) != exp_cap(hashmap__size(map)), in test_hashmap_generic()
192 if (CHECK(hashmap__size(map) != ELEM_CNT - found_cnt, "elem_cnt", in test_hashmap_generic()
194 found_cnt, hashmap__size(map))) in test_hashmap_generic()
196 if (CHECK(hashmap__capacity(map) != exp_cap(hashmap__size(map)), in test_hashmap_generic()
230 if (CHECK(hashmap__size(map) != 0, "hashmap__size", in test_hashmap_generic()
[all …]
/tools/perf/tests/
Dexpr.c67 TEST_ASSERT_VAL("find other", hashmap__size(&ctx.ids) == 3); in test__expr()
79 TEST_ASSERT_VAL("find other", hashmap__size(&ctx.ids) == 2); in test__expr()
/tools/perf/util/
Dhashmap.h81 size_t hashmap__size(const struct hashmap *map);
Dmetricgroup.c193 const int idnum = (int)hashmap__size(&pctx->ids); in find_evsel_group()
316 hashmap__size(&m->pctx.ids) + 1); in metricgroup__setup_events()
785 if (hashmap__size(&m->pctx.ids) <= in __add_metric()
786 hashmap__size(&old->pctx.ids)) in __add_metric()
Dhashmap.c85 size_t hashmap__size(const struct hashmap *map) in hashmap__size() function
Dstat-shadow.c360 hashmap__size(&ctx.ids) + 1); in perf_stat__collect_metric_expr()
/tools/lib/bpf/
Dhashmap.h81 size_t hashmap__size(const struct hashmap *map);
Dhashmap.c85 size_t hashmap__size(const struct hashmap *map) in hashmap__size() function