Re: [PATCH v2 07/17] tracing: probeevent: Introduce new argument fetching code

2018-02-23 Thread Masami Hiramatsu
On Fri, 23 Feb 2018 13:30:03 +0900 Namhyung Kim wrote: > On Wed, Feb 21, 2018 at 11:57:36PM +0900, Masami Hiramatsu wrote: > > Replace {k,u}probe event argument fetching framework > > with switch-case based. Currently that is implemented > > with structures, macros and chain of function-pointers,

Re: [PATCH v2 07/17] tracing: probeevent: Introduce new argument fetching code

2018-02-22 Thread Namhyung Kim
On Wed, Feb 21, 2018 at 11:57:36PM +0900, Masami Hiramatsu wrote: > Replace {k,u}probe event argument fetching framework > with switch-case based. Currently that is implemented > with structures, macros and chain of function-pointers, > which is more complicated than necessary and may get > a perfo

[PATCH v2 07/17] tracing: probeevent: Introduce new argument fetching code

2018-02-21 Thread Masami Hiramatsu
Replace {k,u}probe event argument fetching framework with switch-case based. Currently that is implemented with structures, macros and chain of function-pointers, which is more complicated than necessary and may get a performance penalty by retpoline. This simplify that with an array of "fetch_ins