Code Monkey home page Code Monkey logo

aarch64-valgrind-on-qemu's Introduction

AArch64 Valgrind on QEMU

This script will download and build a minimal AArch64 Linux, BusyBox, QEMU and Valgrind. You will need roughly 10 GB of disk space.

Intended usage: Cache access analysis for AArch64 binaries.

Build

On Ubuntu 18.04.1, just run:

./build.sh

You will probably need to update the toolchain paths:

  • CROSS_COMPILE_ELF
  • CROSS_COMPILE_LINUX

There may be some dependency checks missing. If you find one, please create a PR or write an issue.

Run

The build.sh script will print the proposed command at the end.

The folder exchange will be shared between the host FS and the QEMU guest (/mnt).

Details

The script is supposed to exit if any of the commands fail and builds all four targets in the order listed below (Versions).

  • Linux 5.6.16: Minimal build for AArch64. The shared folder is using Plan 9 folder sharing over Virtio.
  • Busybox 1.31.1: Standard build for AArch64
  • QEMU 5.0.0: Build for AArch64 with support for virtio and kvm
  • Valgrind 3.16.0: Standard build for AArch64. Note the numerous "Implementation tidying-up/TODO notes" in README.aarch64.

Analysis of Cache Accesses Using Cachegrind

valgrind --tool=cachegrind ./my_program

Documentation on Cachegrind can be found here:

The cache layout can be set using:

  • --I1=<size>,<associativity>,<line size>
  • --D1=<size>,<associativity>,<line size>
  • --LL=<size>,<associativity>,<line size>

aarch64-valgrind-on-qemu's People

Contributors

gschwaer avatar

Watchers

 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.