diff options
author | Yinan Liu <yinan@linux.alibaba.com> | 2021-12-12 19:33:58 +0800 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2022-01-13 16:23:04 -0500 |
commit | 72b3942a173c387b27860ba1069636726e208777 (patch) | |
tree | f5c9e5f29af4aeae0dbaf9d7232dd985cc5cf4b3 /scripts/sorttable.c | |
parent | 1c1857d400355e96f0fe8b32adc6fa7594d03b52 (diff) | |
download | linux-72b3942a173c387b27860ba1069636726e208777.tar.bz2 |
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>
Diffstat (limited to 'scripts/sorttable.c')
-rw-r--r-- | scripts/sorttable.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/sorttable.c b/scripts/sorttable.c index b7c2ad71f9cf..70bdc787ddfb 100644 --- a/scripts/sorttable.c +++ b/scripts/sorttable.c @@ -30,6 +30,8 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <errno.h> +#include <pthread.h> #include <tools/be_byteshift.h> #include <tools/le_byteshift.h> |