systemtap #5

Description

https://wiki.ubuntu.com/Kernel/Systemtap

Systemtap allows you harness both static and dynamic instrumentation without
recompiling your code. It can perform simple things like dynamically inserting
a printk anywhere, or changing a critical data structure of the kernel (guru mode).
While Systemtap has many safeguards in place to sandbox dangerous, system crashing
actions, it's not infallible. Proceed at your own risk.


Overview

http://sourceware.org/systemtap/

This charm setups the entire environment for the purposes
of learning and hacking systemtap.

Installation

juju deploy cs:~peter-petrakis/precise/systemtap

Usage

$ juju ssh systemtap/0

sudo stap -l 'module("serio_raw").function("*")'

TODO

  • make a systemtap client sub and a systemtap-server