xlat lib v2: Print some debug statistics
authorSandrine Bailleux <sandrine.bailleux@arm.com>
Fri, 26 May 2017 14:47:08 +0000 (15:47 +0100)
committerSandrine Bailleux <sandrine.bailleux@arm.com>
Tue, 25 Jul 2017 12:09:00 +0000 (13:09 +0100)
commit0350bc6d05f05a3007aead7138297c9f4aef1c5a
tree62c10f78c6d30cba6c6843ff28a6f4a74285882a
parentaa965e1583349b36ce7edd2b3fe9f1f461ef8b23
xlat lib v2: Print some debug statistics

This patch adds some debug prints to display some statistics about page
tables usage. They are printed only if the LOG_LEVEL is at least 50
(i.e. VERBOSE).

Sample output for BL1:

VERBOSE:    Translation tables state:
VERBOSE:      Max allowed PA:  0xffffffff
VERBOSE:      Max allowed VA:  0xffffffff
VERBOSE:      Max mapped PA:   0x7fffffff
VERBOSE:      Max mapped VA:   0x7fffffff
VERBOSE:      Initial lookup level: 1
VERBOSE:      Entries @initial lookup level: 4
VERBOSE:      Used 4 sub-tables out of 5 (spare: 1)

Change-Id: If38956902e9616cdcd6065ecd140fe21482597ea
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
lib/xlat_tables_v2/xlat_tables_internal.c