/optee_os-3.20.0/core/pta/ |
A D | stats.c | 45 struct malloc_stats *stats; in get_alloc_stats() local 77 stats = p[1].memref.buffer; in get_alloc_stats() 85 malloc_get_stats(stats); in get_alloc_stats() 86 strlcpy(stats->desc, "Heap", sizeof(stats->desc)); in get_alloc_stats() 98 strlcpy(stats->desc, "Secure DDR", sizeof(stats->desc)); in get_alloc_stats() 104 strlcpy(stats->desc, "KHeap", sizeof(stats->desc)); in get_alloc_stats() 114 stats++; in get_alloc_stats() 122 struct tee_pager_stats stats; in get_pager_stats() local 132 tee_pager_get_stats(&stats); in get_pager_stats() 133 p[0].value.a = stats.npages; in get_pager_stats() [all …]
|
A D | sub.mk | 10 srcs-$(CFG_WITH_STATS) += stats.c
|
/optee_os-3.20.0/lib/libutils/ext/ |
A D | mempool.c | 149 struct malloc_stats stats = { }; in mempool_alloc() local 151 raw_malloc_get_stats(pool->mctx, &stats); in mempool_alloc() 152 if (stats.max_allocated > pool->max_allocated) { in mempool_alloc() 153 pool->max_allocated = stats.max_allocated; in mempool_alloc()
|
/optee_os-3.20.0/lib/libutee/arch/arm/ |
A D | user_ta_entry.c | 383 struct malloc_stats stats = { }; in entry_dump_memstats() local 394 malloc_get_stats(&stats); in entry_dump_memstats() 395 params[0].value.a = stats.allocated; in entry_dump_memstats() 396 params[0].value.b = stats.max_allocated; in entry_dump_memstats() 397 params[1].value.a = stats.size; in entry_dump_memstats() 398 params[1].value.b = stats.num_alloc_fail; in entry_dump_memstats() 399 params[2].value.a = stats.biggest_alloc_fail; in entry_dump_memstats() 400 params[2].value.b = stats.biggest_alloc_fail_used; in entry_dump_memstats()
|
/optee_os-3.20.0/core/include/mm/ |
A D | tee_pager.h | 269 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()
|
A D | tee_mm.h | 115 void tee_mm_get_pool_stats(tee_mm_pool_t *pool, struct malloc_stats *stats,
|
/optee_os-3.20.0/core/mm/ |
A D | tee_mm.c | 107 void tee_mm_get_pool_stats(tee_mm_pool_t *pool, struct malloc_stats *stats, in tee_mm_get_pool_stats() argument 115 memset(stats, 0, sizeof(*stats)); in tee_mm_get_pool_stats() 119 stats->size = pool->size; in tee_mm_get_pool_stats() 120 stats->max_allocated = pool->max_allocated; in tee_mm_get_pool_stats() 121 stats->allocated = tee_mm_stats_allocated(pool); in tee_mm_get_pool_stats()
|
/optee_os-3.20.0/lib/libutils/isoc/include/ |
A D | malloc.h | 98 void malloc_get_stats(struct malloc_stats *stats); 145 void nex_malloc_get_stats(struct malloc_stats *stats); 177 void raw_malloc_get_stats(struct malloc_ctx *ctx, struct malloc_stats *stats);
|
/optee_os-3.20.0/core/kernel/ |
A D | tee_ta_manager.c | 928 struct tee_ta_dump_stats *stats = &dump_stats[i]; in dump_ta_stats() local 930 memcpy(&stats->uuid, &dump_ctx[i].uuid, in dump_ta_stats() 932 stats->panicked = dump_ctx[i].panicked; in dump_ta_stats() 933 stats->sess_num = dump_ctx[i].sess_num; in dump_ta_stats() 950 stats->heap.allocated = param.u[0].val.a; in dump_ta_stats() 951 stats->heap.max_allocated = param.u[0].val.b; in dump_ta_stats() 952 stats->heap.size = param.u[1].val.a; in dump_ta_stats() 953 stats->heap.num_alloc_fail = param.u[1].val.b; in dump_ta_stats() 954 stats->heap.biggest_alloc_fail = param.u[2].val.a; in dump_ta_stats() 955 stats->heap.biggest_alloc_fail_used = param.u[2].val.b; in dump_ta_stats() [all …]
|
/optee_os-3.20.0/core/drivers/ |
A D | versal_trng.c | 210 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-3.20.0/lib/libutils/isoc/ |
A D | bget_malloc.c | 311 struct malloc_stats *stats) in gen_malloc_get_stats() argument 315 raw_malloc_get_stats(ctx, stats); in gen_malloc_get_stats() 319 void malloc_get_stats(struct malloc_stats *stats) in malloc_get_stats() argument 321 gen_malloc_get_stats(&malloc_ctx, stats); in malloc_get_stats() 999 void raw_malloc_get_stats(struct malloc_ctx *ctx, struct malloc_stats *stats) in raw_malloc_get_stats() argument 1001 memcpy_unchecked(stats, &ctx->mstats, sizeof(*stats)); in raw_malloc_get_stats() 1002 stats->allocated = ctx->poolset.totalloc; in raw_malloc_get_stats() 1133 void nex_malloc_get_stats(struct malloc_stats *stats) in nex_malloc_get_stats() argument 1135 gen_malloc_get_stats(&nex_malloc_ctx, stats); in nex_malloc_get_stats()
|
A D | bget.c | 1428 static void stats(const char *when __maybe_unused, in stats() function 1609 stats("Create pool", &mypoolset); in bget_main_test() 1734 stats("\nAfter allocation", &mypoolset); in bget_main_test() 1750 stats("\nAfter release", &mypoolset); in bget_main_test()
|
/optee_os-3.20.0/core/arch/arm/kernel/ |
A D | boot.c | 362 struct tee_pager_stats __maybe_unused stats; in print_pager_pool_size() local 364 tee_pager_get_stats(&stats); in print_pager_pool_size() 366 stats.npages_all * SMALL_PAGE_SIZE / 1024); in print_pager_pool_size()
|
/optee_os-3.20.0/core/arch/arm/mm/ |
A D | tee_pager.c | 118 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()
|