Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Latest commit

 

History

History
34 lines (24 loc) · 986 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 986 Bytes

container-image-template

Build Status

SystemTap running in a container.

Usage

You can use atomic command to run systemtap container:

$ atomic run modularitycontainers/systemtap

Once you are in the shell, you can try some simple systemtap scripts:

  1. "hello world" with systemtap:
$ stap -e 'probe begin { println("hello world"); }'
hello world
^C
  1. script to print backtrace from a selected kernel function:
[root@3fe0ab87451e /]# stap -e 'probe kernel.function("generic_make_request") { prinbacktrace() }'
 0xffffffff9b3dd2f0 : generic_make_request+0x0/0x2d0 [kernel]
 0x0 (inexact)
 0xffffffff9b3dd2f0 : generic_make_request+0x0/0x2d0 [kernel]
 0x0 (inexact)

For complete guide to this container, please see the help page.