Git Product home page Git Product logo

mininet-tracing's Introduction

~~~~~
NEW!!
~~~~~

Improved tracing
================

From the command line
---------------------

To enable tracing, follow the steps below to add & enable tracing support.

To add Mininet-specific scheduler tracing:

$ cd kmod; make; insmod ./mntracer.ko

- Does not pollute syslog with printk messages.

To add dequeue packet scheduler tracing:

$ cd htb; make; insmod sch_htb.ko

To check if tracing is enabled:

$ cat /sys/kernel/debug/tracing/current_tracer

If it's nop, it's fine.  Our custom tracing will print information
  regardless of any other tracing that's active.

To check for any available tracing events:

$ grep mininet /sys/kernel/debug/tracing/available_events
mininet:mn_htb
mininet:mn_sched_switch

To start tracing:
$ cd /sys/kernel/debug/tracing
$ echo 1 > events/mininet/enable
$ cat trace_pipe > /tmp/trace-output

This last command will block.

To stop tracing
$ echo 0 > events/mininet/enable


Bash helper functions
---------------------

Here are bash helper functions that you can add to mininet experiment
shell scripts.  Make sure you call the functions!

These are available in trace.sh.  Include by issuing "source /path/to/trace.sh"

mininet-tracing's People

Contributors

jvimal 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.