Hi all Thanks for all the help given. I now looking into PAPI and hopes to use it with PIN. Once again, thanks for all the help rendered. best rgds and have a...
Hi, I have been trying to attach pin on running process. And I find it work pretty well with single thread application. However, I can not make it work on the...
Dear Pinheads: I would like to use Pin for sampling program state such as whether a branch was taken or not, etc. My motivation for sampling state rather then...
Robert, There is an example in our pin kit that demonstrates how one can use the conditional instrumentation to do IP-sampling: ManualExamples/isampling,C You...
Hello Pin Developers, I am getting an error replacing routines with arbitrary functions using Pin-2.0 on IA-32E platform running Linux. I am using gcc and g++...
Hi, I hope someone can help me. In some programs I get this message from pin: Pin child/app terminated abnormally due to signal 25. What does this mean ? What...
Hi Salvador, I haven't confirmed this lately, but a couple years ago, you could get around the 2 GB file size limit by compiling your Pintool (or any program)...
Hi, thank you all, you were right, I was hitting the file size limit. My work around is, creating a fifo with the same file name and then compressing it in...
I am trying to intrument some code that runs under the Java JVM. However, I find that my Fini function is not invoked at the end of execution - I have tested...
Dan Ramey
dbr1211@...
Apr 9, 2006 5:12 pm
769
Hi, How do I get the thread id which is given by the app. For example I have the following code void * hello1(void * arg) { printf ("Inside thread %u\n",...
Has anyone had any luck running pin on a Dual-Core Opteron? (Mine appears to hang with doing a 'pin -- /bin/ls'.) I read that an Opteron 'port' might be...
You need to get a function pointer for the pthread_self function in the application and call it. Look at Probes/malloctrace2.C. Use RTN_FindByName to get an...
... I guess it will be a better idea to get the function pointer pthread_create. but i not able to get the pointer to pthread_create. However I am able to find...
Hi, I am trying to instrument a program as a way to learn PIN. I am having trouble trying to extract this type of information. Assume program, if(p>1 && q==0){...
... When I got a list of all the Rountine names I found the following which was close to pthread_create pthread_create@@GLIBC_2.1 pthread_create@GLIBC_2.0 ...
Replacing pthread_create will not work. Pin needs to observe all the thread creates and when you replace pthread_create, the instrumentation engine will not...
Pin lets you instrument the program at the instruction level. It does not provide access to the address of data symbols etc. You might find a source...
... It is not neccessary for the application to call pthread_self(), I just used it as an example to show the parent thread. In such case how do I get the...
IARG_THREAD_ID is the id of the application thread and not a pin thread. It can be used to do the analysis differently on a per-thread basis. ... -- &veej....
... Or, if you need something externally visible, try the system call gettid(). It isn't generally defined by default; the magic to include it is: #include...
Joseph Tucek
tucek@...
Apr 13, 2006 5:45 pm
782
Good afternoon! I am relatively new to Pin. I am using Pin to instrument some C++ programs; I wish to instrument and measure only the application code; not...
Dan Ramey
dbr1211@...
Apr 15, 2006 7:53 pm
783
For every trace pin gives you a handle to via PIN_AddTraceInstrumentFunction( ): VOID Trace(TRACE trace, VOID *v) { /* Looking for shared libraries */ if...
Very much appreciate. Had overlooked that function. ... From: pinheads@yahoogroups.com [mailto:pinheads@yahoogroups.com] On Behalf Of Vijay J Sent: Saturday,...
Dan Ramey
dbr1211@...
Apr 15, 2006 9:10 pm
785
Good afternoon, all! I am still relatively new to Pin. Am successfully using Pin to instrument C++ programs, but am less successful with Java programs - My...
Dan Ramey
dbr1211@...
Apr 16, 2006 6:59 pm
786
Hi all, I'm trying to use the gcc 4.0 PIN kit (got gcc 4.0.2 installed here) but can't seem to make any tool compile, no matter what I do. For example, when...