Skip to content
Snippets Groups Projects
To build OSv
============

2) make sure all git submodules are uptodate
   -----------------------------------------

    git submodule update --init

1) build the specially patched libunwind
   -------------------------------------

    cd external/libunwind
    autoreconf -i
    sh config.sh
    make
    cp ./src/.libs/libunwind.a ../..
    cd ../..

3) build the glibc test suite

   cd external/glibc-testsuite
   make
   cd ../..

3) build osv
   ---------

    make

To run OSv
==========

1) start the binary in qemu
   ------------------------

    sh scripts/run.sh

2) connect a debugger
   ---------------------

    # gdb build/debug/loader.elf
    (gdb) connect
    (gdb) osv syms
    (gdb) bt

 Tracing
 =======
 Uncomment the "tracing-flags =" line in build.mak, and rebuild.
 Run the program until it aborts, then in gdb:

 osv syms
 set pagination off
 set logging on
 osv trace

 gdb.txt will contain the the trace.

Running java benchmarks
=======================

After running "make", do
    scripts/imgedit.py setargs build/debug/loader.img java.so -jar bench.jar

and then run normally (sh scripts/run.sh).