From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 09/18/2001 11:38:18
Hello Andreas !
> I tried your method, but I still get the same error message:
>
> Purify/PureCoverage-rtlib: Error: Un-instrumented object file
> </home/andek/source/purifytest/pureamalloc.so> detected.
>
> So, it still looks as if Purify complains about not knowing anything
> about pureamalloc. It hasn't been instrumented by Purify.
>
> It would be nice if you could show every step in your method, from
> compiling your performer app to making the pureamalloc and running
> purify on your app.
Here is the complete sequence of commands:
% cd perfly
% make
... Add loader reference on the link line (e.g. -lpfflt). Otherwise,
... you won't be able to load any models.
% cat > pureamalloc.c
#include <stdlib.h>
void *amalloc(int n) {return malloc(n);}
void afree(void*p) {free(p);}
void *arealloc(void*p, int n) {return realloc(p, n);}
^D
% cc -c pureamalloc.c
% ld pureamalloc.o -shared -o pureamalloc.so
% setenv _RLDN32_LIST `pwd`/pureamalloc.so:DEFAULT
% purify perfly
% perfly.pure -m0 -W500 esprit.flt
I just ran this on an 4xR10000 RE2, with:
IRIX 6.5.12m
Purify 4.1 IRIX6
Does this work for you ?
-yair
--
\_________ \_____ \__ \__ \_____ Yair Kurzion
\_________ \_____ \__ \__ \_____ yair++at++sgi.com
\__ \__ \____\__ \__ http://reality.sgi.com/yair
\__ \__ \__ Work: (650) 933-6502
\__ \__ \__ Home: (408) 226-9771
\__ \__ \__
This archive was generated by hypermail 2b29 : Tue Sep 18 2001 - 11:38:21 PDT