On Mon, 2002-02-04 at 19:43, Gareth Hughes wrote:

> >      Do any know how to build Xserver and DRI that can see profiling
> >  data through  gprof?? I've see there is an option in host.def(in )
> >  DRI cvs):
> > 
> > /* To do profiling of the dynamically loaded 'xyz_dri.so' object, turn
> >  * this on.
> >  * Use 'xc/lib/GL/makeprofile.sh' to make it work.
> >  */
> > /* #define GlxSoProf YES */
> > 
> > #ifdef GlxSoProf
> > #  undef DefaultCCOptions
> > #  define DefaultCCOptions -ansi GccWarningOptions -pipe -g -p
> > #endif
> > 
> >    but if I enable #define GlxSoProf YES, then try to build Xserver
> >  (after make lowpc.o, highpc.o by hand).When I start Xserver 
> > , it cause
> >  unsolved symbol and core dump.
> > 
> > Symbol mcount from modules /usr/X11R6/lib/modules/fonts/libbitmap.a is
> > unresolved!
> > 
> >    Do any one has ever try this??  Do any one can tell me how to prof
> > xxx_dri.so ??
> 
> You can only build what's inside xc/lib/GL with GlxSoProf set to YES.
> What you'll need to do is build the tree as usual, then do the
> following:
> 
>       <edit host.def to set GlxSoProf>
>       cd xc/lib/GL
>       make <insert command to clean everying -- clobber???>
>       make Makefile
>       make Makefiles
>       make
>       make install

Shouldn't it work for the whole tree if we provided a wrapper for mcount
and whatever for the modules?


-- 
Earthling Michel D�nzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast

_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to