Hi All,
I am new to PAPI. So far, I have tried to use PAPI for single-threaded applications and it has gone well so far. Now, I want to use PAPI for getting the performance counter values for a multi-threaded application. But I don't need statistics per thread, instead I need to get the statistics for the entire application. The multi-threaded application uses pthreads.
Till now, I have tried attaching to the process instead of instrumenting it, but it keeps crashing on me. I do not fork out the process, the process is already running, I get the PID of the process using the ps tool and the I tried attaching PAPI to the running application directly using this PID value. But it crashed.
So, I am thinking of instrumenting the code directly using PAPI and see if it would work. Can you give me some pointers as to how I can use PAPI to gather statistics for the entire multi-threaded process (not individual threads).
Thanks for your help.
- Prats