Bug 1167457 - perf doesn't understand zipmodules
Summary: perf doesn't understand zipmodules
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Josh Boyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-24 20:22 UTC by Josh Stone
Modified: 2015-11-20 23:22 UTC (History)
9 users (show)

Fixed In Version: kernel-4.1.13-100.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-20 23:22:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Josh Stone 2014-11-24 20:22:02 UTC
Description of problem:
"perf record" can't find symbols for any kernel modules.

Version-Release number of selected component (if applicable):
kernel-3.17.3-300.fc21.x86_64

How reproducible:
Always reproducible, at least if you get a sample in any module.
I'll use glxgears below to make sure at least the gpu modules are active.

Steps to Reproduce:
1. perf record timeout 5 glxgears

Actual results:
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.025 MB perf.data (~1074 samples) ]
[i915] with build id 9f166b3cb543517df3925301cf6576b3a6e12a03 not found, continuing without symbols
[drm] with build id babca98f71e2f3096913c68ac09f2903fd7090b8 not found, continuing without symbols

Expected results:
No "continuing without symbols".

Additional info:
Starting in F21, modules are compressed by the "zipmodules" flag in kernel.spec.  All modules in the rpm package are now xz compressed, named like "foo.ko.xz".  I confirmed that if I manually uncompress them, perf is fine.
  find /lib/modules/$(uname -r) -name \*.ko.xz -exec xz -d -k {} \;

Comment 1 Justin M. Forbes 2015-01-27 15:00:22 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There are a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 21 kernel bugs.

Fedora 21 has now been rebased to 3.18.3-201.fc21.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you experience different issues, please open a new bug report for those.

Comment 2 Josh Stone 2015-01-27 17:27:35 UTC
Still present:

$ uname -r
3.18.3-201.fc21.x86_64
$ rpm -q perf
perf-3.18.3-201.fc21.x86_64
$ perf record timeout 5 glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.022 MB perf.data (~973 samples) ]
[i915] with build id d8d6cd063a249cb7728321ca9073943fa37223af not found, continuing without symbols
[drm] with build id 12b17d384c83956085bb428c7131efde5388b2e8 not found, continuing without symbols

Comment 3 Jiri Olsa 2015-03-03 15:34:23 UTC
posted upstream:
http://marc.info/?l=linux-kernel&m=142539661524455&w=2

Comment 4 Fedora Kernel Team 2015-04-28 18:31:53 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There is a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 21 kernel bugs.

Fedora 21 has now been rebased to 3.19.5-200.fc21.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you have moved on to Fedora 22, and are still experiencing this issue, please change the version to Fedora 22.

If you experience different issues, please open a new bug report for those.

Comment 5 Josh Boyer 2015-11-02 19:42:40 UTC
This should be fixed with 4.1.

Comment 6 Josh Stone 2015-11-02 22:04:41 UTC
I missed testing 4.1, but it doesn't look right on 4.2:

$ uname -r
4.2.3-200.fc22.x86_64
$ rpm -q perf
perf-4.2.3-200.fc22.x86_64
$ perf record timeout 5 glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
[ perf record: Woken up 1 times to write data ]
[i915] with build id abf25e5c7c81d8d27299db3b96fea5661620544b not found, continuing without symbols
[drm] with build id b1e9407faa0c8a262b6526160da334851465d1f7 not found, continuing without symbols
[ perf record: Captured and wrote 0.037 MB perf.data (603 samples) ]

Comment 7 Josh Stone 2015-11-03 01:52:26 UTC
Aha, just updated to F23, and it does work there.  It appears the f23 and master branches of dist-git have added xz-devel to BuildRequires, but not in f22 or f21.

Comment 8 Jiri Olsa 2015-11-03 07:55:56 UTC
(In reply to Josh Stone from comment #7)
> Aha, just updated to F23, and it does work there.  It appears the f23 and
> master branches of dist-git have added xz-devel to BuildRequires, but not in
> f22 or f21.

So the spec file for F22 needs the update? Could we assign this to the master
who fixed this for F23? I've never touched Fedora's kernel spec file.. ;-)

thanks

Comment 9 Josh Boyer 2015-11-03 13:51:29 UTC
Justin fixed it last night in Fedora git on f22.  I'll get to f21 today.  Feel free to assign it to me if you want.

Comment 10 Josh Stone 2015-11-03 17:41:48 UTC
Yes, it's just a spec update.  Thanks guys!

Comment 11 Fedora Update System 2015-11-12 16:30:33 UTC
kernel-4.1.13-100.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-f2c534bc12

Comment 12 Fedora Update System 2015-11-13 04:20:36 UTC
kernel-4.1.13-100.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update kernel'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-f2c534bc12

Comment 13 Fedora Update System 2015-11-20 23:21:08 UTC
kernel-4.1.13-100.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.