Hello Everyone, I'm new to Pin, and I'm trying to figure out if it's possible to maintain 2-3 different levels of instrumentation within a Pintool. Our tool...
We allow multiple versions of instrumentation of the same code. See ToolUnitTests/special.cpp. However, the ability to flip between different versions is...
Hello, I have been using version 18525 of PIN for a while succesfully running a pintool i wrote for monitoring socket calls. When i switched to version 19012 i...
We changed the way instrumentation works around syscall instructions, and you can no longer place an IPOINT_AFTER instrumentation point there. Instead, see...
Hi, I wrote a small pintool to record pthread_mutex_[un|try]lock calls, and it is deadlocking when I try to run some sample applications in it (namely...
Use PIN_CallApplicationFunction() to call the original function from the replacement routine. See ToolUnitTests/call_app*.cpp for examples. Gail ... it ... ...
Hi everybody: I've been looking for some time for some kind of decoder/translator that translates regular CISC x86 instructions into the RISC-LIKE micro- ops...
You might also look into PTLSim, which also models translating x86 CISC ops into uops (using its own internal format, which may or may not have a strong...
Do the inspection functions INS_IsStackRead() and INS_IsStackWrite() just respond on esp and ebp being part of an instruction's operand? Or do they give...
For the test purpose, I tried with the following code snippet: at first, replace a function (foo) and install analysis functions for the same "foo". int...
No. In JIT mode, you cannot safely call the original function directly from the analysis routine on IA-32 and Intel(R) 64 architectures. This is why we...
I am recently having a machine upgrade from 32b Debian (4.0r1) to 64b Debian (4.0, r3). As a result, my PIN kit doesn't work anymore, all failing at the same...
Thank you for the answer. One more question is.. In the code that I posted, a routine is replaced by RTN_ReplaceSignature() and analysis functions are...
Are you using the latest pin kit? Earlier versions of pin required a compatibility version of libm, so even if a libm.so is there, the loader may reject it. ...
Hi I have just begun using PIN and I wrote a program to view the context registers after a return instruction. Given below is the code :: #include <iostream> ...
Varun Sharma
varuns.iitkgp@...
Jul 8, 2008 10:33 am
2783
According to http://rogue.colorado.edu/Pin/docs/19012/Doc/Pin/html/group__INS__INST__API.html#g74a956a0acde197043d04f4adcde4626 IPOINT_AFTER is not valid for...
Hi Actually what I actually want to do is analyze the return values from certain function calls.So I introduce a function and use IPOINT_TAKEN_BRANCH as you...
Varun Sharma
varuns.iitkgp@...
Jul 8, 2008 5:21 pm
2785
Hi Is there a Page Table Model in PIN? I find ITLBs and DTLBs instantiated but do they actually do any address translation or they are dummies. Has anyone...
I havent used the context functionality before, but from the docs http://rogue.colorado.edu/Pin/docs/19012/Doc/Pin/html/group__CONTEXT__API.html I think you...
Hi I changed the program as :: #include <iostream> #include <fstream> #include "pin.H" // The running count of instructions is kept here // make it static to...
Varun Sharma
varuns.iitkgp@...
Jul 8, 2008 5:55 pm
2788
[snip] ... Pin instruments all of the user-level code executed, which includes a lot more than just the instructions corresponding to your C code. Most likely,...
Although your test program has just 2 functions (main() and func1()), the final executable includes many more system support functions that are automatically...
Hi Now when I try to modify the output by using PIN_SetContextRegister I observe that nothing happens The code :: #include <iostream> #include <fstream> ...
Varun Sharma
varuns.iitkgp@...
Jul 8, 2008 6:29 pm
2791
Thank you for the reply. I was using a relatively old version (15113, before the transition of defaulting compiled to .so ). When I upgraded to the latest...
Hi I am trying to instrument a function after pthread_mutex_unlock but it does not enter that function .Only IPOINT_BEFORE works for pthread mutex unlock. ...
Varun Sharma
varuns.iitkgp@...
Jul 9, 2008 4:23 pm
2793
I'm trying to determine memory footprint and working set sizes for various applications via Pin. I was wondering if anyone has written a Pintool already to do...
Hello, ... You might want to look into MICA (http://www.elis.ugent.be/~kehoste/ mica). Not sure if it completely fits your needs, but it might come in close......
I'm not sure you want to do this with Pin anyway. Because Pin resides in the same memory space as the application, the size of its code and data would be...