Hi, I'm having a problem with constantly increasing memory usage when running a non-trivial Pin tool (Sniper, our multi-core architectural simulator) on a...
7534
Milian Wolff
milianwolff
May 9, 2012 5:50 pm
Hey there! Just today I got to know PIN and it is looking very promising indeed. To get my feet wet, I tried to run the malloctrace2 example probe tool, yet I...
7535
Milian Wolff
milianwolff
May 9, 2012 5:55 pm
Hey there, this might be a no-brainer but I couldn't find a clear answer: Is pin free for commercial use? In the license I don't really find anything that says...
7536
Cohn, Robert S
rscohn2000
May 9, 2012 6:59 pm
Pin is okay for commercial use. I updated the wiki. The main restriction in the license is that you cannot redistribute the Pin kit or a pintool that is linked...
7537
Devor, Tevi
tevi.devor
May 10, 2012 1:41 pm
Did you read about the Pin Probe runtime in the manual? ... From: pinheads@yahoogroups.com [mailto:pinheads@yahoogroups.com] On Behalf Of Milian Wolff Sent:...
7538
tevi.devor
May 10, 2012 1:44 pm
Try adding -slow_asserts to the Pin command line, this checks for memory leaks in Pin, among other things. Note things are expected to run quite a bit slower...
7540
Wim Heirman
wim_heirman
May 10, 2012 3:25 pm
Hi Tevi, I added -slow_asserts, if anything, it looks like memory consumption now goes up even faster. No asserts got triggered in the time until I ran out of...
7541
moonunittt
May 11, 2012 1:26 pm
Tevi, I've been looking into this issue a bit and think that I might have an example that when run, causes Pin to continue to request additional memory from...
7542
Milian Wolff
milianwolff
May 12, 2012 4:11 pm
... Hey there, yes - to the best of my knowledge I did read it. I did download the runtime libs and untarred them into the correct places as far as I can see....
7543
nafta452
May 13, 2012 7:18 am
Hi, You are compiling with gcc 4.6.1. This compiler requires libstdc++ 11 which requires libc 2.4. Unfortunately, probe mode can be run with libc versions up...
7545
nafta452
May 14, 2012 6:36 am
Hi, 1. Please post the exact command line that you're using to invoke Pin. 2. Have you modified the pin script? 3. Have you changed the kit's directory...
7546
tevi.devor
May 14, 2012 12:35 pm
Hi Thanks for this report. I have reproduced the unlimited memory growth (on Windows). We will look into this....
7547
ttang1986
May 14, 2012 1:39 pm
hi all, I instrument some function before and after each instruction. But an instruction39;s IPOINT_AFTER function is not called. my reduced code: if (...
7548
Cownie, James H
jim.cownie
May 14, 2012 1:49 pm
You can't rely on all instructions that start to execute appearing to finish :-). A signal can come in, in which case from Pin's point of view control flow...
7549
tevi.devor
May 14, 2012 2:18 pm
Which Pin kit did you download and use for this? Did you find that the IPOINT_AFTER is never called for any instruction, or is there some particular...
7550
Gene Wagenbreth
gwagenbreth
May 15, 2012 12:58 am
can pin count floating point instructions ? can pin count integer instructions ? I already have it counting memory reads and writes. Thank you Gene W...
7551
ttang1986
May 15, 2012 1:32 am
The version of my downloaded pin is [49306]--Apr 08, 2012 I analyze a multi-thread programs with pin on a multicore process. I want to keep atomic between my...
7552
Gabriel Marin
mgabi99
May 15, 2012 2:09 am
Do you use a similar code to add instrumentation for writes? if (INS_IsMemoryWrite(ins) && INS_HasFallThrough(ins)) { ... } The instruction quoted by you...
7553
ttang1986
May 15, 2012 3:27 am
Yes, a similar code is used for write, as you say. I modified my code, only for single read or single write. It executes successful. But how can I provide...
7554
Gabriel Marin
mgabi99
May 15, 2012 3:55 am
I do not know, depends on what type of analysis you want to do, and what level of atomicity you desire. If atomicity at instruction level is sufficient, even...
7555
Hanfeng Qin
hanfeng_hust
May 15, 2012 1:29 pm
Hi all, I want to calculate the instruction counts of critical sections in multithreaded programs written in pthread style. I instrument the whole image and...
7556
Dan Upton
draqza.rm
May 15, 2012 3:35 pm
I don't think the way you're approaching it in your sample code is going to work. If you think about the flow of a single thread in this case, after ...
7558
hanfeng_hust
May 16, 2012 3:04 am
Hi Dan, Thanks for your tips. The approach work for most cases except for nest-lock scenario. Considering the following code segments, pthread_mutex_lock...
7559
Dan Upton
draqza.rm
May 16, 2012 3:20 am
Your analysis function can access the parameters of the function you're instrumenting -- see IARG_FUNCARG_* and related examples. So rather than just checking...
7560
Cownie, James H
jim.cownie
May 16, 2012 9:09 am
You can certainly write Pin tools to count floating point or integer instructions. Take a look at the "*mix*" tools that are in the Pin examples. For...
7561
Milian Wolff
milianwolff
May 16, 2012 9:13 am
Hey all, I played around with PinTool and find it very nice to use. The big downside I found is the lacking ability to get a backtrace... The Maid example tool...
7562
Milian Wolff
milianwolff
May 16, 2012 9:43 am
... note: looking a bit more at the code, I notice that I can greatly improve it's performance by getting rid of _enter_opaque_lib_entry and related code - it ...
7563
Xin Tong
xeroxtime1
May 18, 2012 3:31 am
does PIN has a state-of-the-art indirect branch predictor (i.e. TAGE predictor). I do not see any branch predictor under pin/source/ Thanks Xin...
7564
Cypher Z
albertzh13
May 18, 2012 3:40 am
You can hook up TAGE code with pin. It's not as laborious as you may see it. Remember, the TAGE code published by CBP-3 is for single threaded workload, you...
7565
wangfuwei_bupt
May 19, 2012 5:41 am
Hello, I'm a new learner of Pin. I'm trying to use Pin to build a taint-data tracing frame, which requires recording all instructions executed. It's not...