summaryrefslogtreecommitdiff
path: root/Kernel/ProcFileSystem.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-12-26 21:31:46 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-12-26 21:47:15 +0100
commitf6179ad9f9ba0277fe5f0767cb0985388bf1ee20 (patch)
treea2526b71c855f3d282fbc98eb1f7566bce1ad002 /Kernel/ProcFileSystem.cpp
parent55c722096da724ba93f0a2c5e1f4cb1f59cf9f0e (diff)
downloadserenity-f6179ad9f9ba0277fe5f0767cb0985388bf1ee20.zip
Add slightly better kmalloc_aligned() and kfree_aligned().
Process page directories can now actually be freed. This could definitely be implemented in a nicer, less wasteful way, but this works for now. The spawn stress test can now run for a lot longer but eventually dies due to kmalloc running out of memory.
Diffstat (limited to 'Kernel/ProcFileSystem.cpp')
-rw-r--r--Kernel/ProcFileSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/ProcFileSystem.cpp b/Kernel/ProcFileSystem.cpp
index 75c2c6c048..8a5170b526 100644
--- a/Kernel/ProcFileSystem.cpp
+++ b/Kernel/ProcFileSystem.cpp
@@ -318,7 +318,7 @@ ByteBuffer procfs$kmalloc()
{
auto buffer = ByteBuffer::create_uninitialized(256);
char* ptr = (char*)buffer.pointer();
- ptr += ksprintf(ptr, "eternal: %u\npage-aligned: %u\nallocated: %u\nfree: %u\n", kmalloc_sum_eternal, sum_alloc, sum_free);
+ ptr += ksprintf(ptr, "eternal: %u\nallocated: %u\nfree: %u\n", kmalloc_sum_eternal, sum_alloc, sum_free);
buffer.trim(ptr - (char*)buffer.pointer());
return buffer;
}