systemtap_with_examples
  • Introduction
  • Installation
    • Build systap from source
    • Build package from source
  • Systemtap Language
    • Syntax
    • Variables
    • Control Flow
    • Function & Macro
    • TypeCase
    • Guru Mode
    • Probe Point
    • Predefined Functions
  • Examples
    • Call Graph
    • Dump Stack Trace
    • Duration
    • CPU Performance
    • Network DEV Analysis
    • KVM MMU
  • Reference
Powered by GitBook
On this page
  • Download Source
  • Configure
  • Build & Install

Was this helpful?

  1. Installation

Build systap from source

In case the kernel and systemtap doesn't match, you need to download the source code and build from source.

Download Source

To build systemtap, we need to download systemtap and elfutils.

git clone git://sourceware.org/git/elfutils.git

git clone git://sourceware.org/git/systemtap.git

Configure

$cd elfutils
$autoreconf -i


$cd ../systemtap
$./configure --with-elfutils=../elfutils

Build & Install

$make
$sudo make install

If succeed, you would see stap under systemtap directory.

PreviousInstallationNextBuild package from source

Last updated 6 years ago

Was this helpful?