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

[转帖]Static calls in Linux 5.10

2020-12-16 23:23
1649

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).


https://blog.yossarian.net/2020/12/16/Static-calls-in-Linux-5-10



[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

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