Skip to content

Commit

Permalink
core: pta: stats: Explicit Public DDR stats are deprecated
Browse files Browse the repository at this point in the history
Explicitly mention in Public DDR allocation stats info that these
statistics are deprecated. With this change, the information
displayed by `xtest --stats --alloc` better show why the
printed values are all 0s for this pool.

Signed-off-by: Etienne Carriere <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
  • Loading branch information
etienne-lms authored and jforissier committed Jan 24, 2025
1 parent 6e2e1d6 commit 8261ca4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/pta/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ static TEE_Result get_alloc_stats(uint32_t type, TEE_Param p[TEE_NUM_PARAMS])

case ALLOC_ID_PUBLIC_DDR:
EMSG("public DDR not managed by secure side anymore");
strlcpy(stats->desc, "Public DDR (deprecated)",
sizeof(stats->desc));
break;

case ALLOC_ID_TA_RAM:
Expand Down

0 comments on commit 8261ca4

Please sign in to comment.