1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

Kernel: Add const variant of Process::perf_events()

This lets us get rid of some const_casts.
This commit is contained in:
Andreas Kling 2021-09-07 17:35:56 +02:00
parent ec4b814c9a
commit 6f992d784f
2 changed files with 3 additions and 2 deletions

View file

@ -503,6 +503,7 @@ public:
const NonnullRefPtrVector<Thread>& threads_for_coredump(Badge<Coredump>) const { return m_threads_for_coredump; }
PerformanceEventBuffer* perf_events() { return m_perf_event_buffer; }
PerformanceEventBuffer const* perf_events() const { return m_perf_event_buffer; }
Memory::AddressSpace& address_space() { return *m_space; }
Memory::AddressSpace const& address_space() const { return *m_space; }