diff options
author | Steven Rostedt (Red Hat) <[email protected]> | 2015-02-19 15:56:14 +0100 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2015-04-02 15:43:33 -0400 |
commit | 00ccbf2f5b7580cd7dcdaeda84828d14f0cba3c9 (patch) | |
tree | f72ca4ef6ea59bdaff123d6da6665fbef737b1c9 /net/unix/sysctl_net_unix.c | |
parent | d631c8cceb1d1d06f372878935949d421585186b (diff) |
ftrace/x86: Let dynamic trampolines call ops->func even for dynamic fops
Dynamically allocated trampolines call ftrace_ops_get_func to get the
function which they should call. For dynamic fops (FTRACE_OPS_FL_DYNAMIC
flag is set) ftrace_ops_list_func is always returned. This is reasonable
for static trampolines but goes against the main advantage of dynamic
ones, that is avoidance of going through the list of all registered
callbacks for functions that are only being traced by a single callback.
We can fix it by returning ops->func (or recursion safe version) from
ftrace_ops_get_func whenever it is possible for dynamic trampolines.
Note that dynamic trampolines are not allowed for dynamic fops if
CONFIG_PREEMPT=y.
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Reported-by: Miroslav Benes <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions