Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1722948

Summary: "asm goto" in kernel headers break bcc-tools
Product: Red Hat Enterprise Linux 7 Reporter: Alexey Sheplyakov <asheplyakov>
Component: bccAssignee: Jerome Marchand <jmarchan>
Status: CLOSED DUPLICATE QA Contact: Ziqian SUN (Zamir) <zsun>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.6CC: ctrautma, gerald.prock, jmarchan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-26 09:46:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexey Sheplyakov 2019-06-21 19:12:45 UTC
Description of problem:

Most of bcc-tools utilities (profile, offwaketime, trace) fail to run

Version-Release number of selected component (if applicable): 0.6.1-2.el7

How reproducible: always


Steps to Reproduce:
1. sudo yum install -y kernel-devel bcc-tools
2. sudo /usr/share/bcc/tools/opensnoop -T


Actual results:

In file included from /virtual/main.c:4:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/include/linux/sched.h:17:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/include/linux/timex.h:56:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/include/uapi/linux/timex.h:56:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/include/linux/time.h:5:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/include/linux/seqlock.h:35:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/include/linux/spinlock.h:50:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/include/linux/preempt.h:9:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/include/linux/thread_info.h:66:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/arch/x86/include/asm/thread_info.h:22:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/arch/x86/include/asm/cpufeature.h:7:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/arch/x86/include/asm/processor.h:30:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/include/linux/irqflags.h:15:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/arch/x86/include/asm/irqflags.h:9:
In file included from /lib/modules/3.10.0-957.12.2.el7.x86_64/build/arch/x86/include/asm/nospec-branch.h:12:
/lib/modules/3.10.0-957.12.2.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:"
^
/lib/modules/3.10.0-957.12.2.el7.x86_64/build/include/linux/compiler-gcc.h:224:42: note: expanded from macro 'asm_volatile_goto'
#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
^

Expected results:

Something like this:
TIME(s)       PID    COMM               FD ERR PATH
0.000000000   4845   TaskSchedulerFo    68   0 /etc/hosts
0.001393000   13355  opensnoop          -1   2 /usr/lib/python2.7/encodings/ascii.x86_64-linux-gnu.so
0.001420000   13355  opensnoop          -1   2 /usr/lib/python2.7/encodings/ascii.so
0.001437000   13355  opensnoop          -1   2 /usr/lib/python2.7/encodings/asciimodule.so
0.001459000   13355  opensnoop          14   0 /usr/lib/python2.7/encodings/ascii.py
0.001487000   13355  opensnoop          15   0 /usr/lib/python2.7/encodings/ascii.pyc


Additional info:

The problem has been solved in the upstream version of bcc-tools. The patch (https://github.com/iovisor/bcc/pull/2133/commits/c4d0d6f6ea898a0341478e44ffd7bb04893ec10a) applies just fine to RHEL/CentOS 7.6 version of bcc-tools, and fixes the issue.

Comment 4 Jerome Marchand 2019-06-26 09:46:00 UTC
This issue has been fixed by the rebase to 0.8.0.

*** This bug has been marked as a duplicate of bug 1667036 ***