Skip to content
Snippets Groups Projects

Linux 5.0: Measure linking duration

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Marco Ammon

    Measure linking duration

    Edited
    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
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment