Linux introspection and SystemTap: An interface and language for dynamic kernel analysis | Linux Today

Linux introspection and SystemTap: An interface and language for dynamic kernel analysis

Written By
Web Webster
Web Webster
Nov 11, 2009

“SystemTap is a dynamic method of monitoring and tracing the
operation of a running Linux kernel. The key word there is dynamic,
because instead of building a special kernel with instrumentation,
SystemTap allows you to install that instrumentation dynamically at
run time. It does this with an application programming interface
(API) called Kprobes, which this article explores. Let’s begin with
an exploration of some of the earlier kernel tracing approaches,
then dig into the SystemTap architecture and its use.

“Kernel tracing

“SystemTap is similar to an older technology called DTrace,
which originated in the Sun Solaris operating system. Within
DTrace, developers can write scripts in the D programming language
(a subset of the C language but modified to support trace-specific
behaviors). A DTrace script contains a number of probes and
associated actions that occur when the probe “fires.” For example,
a probe can represent something as simple as invoking a system call
or more complicated interactions such as a particular line of code
being executed. Listing 1 shows a simple example of a DTrace script
that counts the number of system calls made by each process. (Note
the use of the dictionary to associate counts with processes). The
format of the script includes the probe (which fires when a system
call is made) and an action (the corresponding action script).”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.