ProcFS: Remove /proc/kmalloc, that info is already in /proc/memstat
This commit is contained in:
parent
9104d32341
commit
eb6609124e
Notes:
sideshowbarker
2024-07-19 12:49:06 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/eb6609124e1
1 changed files with 0 additions and 15 deletions
|
@ -37,7 +37,6 @@ enum ProcFileType {
|
|||
FI_Root_mm,
|
||||
FI_Root_mounts,
|
||||
FI_Root_df,
|
||||
FI_Root_kmalloc,
|
||||
FI_Root_all,
|
||||
FI_Root_memstat,
|
||||
FI_Root_cpuinfo,
|
||||
|
@ -526,19 +525,6 @@ Optional<KBuffer> procfs$cpuinfo(InodeIdentifier)
|
|||
return builder.build();
|
||||
}
|
||||
|
||||
Optional<KBuffer> procfs$kmalloc(InodeIdentifier)
|
||||
{
|
||||
KBufferBuilder builder;
|
||||
builder.appendf(
|
||||
"eternal: %u\n"
|
||||
"allocated: %u\n"
|
||||
"free: %u\n",
|
||||
kmalloc_sum_eternal,
|
||||
sum_alloc,
|
||||
sum_free);
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
Optional<KBuffer> procfs$memstat(InodeIdentifier)
|
||||
{
|
||||
InterruptDisabler disabler;
|
||||
|
@ -1094,7 +1080,6 @@ ProcFS::ProcFS()
|
|||
m_entries[FI_Root_mm] = { "mm", FI_Root_mm, procfs$mm };
|
||||
m_entries[FI_Root_mounts] = { "mounts", FI_Root_mounts, procfs$mounts };
|
||||
m_entries[FI_Root_df] = { "df", FI_Root_df, procfs$df };
|
||||
m_entries[FI_Root_kmalloc] = { "kmalloc", FI_Root_kmalloc, procfs$kmalloc };
|
||||
m_entries[FI_Root_all] = { "all", FI_Root_all, procfs$all };
|
||||
m_entries[FI_Root_memstat] = { "memstat", FI_Root_memstat, procfs$memstat };
|
||||
m_entries[FI_Root_cpuinfo] = { "cpuinfo", FI_Root_cpuinfo, procfs$cpuinfo };
|
||||
|
|
Loading…
Add table
Reference in a new issue