summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-11-07 09:36:25 -0500
committerSteven Rostedt <rostedt@goodmis.org>2014-02-20 12:13:12 -0500
commitb7e00a6c53e9134d5cf7631582acaf027a5ded26 (patch)
treeeb30ea8ede4a31e1b848d0b2c92eeef9a822ebe5 /kernel/trace
parentf1b21c9a40704dfdf7b8423c7d2969ea31c9857d (diff)
downloadop-kernel-dev-b7e00a6c53e9134d5cf7631582acaf027a5ded26.zip
op-kernel-dev-b7e00a6c53e9134d5cf7631582acaf027a5ded26.tar.gz
ftrace: Add private data to ftrace_ops
Passing data to the function callback was originally done by adding the ftrace_ops in another structure, and using the container_of() to get the field. But this adds a bit more complexity than it is worth, and adding a simple .private field to ftrace_ops makes things a lot easier. But be warned, the .private data should not be freed once it is used unless the ftrace_ops itself has gone through the necessary freeing routines. A simple synchronize_sched() is not enough as functions can be traced that are called outside the view of RCU and all its concoctions. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud