Using stap within a container to access the running kernel

Solution Verified - Updated -


Trying to use rhel7/rhel-tools container to run stap, the following error is received:

# stap -e 'probe kernel.function("generic_make_request") { print_backtrace() }'
Checking "/lib/modules/3.10.0-229.1.2.el7.x86_64/build/.config" failed with error: No such file or directory

How can stap be used to access the existing kernel?


  • docker 1.5.0-dev
  • Red Hat Enterprise Linux Atomic Host 7.1.1-1
  • rhel7/rhel-tools container (:latest)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content