Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf_event: Eliminate paranoia error for check_exclude_guest() #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

willowec
Copy link
Contributor

@willowec willowec commented Oct 10, 2024

Pull Request Description

On systems with the kernel setting perf_event_paranoid>=2, userspace calls to perf_event_open() must set attr.exclude_kernel=1. Set exclude_kernel=1 in check_exclude_guest() to allow the function to execute successfully on systems with perf_event_paranoid>=2;

Author Checklist

  • Description
    Why this PR exists. Reference all relevant information, including background, issues, test failures, etc
  • Commits
    Commits are self contained and only do one thing
    Commits have a header of the form: module: short description
    Commits have a body (whenever relevant) containing a detailed description of the addressed problem and its solution
  • Tests
    The PR needs to pass all the tests

… paranoid kernel

On systems with perf_event_paranoid>=2, userspace calls to
perf_event_open() must set attr.exclude_kernel=1. Set exclude_kernel=1
in check_exclude_guest() to allow the function to execute successfully
on systems with perf_event_paranoid>=2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant