Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 20 of 20) sorted by relevance

/optee_os/core/pta/
H A Dstats.c23 struct pta_stats_alloc *stats = NULL; in get_alloc_stats() local
55 stats = p[1].memref.buffer; in get_alloc_stats()
56 memset(stats, 0, size_to_retrieve); in get_alloc_stats()
64 malloc_get_stats(stats); in get_alloc_stats()
65 strlcpy(stats->desc, "Heap", sizeof(stats->desc)); in get_alloc_stats()
72 strlcpy(stats->desc, "Public DDR (deprecated)", in get_alloc_stats()
73 sizeof(stats->desc)); in get_alloc_stats()
77 phys_mem_stats(stats, p[0].value.b); in get_alloc_stats()
78 strlcpy(stats->desc, "Physical TA memory", in get_alloc_stats()
79 sizeof(stats->desc)); in get_alloc_stats()
[all …]
H A Dsub.mk9 srcs-$(CFG_WITH_STATS) += stats.c
/optee_os/core/mm/
H A Dphys_mem.c151 static void add_pool_stats(tee_mm_pool_t *pool, struct pta_stats_alloc *stats, in add_pool_stats() argument
158 stats->size += s.size; in add_pool_stats()
159 if (s.max_allocated > stats->max_allocated) in add_pool_stats()
160 stats->max_allocated = s.max_allocated; in add_pool_stats()
161 stats->allocated += s.allocated; in add_pool_stats()
165 void nex_phys_mem_stats(struct pta_stats_alloc *stats, bool reset) in nex_phys_mem_stats() argument
167 memset(stats, 0, sizeof(*stats)); in nex_phys_mem_stats()
169 add_pool_stats(nex_core_pool, stats, reset); in nex_phys_mem_stats()
170 add_pool_stats(nex_ta_pool, stats, reset); in nex_phys_mem_stats()
216 void phys_mem_stats(struct pta_stats_alloc *stats, bool reset) in phys_mem_stats() argument
[all …]
H A Dtee_mm.c88 void tee_mm_get_pool_stats(tee_mm_pool_t *pool, struct pta_stats_alloc *stats, in tee_mm_get_pool_stats() argument
96 memset(stats, 0, sizeof(*stats)); in tee_mm_get_pool_stats()
100 stats->size = pool->size; in tee_mm_get_pool_stats()
101 stats->max_allocated = pool->max_allocated; in tee_mm_get_pool_stats()
102 stats->allocated = tee_mm_stats_allocated(pool); in tee_mm_get_pool_stats()
/optee_os/core/include/mm/
H A Dphys_mem.h22 void nex_phys_mem_stats(struct pta_stats_alloc *stats, bool reset);
33 void phys_mem_stats(struct pta_stats_alloc *stats, bool reset);
63 static inline void phys_mem_stats(struct pta_stats_alloc *stats, bool reset) in phys_mem_stats() argument
65 return nex_phys_mem_stats(stats, reset); in phys_mem_stats()
H A Dtee_pager.h269 void tee_pager_get_stats(struct tee_pager_stats *stats);
277 static inline void tee_pager_get_stats(struct tee_pager_stats *stats) in tee_pager_get_stats() argument
279 memset(stats, 0, sizeof(struct tee_pager_stats)); in tee_pager_get_stats()
H A Dtee_mm.h113 void tee_mm_get_pool_stats(tee_mm_pool_t *pool, struct pta_stats_alloc *stats,
/optee_os/lib/libutils/ext/
H A Dmempool.c150 struct pta_stats_alloc stats = { }; in mempool_alloc() local
152 raw_malloc_get_stats(pool->mctx, &stats); in mempool_alloc()
153 if (stats.max_allocated > pool->max_allocated) { in mempool_alloc()
154 pool->max_allocated = stats.max_allocated; in mempool_alloc()
/optee_os/lib/libutee/
H A Duser_ta_entry.c407 struct pta_stats_alloc stats = { }; in entry_dump_memstats() local
418 malloc_get_stats(&stats); in entry_dump_memstats()
419 params[0].value.a = stats.allocated; in entry_dump_memstats()
420 params[0].value.b = stats.max_allocated; in entry_dump_memstats()
421 params[1].value.a = stats.size; in entry_dump_memstats()
422 params[1].value.b = stats.num_alloc_fail; in entry_dump_memstats()
423 params[2].value.a = stats.biggest_alloc_fail; in entry_dump_memstats()
424 params[2].value.b = stats.biggest_alloc_fail_used; in entry_dump_memstats()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpsa_crypto_slot_management.c1091 void mbedtls_psa_get_stats(mbedtls_psa_stats_t *stats) in mbedtls_psa_get_stats() argument
1093 memset(stats, 0, sizeof(*stats)); in mbedtls_psa_get_stats()
1104 ++stats->empty_slots; in mbedtls_psa_get_stats()
1108 ++stats->locked_slots; in mbedtls_psa_get_stats()
1111 ++stats->volatile_slots; in mbedtls_psa_get_stats()
1114 ++stats->persistent_slots; in mbedtls_psa_get_stats()
1115 if (id > stats->max_open_internal_key_id) { in mbedtls_psa_get_stats()
1116 stats->max_open_internal_key_id = id; in mbedtls_psa_get_stats()
1122 ++stats->external_slots; in mbedtls_psa_get_stats()
1123 if (id > stats->max_open_external_key_id) { in mbedtls_psa_get_stats()
[all …]
/optee_os/core/include/tee/
H A Dtee_fs.h68 TEE_Result rpmb_mem_stats(struct pta_stats_alloc *stats, bool reset);
82 static inline TEE_Result rpmb_mem_stats(struct pta_stats_alloc *stats __unused, in rpmb_mem_stats()
/optee_os/core/kernel/
H A Dtee_ta_manager.c927 struct pta_stats_ta *stats = &dump_stats[i]; in dump_ta_stats()
929 memcpy(&stats->uuid, &dump_ctx[i].uuid, in dump_ta_stats()
931 stats->panicked = dump_ctx[i].panicked; in dump_ta_stats()
932 stats->sess_num = dump_ctx[i].sess_num; in dump_ta_stats()
941 /* If session is existing, get its heap stats */ in dump_ta_stats()
949 stats->heap.allocated = param.u[0].val.a; in dump_ta_stats()
950 stats->heap.max_allocated = param.u[0].val.b; in dump_ta_stats()
951 stats->heap.size = param.u[1].val.a;
952 stats->heap.num_alloc_fail = param.u[1].val.b; in tee_ta_instance_stats()
953 stats in tee_ta_instance_stats()
915 struct pta_stats_ta *stats = &dump_stats[i]; dump_ta_stats() local
[all...]
/optee_os/lib/libutils/isoc/
H A Dbget_malloc.c320 struct pta_stats_alloc *stats) in gen_malloc_get_stats() argument
324 raw_malloc_get_stats(ctx, stats); in gen_malloc_get_stats()
328 void malloc_get_stats(struct pta_stats_alloc *stats) in malloc_get_stats() argument
330 gen_malloc_get_stats(&malloc_ctx, stats); in malloc_get_stats()
897 void raw_malloc_get_stats(struct malloc_ctx *ctx, struct pta_stats_alloc *stats) in raw_malloc_get_stats() argument
899 memcpy_unchecked(stats, &ctx->mstats, sizeof(*stats)); in raw_malloc_get_stats()
900 stats->allocated = ctx->poolset.totalloc; in raw_malloc_get_stats()
901 stats->free2_sum = ctx->poolset.free2_sum; in raw_malloc_get_stats()
981 void nex_malloc_get_stats(struct pta_stats_alloc *stats) in nex_malloc_get_stats() argument
983 gen_malloc_get_stats(&nex_malloc_ctx, stats); in nex_malloc_get_stats()
H A Dbget.c1489 static void stats(const char *when __maybe_unused, in stats() function
1670 stats("Create pool", &mypoolset); in bget_main_test()
1795 stats("\nAfter allocation", &mypoolset); in bget_main_test()
1811 stats("\nAfter release", &mypoolset); in bget_main_test()
/optee_os/lib/libutils/isoc/include/
H A Dmalloc.h85 void malloc_get_stats(struct pta_stats_alloc *stats);
125 void nex_malloc_get_stats(struct pta_stats_alloc *stats);
165 struct pta_stats_alloc *stats);
/optee_os/core/drivers/
H A Dversal_trng.c210 struct trng_stats stats; member
728 trng->stats.bytes_reseed = 0; in trng_reseed_internal()
729 trng->stats.elapsed_seed_life = 0; in trng_reseed_internal()
894 if (trng->stats.elapsed_seed_life >= trng->usr_cfg.seed_life) { in trng_generate()
899 if (predict && trng->stats.elapsed_seed_life > 0) { in trng_generate()
907 if (trng->stats.elapsed_seed_life > trng->usr_cfg.seed_life) in trng_generate()
910 if (predict && trng->stats.elapsed_seed_life > 0) in trng_generate()
933 trng->stats.bytes_reseed += len; in trng_generate()
934 trng->stats.bytes += len; in trng_generate()
935 trng->stats.elapsed_seed_life++; in trng_generate()
/optee_os/core/arch/arm/kernel/
H A Dboot.c399 struct tee_pager_stats __maybe_unused stats; in print_pager_pool_size() local
401 tee_pager_get_stats(&stats); in print_pager_pool_size()
403 stats.npages_all * SMALL_PAGE_SIZE / 1024); in print_pager_pool_size()
/optee_os/lib/libmbedtls/mbedtls/include/psa/
H A Dcrypto_extra.h262 void mbedtls_psa_get_stats(mbedtls_psa_stats_t *stats);
/optee_os/core/arch/arm/mm/
H A Dtee_pager.c118 void tee_pager_get_stats(struct tee_pager_stats *stats) in tee_pager_get_stats() argument
120 *stats = pager_stats; in tee_pager_get_stats()
136 void tee_pager_get_stats(struct tee_pager_stats *stats) in tee_pager_get_stats() argument
138 memset(stats, 0, sizeof(struct tee_pager_stats)); in tee_pager_get_stats()
/optee_os/core/tee/
H A Dtee_rpmb_fs.c3179 TEE_Result rpmb_mem_stats(struct pta_stats_alloc *stats, bool reset) in rpmb_mem_stats() argument
3234 tee_mm_get_pool_stats(&pool, stats, reset); in rpmb_mem_stats()