diff options
author | Liav A <liavalb@gmail.com> | 2023-02-18 18:52:44 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-19 13:47:11 +0100 |
commit | 61f4914d6e8c07352c9f1223709fe82a8432d66e (patch) | |
tree | 777bdfe2c052ba2bd1438c8d8cf40c15a56d11b3 /Userland/Libraries/LibSymbolication | |
parent | 52f156be010a9289511b7481c84367c543a06f9d (diff) | |
download | serenity-61f4914d6e8c07352c9f1223709fe82a8432d66e.zip |
Kernel+Userland: Add constants subdirectory at /sys/kernel directory
This subdirectory is meant to hold all constant data related to the
kernel. This means that this data is never meant to updated and is
relevant from system boot to system shutdown.
Move the inodes of "load_base", "cmdline" and "system_mode" to that
directory. All nodes under this new subdirectory are generated during
boot, and therefore don't require calling kmalloc each time we need to
read them. Locking is also not necessary, because these nodes and their
data are completely static once being generated.
Diffstat (limited to 'Userland/Libraries/LibSymbolication')
-rw-r--r-- | Userland/Libraries/LibSymbolication/Symbolication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibSymbolication/Symbolication.cpp b/Userland/Libraries/LibSymbolication/Symbolication.cpp index 911be1fc41..485a99782e 100644 --- a/Userland/Libraries/LibSymbolication/Symbolication.cpp +++ b/Userland/Libraries/LibSymbolication/Symbolication.cpp @@ -37,7 +37,7 @@ static KernelBaseState s_kernel_base_state = KernelBaseState::Uninitialized; Optional<FlatPtr> kernel_base() { if (s_kernel_base_state == KernelBaseState::Uninitialized) { - auto file = Core::DeprecatedFile::open("/sys/kernel/load_base", Core::OpenMode::ReadOnly); + auto file = Core::DeprecatedFile::open("/sys/kernel/constants/load_base", Core::OpenMode::ReadOnly); if (file.is_error()) { s_kernel_base_state = KernelBaseState::Invalid; return {}; |