Re: [RFC][PATCH 1/3] ftrace/x86: Add dynamic allocated trampoline for ftrace_ops

2014-07-13 Thread Masami Hiramatsu
(2014/07/04 5:07), Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > The current method of handling multiple function callbacks is to register > a list function callback that calls all the other callbacks based on > their hash tables and compare it to the function that the callback was

Re: [RFC][PATCH 1/3] ftrace/x86: Add dynamic allocated trampoline for ftrace_ops

2014-07-04 Thread Steven Rostedt
On Fri, 04 Jul 2014 22:32:44 +0900 Masami Hiramatsu wrote: > (2014/07/04 5:07), Steven Rostedt wrote: > > + > > +void arch_ftrace_update_trampoline(struct ftrace_ops *ops) > > +{ > > + unsigned char *new; > > + unsigned long start_offset; > > + unsigned long call_offset; > > + unsigned lo

Re: [RFC][PATCH 1/3] ftrace/x86: Add dynamic allocated trampoline for ftrace_ops

2014-07-04 Thread Masami Hiramatsu
(2014/07/04 5:07), Steven Rostedt wrote: > + > +void arch_ftrace_update_trampoline(struct ftrace_ops *ops) > +{ > + unsigned char *new; > + unsigned long start_offset; > + unsigned long call_offset; > + unsigned long offset; > + unsigned long ip; > + int ret; > + > + if