Skip to content

perf_event_open wrapper for hardware counter collection #10

Description

@codingwithmagga

Description

Encapsulate the Linux perf_event_open syscall as a reusable C++ component that opens, configures, and manages hardware performance counters.

Acceptance Criteria

  • Counters can be opened for individual events (e.g. cycles, instructions, cache-misses)
  • Errors are handled gracefully for unsupported events or insufficient permissions
  • API supports process-scoped and CPU-scoped monitoring
  • No direct syscall usage outside of the wrapper in the rest of the codebase

Notes

TDD — tests are written before implementation code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions