Git Product home page Git Product logo

qemu-1's Introduction

Overview

Qemu tracer - tracer based on qemu project. It executes binary executable and saves trace data using Protocol Buffer format. The contents of the trace data defined in bap-traces project.

Preparing to build

Note: building instructions assume that you're using Ubuntu, but it may work on other systems, that uses apt-get.

Before build qemu tracer, you need to install following packages:

  • qemu build dependencies
  • autoconf, libtool, protobuf-c-compiler
  • piqi library

To install qemu build dependencies, use the following command

$ sudo apt-get --no-install-recommends -y build-dep qemu

To install autoconf, libtool, protobuf-c-compiler, use the following command

$ sudo apt-get autoconf libtool protobuf-c-compiler

To install piqi library with opam, use the following command

$ opam install piqi

Build process

Download bap-traces with following command

$ git clone https://github.com/BinaryAnalysisPlatform/bap-traces.git

Download qemu tracer with following command

$ git clone clone [email protected]:BinaryAnalysisPlatform/qemu.git -b tracewrap

Change folder to qemu and build tracer with command

$ ./configure --prefix=$HOME --with-tracewrap=`realpath ../bap-traces` \
--extra-ldflags=-Lprotobuf --target-list=arm-linux-user
$ make -C protobuf
$ make
$ make install

Usage

To run executable exec and to save the trace data to exec.trace, use

$ qemu-arm -tracefile exec.trace exec

Hints: use option -L to set the elf interpreter prefix to 'path'. Use fetchlibs.sh to download arm libraries.

Notes

Only ARM target is supported in this branch.

qemu-1's People

Contributors

aliguori avatar blueswirl avatar bonzini avatar aurel32 avatar kraxel avatar afaerber avatar pm215 avatar rth7680 avatar kevmw avatar jan-kiszka avatar agraf avatar stweil avatar balrog-kun avatar mstsirkin avatar avikivity avatar edgarigl avatar pete128 avatar jwrdegoede avatar dgibson avatar stefanharh avatar ehabkost avatar markmc avatar xanclic avatar jcmvbkbc avatar awilliam avatar hpoussin avatar aik avatar kvaneesh avatar mdroth avatar plieven avatar

Watchers

James Cloos avatar  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.