'perf record' fails with "Perf session creation failed"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Tim Gardner | ||
Utopic |
Fix Released
|
Undecided
|
Tim Gardner |
Bug Description
---Problem Description---
When run as normal user, 'perf record ls' fails with:
Perf session creation failed.
The command runs successfully when run as root.
---uname output---
Linux ubuntu 3.16.0-16-generic #22-Ubuntu SMP Wed Sep 17 18:45:43 UTC 2014 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = POWER8E pvr 004b 0201
> Maynard,
>
> Can you check if /proc/sys/
> system ?
Yes, the value is '1'.
>
> On my system it does have 1 and I can repro. Following seems to
> fix:
> echo 0 > /proc/sys/
Yes, changing it to '0' does "fix" it, although that shouldn't be necessary, as you know. So something is broken.
I am able to repro with 3.17.0-rc4 based mainline perf tool.
I suspect that the change in behavior was introduced unintentionally by
this upstream commit. machine_
machine_
---
commit a93f0e551af9e19
Author: Simon Que <email address hidden>
Date: Mon Jun 16 11:32:09 2014 -0700
perf symbols: Get kernel start address by symbol name
This is being fixed by a recent upstream commit:
https:/
Will Ubuntu pick that fix up automatically ?
tags: | added: architecture-ppc64le bugnameltc-116381 severity-medium targetmilestone-inin--- |
affects: | ubuntu → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
tags: |
added: targetmilestone-inin1410 removed: targetmilestone-inin--- |
tags: | added: kernel-da-key |
I applied http:// git.kernel. org/cgit/ linux/kernel/ git/tip/ tip.git/ patch/? id=a5c2a4c9561c bbd374231bd3419 36dae716df9dd for now. If this had been marked for stable it would likely have trickled down automatically.