The runtime libraries (glibc) do a lot of bookkeeping on program start-up and shut-down. If you are interested in the details, you should download the sources...
Dear all , Could you give any suggestions/hints on how to detect memory leakage in a pintool. I know Valgrind can help to check the memory leakage in common...
Hi everyone, I am trying to use PIN to profile the apache http server. What I did is: $PINPATH/Bin/pin -mt -t inscount2_mt -- apache_path/httpd The pintool...
... If you want to detect leaks in a pintool, surely you should be running the pintool under Valgrind? Nick...
Nicholas Nethercote
njn@...
Apr 2, 2007 11:30 pm
1491
I have also tried -pid option for the apache server: $PIN_PATH/pin -mt -pid 21612 -t ./inscount2_mt Pin gave out the following error: E:Writepid failed:...
The problem is, how I shall make the pintool run inside Valgrind. The naive command line I thought about is: $pin_path/Bin/pin -t valgrind inscount2_mt...
I think you'll find its very difficult to intermix pin and valgrind. Both are dynamic translators. Somehow you'd have to get valgrind to execute the...
... That would run Valgrind under Pin. Try something like: valgrind pin -t inscount2_mt tests/simp1 ... If you pass the --smc-check=all option to Valgrind it...
Nicholas Nethercote
njn@...
Apr 3, 2007 3:08 am
1495
Make sure you have write permission to the directory where your output trace file is written. Also, a heads-up on Apache: you'll probably want to either 1)...
Hi, Thanks a lot for the reply! I tried the command: valgrind Bin/pin -t inscount2_mt -- tests/simp1 Valgrind gives out the output as follows. Valgrind is...
Hi Mike, Thanks a lot! I am still pretty new to PIN. Could you explain this a little bit more? Right now I am just trying to count the instructions that each...
... There sure are a lot of these. Looks like Pin is incorrectly using 'new[]' to allocate some memory but 'delete' (rather than 'delete[]') to deallocate it....
Nicholas Nethercote
njn@...
Apr 3, 2007 9:02 am
1499
Is "$apach_path/bin/httpd" the actual server, or is it a script that exec's the server? If you run Pin on a process that later overlays itself with exec(),...
It appears that the application is multi-threaded, but you did not specify the -mt switch to Pin. Do you get the same error without Valgrind? If "tests/simp1"...
Hi Mike, Thanks a lot for the suggestions! I am doing a simple experiment which counts the instructions that each apache thread executes by using the pintool...
I believe your problem is that you're not seeing the stdout/stderr of the child Apache processes. Apache forks child processes and I believe the output won't...
Hi Greg, I checked $apache_path/bin/httpd$, it is a binary executable. It forks a few other processes. Is this the reason that Pin does not give out any...
No, that is not the reason. Pin should follow the forks, so each forked process will also run with Pin and your tool. Mike's suggestion that you may be...
We have released Pin version 11087 kits today for all platforms except Mac and ARM. There are significant improvements in Pin for Windows, including: * Robust...
Hello, For those of you working with SPEC2006 and SPEC2000, the link below may be useful in understanding the memory behavior of workloads belonging to both ...
Collin, Pin needs to allocate some memory contiguously, but the application has already allocated the chunk it wants. I don't know how to work around it. Pin2...
Ok, I guess I need to convert to Pin-2. But... IPF Pin-2 appears to have a problem w/ my app (hycom, a fortran90 code) though other smaller multi-threaded...
Pin thinks that the application is doing an indirect branch to address 0. Is this something I can run on my own machine? ________________________________ From:...
Sure it's open source, that'd be great. The smallest data files I have are still fairly large, so I've put a tarball w/ exec and data files on the ORNL ftp...
... Hmm, good question, I don't know. ... By default it doesn't trace into children after an exec. But it does if you specify --trace-children=yes. I think...
Nicholas Nethercote
njn@...
Apr 4, 2007 10:17 pm
1514
Hi Greg, Thanks a lot for helping me clear the doubt! I forgot to add the "-mt" option. Here is the output. It seems that there are still mismatched...
Hi Mike, Thanks a lot for your help! After modifiying the code to write output to a file, I can observe multiple threads with Pin. Another problem I...
Hi everyone, What I am trying to do is to avoid instrumenting the library code. What I did is as follows: VOID Instruction(INS ins, VOID *v) { .... don...