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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In