首页
社区
课程
招聘
[转帖]Static calls in Linux 5.10
发表于: 2020-12-16 23:23 1983

[转帖]Static calls in Linux 5.10

2020-12-16 23:23
1983

Static calls in Linux 5.10

Dec 16, 2020

I was reading the Linux 5.10 release summary on KernelNewbies, and a section stood out to me:


1.6. Static calls for improved post-Spectre performance


Static calls are a replacement for global function pointers. They use code patching to allow direct calls to be used instead of indirect calls. They give the flexibility of function pointers, but with improved performance. This is especially important for cases where retpolines would otherwise be used, as retpolines can significantly impact performance.


I’ve spent a lot of time looking at the Linux kernel, but never directly at its indirect call setup or post-Spectre mitigations. These changes sound very cool, so I’m going to use this post to try and explain and understand them (both to myself and others).


2cdK9s2c8@1M7s2y4Q4x3@1q4Q4x3V1k6Q4x3V1k6T1L8r3!0Y4i4K6u0W2P5h3!0K6M7$3q4J5K9h3q4F1i4K6u0W2L8X3g2@1i4K6u0r3x3U0l9J5x3q4)9J5c8U0p5J5i4K6u0r3x3e0k6Q4x3V1k6e0N6r3q4@1K9h3y4Q4x3X3c8U0j5h3I4D9M7#2)9J5k6r3W2F1i4K6u0V1e0r3W2F1N6i4S2Q4x3X3b7#2i4K6u0V1x3e0l9`.



[培训]科锐逆向工程师培训第53期2025年7月8日开班!

最后于 2020-12-17 10:11 被linhanshi编辑 ,原因:
收藏
免费 2
支持
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回