]> git.ipfire.org Git - people/ms/linux.git/commit
scripts: ftrace - move the sort-processing in ftrace_init
authorYinan Liu <yinan@linux.alibaba.com>
Sun, 12 Dec 2021 11:33:58 +0000 (19:33 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 13 Jan 2022 21:23:04 +0000 (16:23 -0500)
commit72b3942a173c387b27860ba1069636726e208777
treef5c9e5f29af4aeae0dbaf9d7232dd985cc5cf4b3
parent1c1857d400355e96f0fe8b32adc6fa7594d03b52
scripts: ftrace - move the sort-processing in ftrace_init

When the kernel starts, the initialization of ftrace takes
up a portion of the time (approximately 6~8ms) to sort mcount
addresses. We can save this time by moving mcount-sorting to
compile time.

Link: https://lkml.kernel.org/r/20211212113358.34208-2-yinan@linux.alibaba.com
Signed-off-by: Yinan Liu <yinan@linux.alibaba.com>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c
scripts/Makefile
scripts/link-vmlinux.sh
scripts/sorttable.c
scripts/sorttable.h