lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Sat, 11 Sep 2021 21:50:41 +0800
From:   Yinan Liu <yinan@...ux.alibaba.com>
To:     yinan@...ux.alibaba.com, rostedt@...dmis.org,
        mark-pk.tsai@...iatek.com, peterz@...radead.org, mingo@...hat.com,
        linux-kernel@...r.kernel.org
Subject: [PATCH 0/2] ftrace: improve ftrace during compiling

Hi,
Some business scenarios require the kernel to start as quickly as possible, 
so recently we are optimizing some processing during the kernel startup phase.
When the kernel is started, ftrace_init() takes 15-20ms to execute. Almost 
all of the overhead belongs to the sorting and replacement of nop instructions, 
and other processing only accounts for about 300us. Advance the processing of 
these two parts to the compile time, and the time saved is very important 
for certain scenarios, such as the quick start of containers.

Yinan Liu (2):
  scripts: ftrace - move the sort-processing in ftrace_init to compile time
  scripts: ftrace - move the nop-processing in ftrace_init to compile time

 kernel/trace/ftrace.c   |   9 +++-
 scripts/link-vmlinux.sh |   6 +--
 scripts/recordmcount.h  |  14 +++++++
 scripts/sorttable.c     |   2 +
 scripts/sorttable.h     | 109 +++++++++++++++++++++++++++++++++++++++++++++++-
 5 files changed, 133 insertions(+), 7 deletions(-)

-- 
2.14.4.44.g2045bb6
+++++++++++++++++++++++++++++++++++++++++++++++-

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ