diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-04-26 23:06:58 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-26 23:26:58 +0200 |
commit | afeee35cbf5466d4df15f5481c23315c41a677b3 (patch) | |
tree | 2527975a87a4743d68a684c6aff6508ecd9bcc85 /Kernel/PerformanceEventBuffer.cpp | |
parent | 4a40caa020731443b191922ba8ba3e7ecb3ac142 (diff) | |
download | serenity-afeee35cbf5466d4df15f5481c23315c41a677b3.zip |
Kernel: Avoid calling characters() where not necessary
Diffstat (limited to 'Kernel/PerformanceEventBuffer.cpp')
-rw-r--r-- | Kernel/PerformanceEventBuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/PerformanceEventBuffer.cpp b/Kernel/PerformanceEventBuffer.cpp index d1960e600a..f7c7983e43 100644 --- a/Kernel/PerformanceEventBuffer.cpp +++ b/Kernel/PerformanceEventBuffer.cpp @@ -221,7 +221,7 @@ void PerformanceEventBuffer::add_process(const Process& process, ProcessEventTyp [[maybe_unused]] auto rc = append_with_eip_and_ebp(process.pid(), 0, 0, 0, event_type == ProcessEventType::Create ? PERF_EVENT_PROCESS_CREATE : PERF_EVENT_PROCESS_EXEC, - process.pid().value(), 0, executable.characters()); + process.pid().value(), 0, executable); process.for_each_thread([&](auto& thread) { [[maybe_unused]] auto rc = append_with_eip_and_ebp(process.pid(), thread.tid().value(), @@ -231,7 +231,7 @@ void PerformanceEventBuffer::add_process(const Process& process, ProcessEventTyp for (auto& region : process.space().regions()) { [[maybe_unused]] auto rc = append_with_eip_and_ebp(process.pid(), 0, - 0, 0, PERF_EVENT_MMAP, region->range().base().get(), region->range().size(), region->name().characters()); + 0, 0, PERF_EVENT_MMAP, region->range().base().get(), region->range().size(), region->name()); } } |