[PATCH v2 2/4] static_call: Add static call infrastructure

2018-11-26 Thread Josh Poimboeuf
Add a static call infrastructure. Static calls use code patching to hard-code function pointers into direct branch instructions. They give the flexibility of function pointers, but with improved performance. This is especially important for cases where retpolines would otherwise be used, as

[PATCH v2 2/4] static_call: Add static call infrastructure

2018-11-26 Thread Josh Poimboeuf
Add a static call infrastructure. Static calls use code patching to hard-code function pointers into direct branch instructions. They give the flexibility of function pointers, but with improved performance. This is especially important for cases where retpolines would otherwise be used, as