mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
Kernel: Move Kernel/Memory/ code into Kernel::Memory namespace
This commit is contained in:
parent
a1d7ebf85a
commit
93d98d4976
Notes:
sideshowbarker
2024-07-18 07:24:58 +09:00
Author: https://github.com/awesomekling
Commit: 93d98d4976
153 changed files with 473 additions and 467 deletions
|
@ -67,14 +67,14 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
inline static void add_mmap_perf_event(Process& current_process, Region const& region)
|
||||
inline static void add_mmap_perf_event(Process& current_process, Memory::Region const& region)
|
||||
{
|
||||
if (auto* event_buffer = current_process.current_perf_events_buffer()) {
|
||||
[[maybe_unused]] auto res = event_buffer->append(PERF_EVENT_MMAP, region.vaddr().get(), region.size(), region.name());
|
||||
}
|
||||
}
|
||||
|
||||
inline static void add_unmap_perf_event(Process& current_process, Range const& region)
|
||||
inline static void add_unmap_perf_event(Process& current_process, Memory::Range const& region)
|
||||
{
|
||||
if (auto* event_buffer = current_process.current_perf_events_buffer()) {
|
||||
[[maybe_unused]] auto res = event_buffer->append(PERF_EVENT_MUNMAP, region.base().get(), region.size(), nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue