Searched refs:stats (Results 1 – 5 of 5) sorted by relevance
81 mbedtls_psa_stats_t stats; in mbedtls_test_helper_is_psa_leaking() local83 mbedtls_psa_get_stats(&stats); in mbedtls_test_helper_is_psa_leaking()85 if (stats.volatile_slots != 0) { in mbedtls_test_helper_is_psa_leaking()88 if (stats.persistent_slots != 0) { in mbedtls_test_helper_is_psa_leaking()91 if (stats.external_slots != 0) { in mbedtls_test_helper_is_psa_leaking()94 if (stats.half_filled_slots != 0) { in mbedtls_test_helper_is_psa_leaking()97 if (stats.locked_slots != 0) { in mbedtls_test_helper_is_psa_leaking()
544 void mbedtls_psa_get_stats(mbedtls_psa_stats_t *stats) in mbedtls_psa_get_stats() argument548 memset(stats, 0, sizeof(*stats)); in mbedtls_psa_get_stats()553 ++stats->locked_slots; in mbedtls_psa_get_stats()556 ++stats->empty_slots; in mbedtls_psa_get_stats()560 ++stats->volatile_slots; in mbedtls_psa_get_stats()563 ++stats->persistent_slots; in mbedtls_psa_get_stats()564 if (id > stats->max_open_internal_key_id) { in mbedtls_psa_get_stats()565 stats->max_open_internal_key_id = id; in mbedtls_psa_get_stats()571 ++stats->external_slots; in mbedtls_psa_get_stats()572 if (id > stats->max_open_external_key_id) { in mbedtls_psa_get_stats()[all …]
280 /* If upper_bound is small, stats[b] is the number of times the value b281 * has been generated. Otherwise stats[b] is the number of times a283 size_t *stats = NULL;305 ASSERT_ALLOC(stats, stats_len);324 ++stats[value];327 stats[b] += mbedtls_mpi_get_bit(&R, b);339 TEST_ASSERT(stats[b] > 0);359 TEST_ASSERT(stats[b] > 0);361 TEST_ASSERT(stats[b] < (size_t) iterations);369 mbedtls_free(stats);
3231 mbedtls_psa_stats_t stats;3264 mbedtls_psa_get_stats(&stats);3267 free_slots_before = stats.empty_slots;3279 mbedtls_psa_get_stats(&stats);3284 TEST_EQUAL(free_slots_before, stats.empty_slots);
257 void mbedtls_psa_get_stats(mbedtls_psa_stats_t *stats);