]> git.baikalelectronics.ru Git - kernel.git/commit
Makefile: extend 32B aligned debug option to 64B aligned
authorFeng Tang <feng.tang@intel.com>
Thu, 6 May 2021 07:34:59 +0000 (15:34 +0800)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 24 May 2021 03:06:50 +0000 (12:06 +0900)
commitc5a39948272c8e11abafc0466dd2f4fdca720010
treed54d136af71ec07adca5db16d959540ffbf071b1
parent70cbf5cd52e65b9e7ea198f97a0465a1d703a656
Makefile: extend 32B aligned debug option to 64B aligned

Commit 0999aa3d2658 ("./Makefile: add debug option to enable
function aligned on 32 bytes") was introduced to help debugging
strange kernel performance changes caused by code alignment
change.

Recently we found 2 similar cases [1][2] caused by code-alignment
changes, which can only be identified by forcing 64 bytes aligned
for all functions.

Originally, 32 bytes was used mainly for not wasting too much
text space, but this option is only for debug anyway where text
space is not a big concern. So extend the alignment to 64 bytes
to cover more similar cases.

[1].https://lore.kernel.org/lkml/20210427090013.GG32408@xsang-OptiPlex-9020/
[2].https://lore.kernel.org/lkml/20210420030837.GB31773@xsang-OptiPlex-9020/
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile
lib/Kconfig.debug