diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-07-26 15:10:51 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-27 13:15:16 +0200 |
commit | 57417a3d6efe872d26cc790c5cc009dac3a3c8be (patch) | |
tree | 8ec61e9fcd76db03945c5b413276a920fc422087 /Userland/DevTools/Profiler/Profile.cpp | |
parent | e3d2ca6bd20257bbb49a8da5e37b8e71dc697333 (diff) | |
download | serenity-57417a3d6efe872d26cc790c5cc009dac3a3c8be.zip |
Kernel: Support loading the kernel at almost arbitrary virtual addresses
This enables further work on implementing KASLR by adding relocation
support to the pre-kernel and updating the kernel to be less dependent
on specific virtual memory layouts.
Diffstat (limited to 'Userland/DevTools/Profiler/Profile.cpp')
-rw-r--r-- | Userland/DevTools/Profiler/Profile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/Profiler/Profile.cpp b/Userland/DevTools/Profiler/Profile.cpp index f4a7f630f4..86464140b4 100644 --- a/Userland/DevTools/Profiler/Profile.cpp +++ b/Userland/DevTools/Profiler/Profile.cpp @@ -316,7 +316,7 @@ Result<NonnullOwnPtr<Profile>, String> Profile::load_from_perfcore_file(const St if (maybe_kernel_base.has_value() && ptr >= maybe_kernel_base.value()) { if (kernel_elf) { - symbol = kernel_elf->symbolicate(ptr, &offset); + symbol = kernel_elf->symbolicate(ptr - maybe_kernel_base.value(), &offset); } else { symbol = String::formatted("?? <{:p}>", ptr); } |