rr-debugger / rr-debugger/rr

Emulate PR_TASK_PERF_EVENTS_DISABLE

Open
#600 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

While we're filing perf-event trivia: turns out tasks can disable events attached to them, even if another process created the event (e.g., rr tracer). Obviously this would be disastrous for rr. I doubt if any program we'll ever see uses this though, so just filing for completeness's sake.

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.

Research direction

The issue names PR_TASK_PERF_EVENTS_DISABLE and its impact on events attached to tasks, but it does not identify files, entry points, or tests. Start by locating rr's Linux perf-event handling and determine the expected behavior for events created by another process; done should include coverage showing the emulation does not disrupt rr tracing.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
devtools, operating-systems, reverse-engineering
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.