diff options
author | Steven Rostedt (Red Hat) <srostedt@redhat.com> | 2013-03-02 17:37:14 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 00:34:53 -0400 |
commit | 315326c16ad08771fe0f075a08a18c99976f29f5 (patch) | |
tree | 6ba1483c9f6bbbba061c5de87ddab2263d0b06a4 /include/trace | |
parent | 34ef61b1fa6172e994e441f1f0241dc53a75bd5f (diff) | |
download | blackbird-op-linux-315326c16ad08771fe0f075a08a18c99976f29f5.tar.gz blackbird-op-linux-315326c16ad08771fe0f075a08a18c99976f29f5.zip |
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