Linux 5.0: Measure linking duration
The snippet can be accessed without any authentication.
Authored by
Marco Ammon
Measure linking duration
0001-Makefile-Measure-linking-time.patch 688 B
From 889545e78bae41f6c4fe65ffe63326bb266d7caf Mon Sep 17 00:00:00 2001
From: Marco Ammon <marco.ammon@fau.de>
Date: Thu, 19 Sep 2019 13:03:20 +0200
Subject: [PATCH] Makefile: Measure linking time
---
Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index d5713e7b1e50..46a9ac50aeea 100644
--- a/Makefile
+++ b/Makefile
@@ -1018,7 +1018,9 @@ vmlinux: scripts/link-vmlinux.sh autoksyms_recursive $(vmlinux-deps) FORCE
ifdef CONFIG_GDB_SCRIPTS
$(Q)ln -fsn $(abspath $(srctree)/scripts/gdb/vmlinux-gdb.py)
endif
+ date +"%H:%M:%S.%N" >>boot_times
+$(call if_changed,link-vmlinux)
+ date +"%H:%M:%S.%N" >>boot_times
targets := vmlinux
--
2.23.0
Please register or sign in to comment