Receiving errors running BPF scripts on RHEL7.6

Solution In Progress - Updated -

Issue

  • when running BPF scripts I receive errors stating "error: 'asm goto' constructs are not supported yet"

    [root@rhel7 ~]#  /usr/share/bcc/tools/offcputime -K -p $$
    In file included from /virtual/main.c:3:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/include/linux/sched.h:17:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/include/linux/timex.h:56:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/include/uapi/linux/timex.h:56:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/include/linux/time.h:5:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/include/linux/seqlock.h:35:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/include/linux/spinlock.h:50:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/include/linux/preempt.h:9:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/include/linux/thread_info.h:66:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/arch/x86/include/asm/thread_info.h:22:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/arch/x86/include/asm/cpufeature.h:7:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/arch/x86/include/asm/processor.h:30:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/include/linux/irqflags.h:15:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/arch/x86/include/asm/irqflags.h:9:
    In file included from /lib/modules/3.10.0-957.21.3.el7.x86_64/build/arch/x86/include/asm/nospec-branch.h:12:
    /lib/modules/3.10.0-957.21.3.el7.x86_64/build/arch/x86/include/asm/jump_label.h:22:2: error: 'asm goto' constructs are not supported yet
        asm_volatile_goto("1:"
    ...
    

Environment

  • Red Hat Enterprise Linux 7.6
  • kernel-3.10.0-957.21.3.el7
  • bcc-0.6.1-2.el7.x86_64
  • bcc-tools-0.6.1-2.el7.x86_64

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