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>
Showing
- kernel/trace/ftrace.c 9 additions, 2 deletionskernel/trace/ftrace.c
- scripts/Makefile 5 additions, 1 deletionscripts/Makefile
- scripts/link-vmlinux.sh 3 additions, 3 deletionsscripts/link-vmlinux.sh
- scripts/sorttable.c 2 additions, 0 deletionsscripts/sorttable.c
- scripts/sorttable.h 118 additions, 2 deletionsscripts/sorttable.h
Please register or sign in to comment