Comments (6)
Please write your full configuration version OS, pintool, c++ and other?
from python_pin.
I use ubuntu 14.04 x86_x64
Linux LING 3.16.0-33-generic #44~14.04.1-Ubuntu SMP Fri Mar 13 10:33:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
pin is pin-2.14-71313-gcc.4.4.7-linux
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
And I can run your all examples for example strace.py . I only want to write some python myself.
from python_pin.
What branch did you use? Python_Pin or Python_Pin_Windows?
from python_pin.
I didn't test this out, but you should be able to increment count
in your instruction
function, without needing to insert a new call at every instruction (since you are instrumenting every instruction anyway). Not exactly a great solution, but it should stop the segfault. I'll have a closer look at some point this week.
from python_pin.
I am a new-comer as far as Pintools are concerned, but from what you are suggesting, i guess it may give erroneous results. You are suggesting to increment count in "instrumentation code", which is called only first time when an instruction is about to execute. If the same instruction is executed again, instrumentation routine will not be invoked and you may not increase the count because you have not registered any analysis callback. This is what I understood from the PIN doc. I will be happy to know if I am wrong here.
from python_pin.
@tosanjay I agree with you. so we need register a callback in function Instrument().
from python_pin.
Related Issues (9)
- Failed Build 32 Bit Ubuntu HOT 3
- Strange output from python_pin tool img_load.py
- feature request: BBL_InsertCall()
- make failing with errors, require urgent help HOT 1
- Trouble Importing Z3 in Example HOT 4
- INS_InsertCall for Reads HOT 3
- Issue executing examples/strace.py in Ubuntu 14.04 32-bit HOT 1
- Use python2.7-config in makefile.rules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python_pin.