mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 22:22:07 +00:00
ProcFS: Remove /proc/kmalloc, that info is already in /proc/memstat
This commit is contained in:
parent
9104d32341
commit
eb6609124e
1 changed files with 0 additions and 15 deletions
|
@ -37,7 +37,6 @@ enum ProcFileType {
|
||||||
FI_Root_mm,
|
FI_Root_mm,
|
||||||
FI_Root_mounts,
|
FI_Root_mounts,
|
||||||
FI_Root_df,
|
FI_Root_df,
|
||||||
FI_Root_kmalloc,
|
|
||||||
FI_Root_all,
|
FI_Root_all,
|
||||||
FI_Root_memstat,
|
FI_Root_memstat,
|
||||||
FI_Root_cpuinfo,
|
FI_Root_cpuinfo,
|
||||||
|
@ -526,19 +525,6 @@ Optional<KBuffer> procfs$cpuinfo(InodeIdentifier)
|
||||||
return builder.build();
|
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)
|
Optional<KBuffer> procfs$memstat(InodeIdentifier)
|
||||||
{
|
{
|
||||||
InterruptDisabler disabler;
|
InterruptDisabler disabler;
|
||||||
|
@ -1094,7 +1080,6 @@ ProcFS::ProcFS()
|
||||||
m_entries[FI_Root_mm] = { "mm", FI_Root_mm, procfs$mm };
|
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_mounts] = { "mounts", FI_Root_mounts, procfs$mounts };
|
||||||
m_entries[FI_Root_df] = { "df", FI_Root_df, procfs$df };
|
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_all] = { "all", FI_Root_all, procfs$all };
|
||||||
m_entries[FI_Root_memstat] = { "memstat", FI_Root_memstat, procfs$memstat };
|
m_entries[FI_Root_memstat] = { "memstat", FI_Root_memstat, procfs$memstat };
|
||||||
m_entries[FI_Root_cpuinfo] = { "cpuinfo", FI_Root_cpuinfo, procfs$cpuinfo };
|
m_entries[FI_Root_cpuinfo] = { "cpuinfo", FI_Root_cpuinfo, procfs$cpuinfo };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue