Giter VIP home page Giter VIP logo

bincfp's Introduction

bincfp

Efficient Multi-threaded Binary Code Control Flow Profiling Pintool

BinCFP is an efficient multi-threaded binary code control flow profiling tool by taking advantage of pervasive multicore platforms. BinCFP relies on dynamic binary instrumentation to work with the unmodified binary code. The key of BinCFP is a multi-threaded fast buffering scheme that supports processing trace buffers asynchronously. To achieve better performance gains, we also apply a set of optimizations to reduce control flow profile size and instrumentation overhead. Our design enables the complete dynamic control flow collection for an obfuscated binary execution. Please check our SCAM 2016 paper for more information.

"BinCFP: Efficient Multi-threaded Binary Code Control Flow Profiling", by Jiang Ming and Dinghao Wu. In Proceedings of the 16th IEEE International Working Conference on Source Code Analysis and Manipulation, Engineering Track, Raleigh, NC, October 2-3, 2016.

Usage:

  1. Put bincfp folder to pin-2.12/source/tools/.

  2. cd pin-2.12/source/tools/bincfp & make (please check Intel Pin manual to find out how to install Pintool)

  3. bincfp folder contains mulitple trace porfiling pintools. To get a listing of the available command line options for each bincfp pintool: pin-2.12/pin -t pin-2.12/source/tools/bincfp/obj-ia32/bbdep_threadpool2.so -help -- /bin/ls

  4. Common options:

    -num_buffers_per_app_thread <num> : number of buffers to allocate per application thread, default 3

    -num_pages_in_buffer <num> : number of (4096byte) pages allocated in each buffer, default 64M

    -process_buffs <0 or 1> : specify 0 to disable processing of the buffers, default 1

    -num_processing_threads <num> : number of internal-tool buffer processing threads to create, default 3

    -num_bbs_in_trace <num> : number of basic blocks per trace, default 3

    -filter_no_shared_libs : filter out shared library code

  5. Example:

    pin-2.12/pin -t pin-2.12/source/tools/bincfp/obj-ia32/bbdep_threadpool2.so -filter_no_shared_libs -num_pages_in_buffer 32768 -num_processing_threads 1 -num_buffers_per_app_thread 2 -- ./gzip readme_10m

bincfp's People

Contributors

s3team avatar

Watchers

 avatar  avatar

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.