GithubHelp home page GithubHelp logo

jaidtw / linux-kvm-arm-instrumentation Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 791.08 MB

Instrument trap conuters to trace the number of CPU/MEM/IO trap counts, assignment of NTU Virtual Machine 2017.

License: Other

Makefile 0.28% C 95.47% Assembly 2.06% C++ 1.43% Objective-C 0.57% Shell 0.03% Perl 0.05% Awk 0.01% Python 0.01% GDB 0.01% Yacc 0.02% Lex 0.01% M4 0.01% Roff 0.01% UnrealScript 0.01% Scilab 0.01% Perl 6 0.01% Prolog 0.03%

linux-kvm-arm-instrumentation's Introduction

linux-kvm-arm-instrumentation

This is an assignment of NTU virtual machine course 2017.

Instrumentation code for trap counting are added into ARM64's KVM(kernel virtual machine) in Linux kernel 3.14. There are three type of trap counters:

  • CPU trap counter
  • IO trap counter
  • Memory trap counter

Usage

First, enable the tracing event

# echo 1 > /sys/kernel/debug/tracing/events/kvm/kvm_vm_hw2/enable

then boot the guest operating system using KVM.

Now, you may check the counters anytime from the host OS trace buffer.

# cat /sys/kernel/debug/tracing/trace

Please notice that ARMv8 has four exception levels(EL0 ~ EL4), and KVM is only capable to catch interrupt within EL2 (hypervisor mode), refer to manual for more information.

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.