forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: ftrace - move the nop-processing in ftrace_init to compile time
When ftrace is enabled, ftrace_init will consume a period of time, usually around 15~20ms. Approximately 60% of the time is consumed by nop-processing. Moving the nop-processing to the compile time can speed up the kernel boot process. performance test: env: Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz method: before and after patching, compare the total time of ftrace_init(), and verify the functionality of ftrace. avg_time of ftrace_init: with patch: 7.114ms without patch: 15.763ms Signed-off-by: Yinan Liu <yinan@linux.alibaba.com>
- Loading branch information
1 parent
b629528
commit 54d68f2
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters