dmesg Support
Sascha Hauer
s.hauer at pengutronix.de
Tue Sep 30 07:22:02 PDT 2014
Printing informations during startup is very useful, but due to slow serial
printouts it adds to the startup time of barebox. This series adds logbuffer
support and a 'dmesg' command, so it becomes possible to reduce the loglevel
while the messages are still available later. As a bonus the timestamp for
each message is recorded so that together with CONFIG_DEBUG_INITCALLS detailed
timing information of the startup process can be collected.
The dmesg support nearly compiles away when it's disabled.
Sascha
----------------------------------------------------------------
Sascha Hauer (4):
clock: Add a variable with the first timestamp after startup
clock: make get_time_ns() safe to be called without clocksource
startup: Don't print multiple lines with pr_info
Introduce message logging support
commands/Kconfig | 7 +++
commands/Makefile | 1 +
commands/dmesg.c | 100 +++++++++++++++++++++++++++++++++++++
common/Kconfig | 3 ++
common/clock.c | 11 +++++
common/console_common.c | 129 ++++++++++++++++++++++++++++++++++++++++++++++--
common/version.c | 4 +-
drivers/base/driver.c | 22 ---------
include/clock.h | 2 +
include/printk.h | 17 +++++++
10 files changed, 270 insertions(+), 26 deletions(-)
create mode 100644 commands/dmesg.c
More information about the barebox
mailing list