aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/radeon_trace.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat)2015-02-19 15:56:14 +0100
committerSteven Rostedt2015-04-02 15:43:33 -0400
commit00ccbf2f5b7580cd7dcdaeda84828d14f0cba3c9 (patch)
treef72ca4ef6ea59bdaff123d6da6665fbef737b1c9 /drivers/gpu/drm/radeon/radeon_trace.h
parentd631c8cceb1d1d06f372878935949d421585186b (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/alpine.LNX.2.00.1501291023000.25445@pobox.suse.cz Link: http://lkml.kernel.org/r/1424357773-13536-1-git-send-email-mbenes@suse.cz Reported-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_trace.h')
0 files changed, 0 insertions, 0 deletions