Update perf_event_paranoid help message to include setcap method

Open
#3,611 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, linux

Research direction

Locate the rr error or help message that discusses perf_event_paranoid and read its surrounding code. Update the message to mention the setcap command from the issue, then verify that the resulting guidance includes this alternative without changing the existing option.

Written by the indexing model from the issue text.

Description

Executing sudo setcap "cap_sys_ptrace,cap_perfmon=ep" $(which rr) (from this comment) allows rr run in fast mode without changing perf_event_paranoid. Changing the capabilities for a single binary (or a for a single user?) seems more secure than changing perf_event_paranoid for the whole system. IMO the error message rr prints out about perf_event_paranoid should be updated to include this option.

Dominant language
C++
Stars
10.7k
Forks
662
Avg merge
2d 3h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rr-debugger/rr

All issues in rr-debugger/rr

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.