Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/perf/tests/
H A 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()
/OK3568_Linux_fs/kernel/tools/perf/util/
H A 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()
H A Dhashmap.h81 size_t hashmap__size(const struct hashmap *map);
H A Dhashmap.c85 size_t hashmap__size(const struct hashmap *map) in hashmap__size() function
H A Dstat-shadow.c360 hashmap__size(&ctx.ids) + 1); in perf_stat__collect_metric_expr()
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dhashmap.h81 size_t hashmap__size(const struct hashmap *map);
H A Dhashmap.c85 size_t hashmap__size(const struct hashmap *map) in hashmap__size() function