Re: [PATCH 07/20] lttng wrappers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 28, 2011 at 09:22:13PM -0500, Mathieu Desnoyers wrote:
> * Greg KH (greg@xxxxxxxxx) wrote:
> > On Mon, Nov 28, 2011 at 07:42:14AM -0500, Mathieu Desnoyers wrote:
> > > Implement wrappers for compatibility with older kernel versions and
> > > kernels with had the libringbuffer (old) patchset applied.
> > > 
> > > Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>
> > 
> > Are these going to still be needed anymore, now that this code is in the
> > kernel tree?
> 
> Hrm, this patch changelog could have been a bit more explicit. In
> addition to allow compatibility for older kernel versions, some wrappers
> deal with missing EXPORT_SYMBOL_GPL() from the core kernel.
> 
> The TODO file details what should be done to eliminate those wrappers:
> 
>         2) Cleanup wrappers. The drivers/staging/lttng/wrapper directory
>            contains various wrapper headers that use kallsyms lookups to
>            work around some missing EXPORT_SYMBOL_GPL() in the mainline
>            kernel. Ideally, those few symbols should become exported to
>            modules by the kernel.

Ugh, that's crazy, but I understand.

> So hopefully we can look into adding these missing symbols to the core
> kernel. This would be much nicer, but this does not depend only on the
> lttng driver: it's up to the kernel to export those.
> 
> Another option would be to create a CONFIG bool (y/n) object that wraps
> the missing core kernel symbols. However, this would require this
> support option to be selected at kernel build time in order to allow
> loading the lttng modules, and I doubt it's a good practice for a
> driver.

Yes, that's not good, we can just export the symbols as needed now that
we have an in-kernel user.

> As for those wrappers that deal more specifically with compatibility
> with older kernels, those aren't needed anymore, of course.

Great, please send patches to remove them before I get to it :)

thanks,

greg k-h
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux