mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 12:54:58 +00:00
Kernel: Remove unused /proc/mm file
This was a file I used very early on to dump information about kernel VM objects. It's long since superseded by other JSON-based files.
This commit is contained in:
parent
57a2394cb4
commit
cfe54f86bd
2 changed files with 0 additions and 22 deletions
|
@ -81,7 +81,6 @@ enum ProcFileType {
|
||||||
FI_Root = 1, // directory
|
FI_Root = 1, // directory
|
||||||
|
|
||||||
__FI_Root_Start,
|
__FI_Root_Start,
|
||||||
FI_Root_mm,
|
|
||||||
FI_Root_df,
|
FI_Root_df,
|
||||||
FI_Root_all,
|
FI_Root_all,
|
||||||
FI_Root_memstat,
|
FI_Root_memstat,
|
||||||
|
@ -670,25 +669,6 @@ static bool procfs$self(InodeIdentifier, KBufferBuilder& builder)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool procfs$mm(InodeIdentifier, KBufferBuilder& builder)
|
|
||||||
{
|
|
||||||
InterruptDisabler disabler;
|
|
||||||
u32 vmobject_count = 0;
|
|
||||||
MemoryManager::for_each_vmobject([&](auto& vmobject) {
|
|
||||||
++vmobject_count;
|
|
||||||
builder.appendf("VMObject: %p %s(%u): p:%4u\n",
|
|
||||||
&vmobject,
|
|
||||||
vmobject.is_anonymous() ? "anon" : "file",
|
|
||||||
vmobject.ref_count(),
|
|
||||||
vmobject.page_count());
|
|
||||||
return IterationDecision::Continue;
|
|
||||||
});
|
|
||||||
builder.appendf("VMO count: %u\n", vmobject_count);
|
|
||||||
builder.appendf("Free physical pages: %u\n", MM.user_physical_pages() - MM.user_physical_pages_used());
|
|
||||||
builder.appendf("Free supervisor physical pages: %u\n", MM.super_physical_pages() - MM.super_physical_pages_used());
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool procfs$dmesg(InodeIdentifier, KBufferBuilder& builder)
|
static bool procfs$dmesg(InodeIdentifier, KBufferBuilder& builder)
|
||||||
{
|
{
|
||||||
InterruptDisabler disabler;
|
InterruptDisabler disabler;
|
||||||
|
@ -1685,7 +1665,6 @@ ProcFS::ProcFS()
|
||||||
{
|
{
|
||||||
m_root_inode = adopt(*new ProcFSInode(*this, 1));
|
m_root_inode = adopt(*new ProcFSInode(*this, 1));
|
||||||
m_entries.resize(FI_MaxStaticFileIndex);
|
m_entries.resize(FI_MaxStaticFileIndex);
|
||||||
m_entries[FI_Root_mm] = { "mm", FI_Root_mm, true, procfs$mm };
|
|
||||||
m_entries[FI_Root_df] = { "df", FI_Root_df, false, procfs$df };
|
m_entries[FI_Root_df] = { "df", FI_Root_df, false, procfs$df };
|
||||||
m_entries[FI_Root_all] = { "all", FI_Root_all, false, procfs$all };
|
m_entries[FI_Root_all] = { "all", FI_Root_all, false, procfs$all };
|
||||||
m_entries[FI_Root_memstat] = { "memstat", FI_Root_memstat, false, procfs$memstat };
|
m_entries[FI_Root_memstat] = { "memstat", FI_Root_memstat, false, procfs$memstat };
|
||||||
|
|
|
@ -87,7 +87,6 @@ class MemoryManager {
|
||||||
friend class AnonymousVMObject;
|
friend class AnonymousVMObject;
|
||||||
friend class Region;
|
friend class Region;
|
||||||
friend class VMObject;
|
friend class VMObject;
|
||||||
friend OwnPtr<KBuffer> procfs$mm(InodeIdentifier);
|
|
||||||
friend OwnPtr<KBuffer> procfs$memstat(InodeIdentifier);
|
friend OwnPtr<KBuffer> procfs$memstat(InodeIdentifier);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue