Kernel: Print a message to debug log after writing a perfcore file

This commit is contained in:
Andreas Kling 2021-05-22 22:07:40 +02:00
parent 8a5c78e93b
commit cefb321da4
Notes: sideshowbarker 2024-07-18 17:31:56 +09:00

View file

@ -480,7 +480,10 @@ bool Process::dump_perfcore()
if (!json)
return false;
auto json_buffer = UserOrKernelBuffer::for_kernel_buffer(json->data());
return !description->write(json_buffer, json->size()).is_error();
if (description->write(json_buffer, json->size()).is_error())
return false;
dbgln("Wrote perfcore to {}", description->absolute_path());
return true;
}
void Process::finalize()