aboutsummaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <srostedt@redhat.com>2013-03-02 17:37:14 -0500
committerSteven Rostedt <rostedt@goodmis.org>2013-03-15 00:34:53 -0400
commit315326c16ad08771fe0f075a08a18c99976f29f5 (patch)
tree6ba1483c9f6bbbba061c5de87ddab2263d0b06a4 /include/trace
parent34ef61b1fa6172e994e441f1f0241dc53a75bd5f (diff)
tracing: Fix trace events build without modules
The new multi-buffers added a descriptor that kept track of module events, and the directories they use, with struct ftace_module_file_ops. This is used to add a ref count to keep modules from unloading while their files are being accessed. As the descriptor is only needed when CONFIG_MODULES is enabled, it is only declared when the config is enabled. But that struct is dereferenced in a few areas outside the #ifdef CONFIG_MODULES. By adding some helper routines and moving code around a little, events can be compiled again without modules. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions