Various bptrace tool scripts are fail to start with fatal error

Solution Verified - Updated -

Issue

  • The following bptrace tool scripts are fail to start with fatal error.
# /usr/share/bpftrace/tools/biosnoop.bt 
definitions.h:2:10: fatal error: 'linux/blk-mq.h' file not found

# /usr/share/bpftrace/tools/dcsnoop.bt
definitions.h:2:10: fatal error: 'linux/fs.h' file not found

# /usr/share/bpftrace/tools/mdflush.bt
definitions.h:2:10: fatal error: 'linux/genhd.h' file not found

# /usr/share/bpftrace/tools/naptime.bt
definitions.h:2:10: fatal error: 'linux/time.h' file not found

# /usr/share/bpftrace/tools/oomkill.bt
definitions.h:2:10: fatal error: 'linux/oom.h' file not found

# /usr/share/bpftrace/tools/runqlat.bt 
definitions.h:2:10: fatal error: 'linux/sched.h' file not found

# /usr/share/bpftrace/tools/runqlen.bt
definitions.h:2:10: fatal error: 'linux/sched.h' file not found

# /usr/share/bpftrace/tools/tcpaccept.bt
definitions.h:2:10: fatal error: 'linux/socket.h' file not found

# /usr/share/bpftrace/tools/tcpconnect.bt
definitions.h:2:10: fatal error: 'linux/socket.h' file not found

# /usr/share/bpftrace/tools/tcpdrop.bt
definitions.h:2:10: fatal error: 'linux/socket.h' file not found

# /usr/share/bpftrace/tools/tcplife.bt
definitions.h:2:10: fatal error: 'net/tcp_states.h' file not found

# /usr/share/bpftrace/tools/tcpretrans.bt
definitions.h:2:10: fatal error: 'linux/socket.h' file not found

# /usr/share/bpftrace/tools/tcpsynbl.bt
definitions.h:2:10: fatal error: 'net/sock.h' file not found

Environment

  • Red Hat Enterprise Linux release 9.0
  • bpftrace

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