summaryrefslogtreecommitdiffstats
path: root/drivers/ptp
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-05-10 01:31:48 +0200
committerSteven Rostedt <rostedt@goodmis.org>2013-05-10 02:16:16 +0200
commit23ea9c4dda129fe1711f9fbda03c7a9c91cf1322 (patch)
tree8924f6fd2399654393d0b41352d40bd07037c470 /drivers/ptp
parentftrace: Fix locking in register_ftrace_function_probe() (diff)
downloadlinux-23ea9c4dda129fe1711f9fbda03c7a9c91cf1322.tar.xz
linux-23ea9c4dda129fe1711f9fbda03c7a9c91cf1322.zip
ftrace: Fix the output of enabled_functions debug file
The enabled_functions debugfs file was created to be able to see what functions have been modified from nops to calling a tracer. The current method uses the counter in the function record. As when a ftrace_ops is registered to a function, its count increases. But that doesn't mean that the function is actively being traced. /proc/sys/kernel/ftrace_enabled can be set to zero which would disable it, as well as something can go wrong and we can think its enabled when only the counter is set. The record's FTRACE_FL_ENABLED flag is set or cleared when its function is modified. That is a much more accurate way of knowing what function is enabled or not. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/ptp')
0 files changed, 0 insertions, 0 deletions