From: Steven Rostedt (Red Hat) Date: Thu, 7 Nov 2013 14:36:25 +0000 (-0500) Subject: ftrace: Add private data to ftrace_ops X-Git-Tag: v3.15-rc1~110^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7e00a6c53e9134d5cf7631582acaf027a5ded26;p=pandora-kernel.git 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 --- Reading git-diff-tree failed