diff options
author | Soby Mathew <soby.mathew@arm.com> | 2017-09-04 11:49:29 +0100 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2017-09-11 15:37:24 +0100 |
commit | 7f56e9a31c91099cd0147883a0282ec89ae0b346 (patch) | |
tree | 14bc3086e895ea2979ba7236cabfcc607339bf97 /Makefile | |
parent | 2d7e82823dc28ccfa776dc0ecdaeeda8c465bf62 (diff) |
Implement log framework
This patch gives users control over logging messages printed from the C
code using the LOG macros defined in debug.h Users now have the ability
to reduce the log_level at run time using the tf_log_set_max_level()
function. The default prefix string can be defined by platform by
overriding the `plat_log_get_prefix()` platform API which is also
introduced in this patch.
The new log framework results in saving of some RO data. For example,
when BL1 is built for FVP with LOG_LEVEL=LOG_LEVEL_VERBOSE, resulted
in saving 384 bytes of RO data and increase of 8 bytes of RW data. The
framework also adds about 108 bytes of code to the release build of FVP.
Fixes ARM-software/tf-issues#462
Change-Id: I476013d9c3deedfdd4c8b0b0f125665ba6250554
Co-authored-by: Eleanor Bonnici <Eleanor.bonnici@arm.com>
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -162,11 +162,13 @@ include lib/compiler-rt/compiler-rt.mk include lib/stdlib/stdlib.mk BL_COMMON_SOURCES += common/bl_common.c \ + common/tf_log.c \ common/tf_printf.c \ common/tf_snprintf.c \ common/${ARCH}/debug.S \ lib/${ARCH}/cache_helpers.S \ lib/${ARCH}/misc_helpers.S \ + plat/common/plat_log_common.c \ plat/common/${ARCH}/plat_common.c \ plat/common/${ARCH}/platform_helpers.S \ ${COMPILER_RT_SRCS} \ |