Hi,
On Tue, 2020-05-12 at 10:36 +0200, Timur Kristóf wrote:
> On Mon, 2020-05-11 at 20:19 +0000, Tamminen, Eero T wrote:
> > I've done a lot of resource usage analysis at former job[1], but
> > I've
> > never had needed anything like that. malloc etc all reside in a
> > separate shared library from Mesa, so calls to them always cross
> > dynamic library boundary and therefore all of them can be caught
> > with
> > the dynamic linker features (LD_PRELOAD, LD_AUDIT...).
>
> I think he meant something like GCC's --wrap option, and wasn't
> talking
> about the dynamic linker.
Using it requires relinking the SW to use, so I would use it only on
some embedded platform which dynamic linker doesn't support better
interception methods.
(Note: "--wrap" isn't GCC options, but one for binutils ld.)
- Eero
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev