mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
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:
parent
f6998b1817
commit
37ba2a7b65
3 changed files with 38 additions and 36 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue