Kernel: Use KBufferBuilder to build ProcFS files and backtraces

This is not perfect as it uses a lot of VM, but since the buffers are
supposed to be temporary it's not super terrible.

This could be improved by giving back the unused VM to the kernel's
RangeAllocator after finishing the buffer building.
This commit is contained in:
Andreas Kling 2019-08-07 21:52:43 +02:00
commit 37ba2a7b65
Notes: sideshowbarker 2024-07-19 12:50:07 +09:00
3 changed files with 38 additions and 36 deletions

View file

@ -18,6 +18,7 @@
class ELFLoader;
class FileDescription;
class KBuffer;
class PageDirectory;
class Region;
class VMObject;
@ -57,7 +58,7 @@ public:
Ring3 = 3,
};
String backtrace(ProcessInspectionHandle&) const;
KBuffer backtrace(ProcessInspectionHandle&) const;
bool is_dead() const { return m_dead; }