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 1957210

Summary: Link perf dynamically against libbpf
Product: Red Hat Enterprise Linux 9 Reporter: Michael Petlan <mpetlan>
Component: kernelAssignee: Michael Petlan <mpetlan>
kernel sub component: Perf QA Contact: Ziqian SUN (Zamir) <zsun>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: acme, bsalon, hkrzesin, jolsa, xiawu
Version: 9.0Keywords: Triaged
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-5.13.0-0.rc2.19.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-07 21:55:02 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 Michael Petlan 2021-05-05 11:53:32 UTC
Description of problem:

In RHEL-8, we had perf enabled to link dynamically to libbpf, in RHEL-9 this needs to be enabled again, since the kernel.spec.template hasn't got derived from RHEL-8.

Related bug: bz1781570

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 7 Ziqian SUN (Zamir) 2021-06-15 03:10:59 UTC
Verified as FIXED with perf-5.13.0-0.rc4.33.el9. Now nm reports bpf symbols as dynamic, and libbpf is a dependency of perf in terms of RPM now.

[root@zsun-rhel9vm ~]# rpm -q perf
perf-5.13.0-0.rc4.33.el9.x86_64
[root@zsun-rhel9vm ~]# nm /usr/bin/perf
nm: /usr/bin/perf: no symbols
[root@zsun-rhel9vm ~]# nm -D /usr/bin/perf | grep -i bpf | head
                 U bpf_load_program.1
                 U bpf_map__def.1
                 U bpf_map__fd.1
                 U bpf_map_get_next_key.1
                 U bpf_map_lookup_elem.1
                 U bpf_map__name.1
                 U bpf_map__next.1
                 U bpf_map__priv.1
                 U bpf_map__set_priv.1
                 U bpf_map_update_elem.1

# dnf remove libbpf
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Dependencies resolved.
=========================================================================================================================================================================================
 Package                                     Architecture                         Version                                            Repository                                     Size
=========================================================================================================================================================================================
Removing:
 libbpf                                      x86_64                               2:0.3.0-3.el9                                      @pek2-BaseOS                                  248 k
Removing dependent packages:
 perf                                        x86_64                               5.13.0-0.rc4.33.el9                                @pek2-AppStream                                11 M
Removing unused dependencies:
 libbabeltrace                               x86_64                               1.5.8-7.el9                                        @pek2-AppStream                               519 k
 libtraceevent                               x86_64                               1.1.1-4.el9                                        @pek2-BaseOS                                  1.2 M
 perl-lib                                    x86_64                               0.65-476.el9                                       @pek2-AppStream                               9.4 k

Transaction Summary
=========================================================================================================================================================================================
Remove  5 Packages

Freed space: 13 M
Is this ok [y/N]: n
Operation aborted.