Coder Social home page Coder Social logo

use python-pin error about python_pin HOT 6 OPEN

blankwall avatar blankwall commented on June 27, 2024
use python-pin error

from python_pin.

Comments (6)

Kosmonit avatar Kosmonit commented on June 27, 2024

Please write your full configuration version OS, pintool, c++ and other?

from python_pin.

ling245100108 avatar ling245100108 commented on June 27, 2024

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.

Kosmonit avatar Kosmonit commented on June 27, 2024

What branch did you use? Python_Pin or Python_Pin_Windows?

from python_pin.

ancat avatar ancat commented on June 27, 2024

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.

tosanjay avatar tosanjay commented on June 27, 2024

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.

0xling avatar 0xling commented on June 27, 2024

@tosanjay I agree with you. so we need register a callback in function Instrument().

from python_pin.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.