bootstage: enable bootstage timing report to fdt
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 2 Dec 2015 10:48:56 +0000 (11:48 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 20 Oct 2020 00:46:45 +0000 (09:46 +0900)
This commit enables boot stage time reporting for U-Boot
and appends it to device-tree, which can be seen in Linux.
The report is created as 'bootstage' fdt node with child
for each stage, like:
- main_loop (U-Boot prompt)
- start_kernel

fdt:
bootstage {
44 {
name = "start_kernel";
mark = <>;
};
...
};

This can be checked in linux with 'cat /proc/device-tree/bootstage/id/name'.

Note: The id's are not constant for each boot stage name. For safety
use in linux, it's better to find the proper one by it's name.

This feature is enabled for configs:
- odroid-xu3
- odroid-u3
- tizen

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
configs/odroid-xu3_defconfig
configs/odroid_defconfig
configs/tizen_defconfig

index e6992b111564d0430d65e533c88a6a28e8f4cbdc..6a3a435a73bde70abc43a5d9d5762f1b0ed2ea58 100644 (file)
@@ -67,3 +67,6 @@ CONFIG_USB_HOST_ETHER=y
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_ERRNO_STR=y
 CONFIG_SIG=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_FDT=y
+CONFIG_CMD_BOOTSTAGE=y
index ea976829e254db01463f7f123de8a5e43d5f8999..b6d7646305a842f0e8380688207f051809da35ec 100644 (file)
@@ -66,3 +66,6 @@ CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_SMSC95XX=y
 CONFIG_LIB_HW_RAND=y
 CONFIG_ERRNO_STR=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_FDT=y
+CONFIG_CMD_BOOTSTAGE=y
index c1ca8a0a02d85905799d3b968b0d9e36b56f4465..e279a31982b375eebd518720fe97e495c5c515cd 100644 (file)
@@ -56,3 +56,6 @@ CONFIG_OF_MULTI=y
 CONFIG_PLATFORM_MAX_PART_NUM=32
 CONFIG_PLATFORM_MAX_SETUP_NUM=6
 CONFIG_SIG=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_FDT=y
+CONFIG_CMD_BOOTSTAGE=y