Bug 1378670 - operf command gets permission denied
Summary: operf command gets permission denied
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: oprofile
Version: 24
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: William Cohen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-23 03:19 UTC by M. Edward (Ed) Borasky
Modified: 2017-08-08 17:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 17:35:17 UTC
Type: Bug


Attachments (Terms of Use)

Description M. Edward (Ed) Borasky 2016-09-23 03:19:08 UTC
Description of problem: I'm trying to profile Firefox Nightly with oprofile. I am attempting to start Nightly with the command

$ operf -d ~/nightly_operf/ FirefoxNightly/firefox/firefox
Unexpected error running operf: Permission denied


Version-Release number of selected component (if applicable):
$ dnf list installed | grep oprofile
oprofile.x86_64                     1.1.0-4.fc24                @fedora         
oprofile-devel.x86_64               1.1.0-4.fc24                @fedora         
oprofile-jit.x86_64                 1.1.0-4.fc24                @fedora         


How reproducible:
Consistent - always happens

Steps to Reproduce:
1. Install Firefox Nightly from Mozilla
2. Create ~/nightly_operf
3. Run operf -d ~/nightly_operf/ FirefoxNightly/firefox/firefox

Actual results:
Permission denied

Expected results:
Firetox Nightly started and oprofile collecting data into ~/nightly_operf

Additional info:

Comment 1 William Cohen 2016-09-23 13:20:32 UTC
This is likely due to newer kernels having /proc/sys/kernel/perf_event_paranoid default to 2 rather than 1 as in older kernels.  oprofile doesn't exclude kernel-space measurements, so the set up of the performance monitoring of operf is failing.  To verify that this is the case as root:

echo 1 > /proc/sys/kernel/perf_event_paranoid

Then retry the operf command as a normal user.

Comment 2 M. Edward (Ed) Borasky 2016-09-23 20:49:11 UTC
Yep - it worked ... so there's probably a note needed in the documentation for Fedora 25. There's nothing about this in https://docs.fedoraproject.org/en-US/Fedora/24/html/System_Administrators_Guide/ch-OProfile.html

Comment 3 Feng Yu 2017-07-20 23:52:56 UTC
I also ran into this today.

Comment 4 Fedora End Of Life 2017-07-25 23:11:52 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 5 Fedora End Of Life 2017-08-08 17:35:17 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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