bpftrace provided tool 'tcpdrop.bt' fails with "Error attaching probe: 'kprobe:tcp_drop'"

Solution Verified - Updated -

Issue

  • The bpftrace provided tool tcpdrop.bt fails with "Error attaching probe: 'kprobe:tcp_drop'"
# /usr/share/bpftrace/tools/tcpdrop.bt
Attaching 3 probes...
cannot attach kprobe, probe entry may not exist
ERROR: Error attaching probe: 'kprobe:tcp_drop'

Environment

  • Red Hat Enterprise Linux 9
  • bpftrace
  • tcpdrop.bt

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