[PATCH 5/5] tracing/events: make modules have their own file_operations structure

From: Steven Rostedt <srostedt@redhat.com>

For proper module reference counting, the file_operations that modules usemust have the "owner" field set to the module. Unfortunately, the trace eventsuse share file_operations. The same file_operations are used by all bothkernel core and all modules.

This patch makes the modules allocate their own file_operations andcopies the functions from the core kernel. This allows those fileoperations to be owned by the module.

Care is taken to free this code on module unload.

Thanks to Greg KH for reminding me that file_operations must be ownedby the module to have reference counting take place.