[Intel-gfx] [PATCH] lib/debugobjects: Export for use in modules

Chris Wilson chris at chris-wilson.co.uk
Wed Nov 23 07:37:53 UTC 2016


On Tue, Nov 22, 2016 at 04:53:09PM -0800, Andrew Morton wrote:
> On Tue, 22 Nov 2016 14:30:39 +0000 Chris Wilson <chris at chris-wilson.co.uk> wrote:
> 
> > Drivers, or other modules, that use a mixture of objects (especially
> > objects embedded within other objects) would like to take advantage of
> > the debugobjects facilities to help catch misuse. Currently, the
> > debugobjects interface is only available to builtin drivers and requires
> > a set of EXPORT_SYMBOL_GPL for use by modules.
> 
> You didn't tell me this (and you should have!) but I'm going to assume
> that this patch is needed for current development so I have queued it for
> inclusion in 4.9-rcX.  As a general make-life-easier-for-everyone thing.

A bit too obtuse, sorry. Indeed I am using the debugobjects in i915.ko
to try and catch some invalid operations on embedded objects. The
problem currently only presents itself across module unload so forcing
i915 to be builtin is not an option.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list