Re: [PATCH 10/15] static_call: Add basic static call infrastructure

2019-10-02 Thread Josh Poimboeuf
On Wed, Oct 02, 2019 at 03:54:17PM +0200, Peter Zijlstra wrote: > On Fri, Jun 07, 2019 at 10:28:51AM +0200, Peter Zijlstra wrote: > > On Thu, Jun 06, 2019 at 10:44:23PM +, Nadav Amit wrote: > > > > + * Usage example: > > > > + * > > > > + * # Start with the following functions (with identical

Re: [PATCH 10/15] static_call: Add basic static call infrastructure

2019-10-02 Thread Peter Zijlstra
On Fri, Jun 07, 2019 at 10:28:51AM +0200, Peter Zijlstra wrote: > On Thu, Jun 06, 2019 at 10:44:23PM +, Nadav Amit wrote: > > > + * Usage example: > > > + * > > > + * # Start with the following functions (with identical prototypes): > > > + * int func_a(int arg1, int arg2); > > > + * int

Re: [PATCH 10/15] static_call: Add basic static call infrastructure

2019-06-07 Thread Nadav Amit
> On Jun 7, 2019, at 1:49 AM, Ard Biesheuvel wrote: > > On Fri, 7 Jun 2019 at 10:29, Peter Zijlstra wrote: >> On Thu, Jun 06, 2019 at 10:44:23PM +, Nadav Amit wrote: + * Usage example: + * + * # Start with the following functions (with identical prototypes): + * int f

Re: [PATCH 10/15] static_call: Add basic static call infrastructure

2019-06-07 Thread Andy Lutomirski
> On Jun 7, 2019, at 1:49 AM, Ard Biesheuvel wrote: > >> On Fri, 7 Jun 2019 at 10:29, Peter Zijlstra wrote: >> >> On Thu, Jun 06, 2019 at 10:44:23PM +, Nadav Amit wrote: + * Usage example: + * + * # Start with the following functions (with identical prototypes): + *

Re: [PATCH 10/15] static_call: Add basic static call infrastructure

2019-06-07 Thread Ard Biesheuvel
On Fri, 7 Jun 2019 at 10:29, Peter Zijlstra wrote: > > On Thu, Jun 06, 2019 at 10:44:23PM +, Nadav Amit wrote: > > > + * Usage example: > > > + * > > > + * # Start with the following functions (with identical prototypes): > > > + * int func_a(int arg1, int arg2); > > > + * int func_b(int

Re: [PATCH 10/15] static_call: Add basic static call infrastructure

2019-06-07 Thread Peter Zijlstra
On Thu, Jun 06, 2019 at 10:44:23PM +, Nadav Amit wrote: > > + * Usage example: > > + * > > + * # Start with the following functions (with identical prototypes): > > + * int func_a(int arg1, int arg2); > > + * int func_b(int arg1, int arg2); > > + * > > + * # Define a 'my_key' reference,

Re: [PATCH 10/15] static_call: Add basic static call infrastructure

2019-06-06 Thread Nadav Amit
> On Jun 5, 2019, at 6:08 AM, Peter Zijlstra wrote: > > From: Josh Poimboeuf > > 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 > impro