summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-11 11:37:14 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-11 11:37:14 +0100
commit603147f47a2255298ab62e776ccd8bc5c003ce32 (patch)
tree306c478ddcc80e2fa37e24d34ab9e167e88bfdb6
parent5dafb723700c798bc54515a33a3572e01a092812 (diff)
downloadserenity-603147f47a2255298ab62e776ccd8bc5c003ce32.zip
Kernel: Fix perfcore filename generation build error
-rw-r--r--Kernel/Process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 2e5b981692..b25e25e1b6 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -612,7 +612,7 @@ void Process::finalize()
}
if (m_perf_event_buffer) {
- auto description_or_error = VFS::the().open(String::formatted("perfcore.{}", m_pid), O_CREAT | O_EXCL, 0400, current_directory(), UidAndGid { m_uid, m_gid });
+ auto description_or_error = VFS::the().open(String::formatted("perfcore.{}", m_pid.value()), O_CREAT | O_EXCL, 0400, current_directory(), UidAndGid { m_uid, m_gid });
if (!description_or_error.is_error()) {
auto& description = description_or_error.value();
auto json = m_perf_event_buffer->to_json(m_pid, m_executable ? m_executable->absolute_path() : "");