Read RAPL/MSR from BPF
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 3
Description
Hello, I'm moving my first steps with eBPF/bcc and I'm not that good as a C programmer either so please excuse me if what I'm asking might sound dumb or nonsense at all.
I'm writing a small program that uses tracepoints to hook to sched_switch events for certain PIDs and once the event is triggered, I'd like to read some information from PMCs. I have already managed to get the cycles count within the specific context switch using perf events but now I'd like to have access to MSR to read RAPL energy values. Is there a way to do that using eBPF/bcc?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the described sched_switch tracepoint and existing perf-event approach, then investigate whether eBPF/BCC can access MSR-based RAPL energy values. No source file, test, or entry point is named; done would require a documented, confirmed answer about whether this access is supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- operating-systems, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100