Questions tagged [intel-pin]

Pin is a dynamic binary instrumentation framework for the IA-32 and x86-64 instruction-set architectures that enables the creation of dynamic program analysis tools.

"Pin is a dynamic binary instrumentation framework for the IA-32 and x86-64 instruction-set architectures that enables the creation of dynamic program analysis tools."

Pin resources:

237 questions
1
vote
1 answer

Pin Tool - intercepting an instruction by its address to dump the registers value

I'm trying to dump the register values at a given location in a binary. I know the correct address by reverse engineering, but I fail to use the API of Pin tool to indicate that I would like to instrument that given instruction. Is there a way to…
Jämes
  • 6,945
  • 4
  • 40
  • 56
1
vote
1 answer

Intel Pin tools 32-bit - ProcessSectionHeaders: 560: assertion failed

I'm trying to run the ManualExamples of the latest Pin tool from Intel (3.7-97619) on Kali 32-bit (Linux kali32 4.19.0-kali4-686-pae #1 SMP Debian 4.19.28-2kali1 (2019-03-18) i686 GNU/Linux). I could compile the examples found in…
Jämes
  • 6,945
  • 4
  • 40
  • 56
1
vote
1 answer

How to use intel pin tools on applications?

I am trying to execute pin tools on my own executables. I am asked to use cache simulator (allcache) in order to collect miss rates. I'm struggling with the parameters and I faced with a lot of errors actually. The operating system is Win10-64 Bit…
C. Erturk
  • 11
  • 1
1
vote
0 answers

intel pin: detection of `malloc` two times, when used with a default tool

I used a pin tool posted on intel's official Manual: #include "pin.H" #include #include /* ===================================================================== */ /* Names of malloc and free */ /*…
R4444
  • 2,016
  • 2
  • 19
  • 30
1
vote
1 answer

Intel PIN: print backtrace when segfault happens in tool

I'm developing a tool for Intel PIN. Somewhere in the runtime, it gives me the below error. I want to know if there is a way to tell PIN to print the backtrace or let me handle the segfault in the tool itself. I'm running my tool with MPI and it…
1
vote
0 answers

Accessing a program's global variables with Intel Pin Tool

I have declared an test.cpp: volatile int var; and attempt to use this via extern in my pintool. However each time dlopen fails to find the variable. I have tried compiling test.cpp with -rdynamic. Is there any way for the program and the pin tool…
1
vote
2 answers

Printing program and function name of each instruction with Pin tool

I'm new to writing a pin tool to instrument the program. Currently, I'm kind of stuck with printing out the program name (image? I would say) and the function that the instruction belongs to. For example, I I have a program foo.cpp and function name…
HJL
  • 127
  • 6
1
vote
0 answers

Intel Pin: function not being analyzed depending on symbols initialization

While instrumenting some code with Intel Pin I got a strange behavior that I isolated in the code below. Basically, in the trace of my Pin Tool I noticed that some parts were missing and found that a call to…
AntiClimacus
  • 1,380
  • 7
  • 22
1
vote
1 answer

Intel Pin Tool : Not recognizing user defined functions with icc

I have successfully built and using Intel Pin Tool 3.7. I am using the insmix.so tool of the Insmix directory for finding the instruction mix of a user defined function (function name is "myfunc"). What I observe is: when I compile my test program…
1
vote
1 answer

Pin process crashes before opening a socket for gdb

When I run Intel pin with my custom pin-tool, for some reason it crashes on a segfault, before even starting the application under test. It happens for one application, even though, the same setup works for another application. Here is an example of…
Necto
  • 2,594
  • 1
  • 20
  • 45
1
vote
0 answers

Use Intel Pin to instrument Python scripts

I need to instrument a Python script using Intel Pin for ChampSim simulator. The problem is, whenever I run the tool, the script does not seem to run as nothing is printed. Moreover, no matter how long/complex the script is, the trace always ends up…
sacusa
  • 11
  • 1
1
vote
1 answer

Intel Pin: correctly continuing execution after RECEIVED_ACCESS_FAULT exception

In one of my analysis routines I received as input a void* pointer, which may or not may be a "good" pointer to a string. To check the case of a bad pointer I use the IsBadPointer variant proposed here Most efficient replacement for…
Simus
  • 319
  • 2
  • 18
1
vote
0 answers

Difference in the first memory address of malloc acquired by Intel-Pin

I got the return value of malloc using Intel - Pin, but the returned value obtained is different from the actual address. What is the cause?
pinenight
  • 15
  • 5
1
vote
1 answer

How to Terminate PINTool after specified amount of time

My requirement is to run Intel PIN tool for specified amount of time lets say around 1 minute and then terminate. For example: I want to run notepad.exe for 1 minute under PIN. After 1 minute do post processing and close the log files properly and…
Naveen TG
  • 11
  • 2
1
vote
1 answer

Intel Pin: Attaching to an existing process using the Pin API

I'm doing a bit of research on Intel Pin. I'm looking to see if there is a way of attaching a Pin tool to an existing process using the Pin API. I can see there is a way of running the pin executable on an already running process using pin.exe -pid…
ben_re
  • 518
  • 2
  • 12