Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#61786 - Package: perf tool broken

Attached to Project: Community Packages
Opened by Jarmo (JATothrim) - Saturday, 16 February 2019, 23:15 GMT
Last edited by Balló György (City-busz) - Friday, 12 April 2019, 15:08 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Linux perf tools fails always with following message: "Failed to mmap with 12 (Cannot allocate memory)"
This occurs at least on kernel versions 4.19.21-1-lts and 4.20.8.arch1-1.

Additional info:
* package version(s): community/perf 4.20-2 (linux-tools), community/perf 4.20-1
* config and/or log files etc.: None that I know of.


Steps to reproduce:
Run: ~$ sudo perf top -a

Expected behaviour: command displays normal perf top output on terminal.
Unexpected behaviour: command always fails, only "perf stat" may work.
This task depends upon

Closed by  Balló György (City-busz)
Friday, 12 April 2019, 15:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  Bug fixed in upstream kernels: 4.19.24, 4.20.11
Comment by Jarmo (JATothrim) - Saturday, 16 February 2019, 23:23 GMT
I rebooted to older "Linux 4.19.18-69+ #89 SMP PREEMPT Mon Jan 28 20:37:17 EET 2019 x86_64 GNU/Linux" self build kernel,
and the perf (4.20-2) works.

Has something changed in recent kernels that require changing some setting to get perf function?
Comment by loqs (loqs) - Saturday, 16 February 2019, 23:31 GMT Comment by Jarmo (JATothrim) - Friday, 22 February 2019, 02:27 GMT
Kernel versions 4.20.11 and 4.19.24 fixes this problem since they includes the required patch.

See: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=528871b456026e6127d95b1b2bd8e3a003dc1614

Closing.

Loading...