[llvm] [Bolt] Fix address translation for KASLR kernel (PR #114261)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 11 22:39:52 PST 2024
maksfb wrote:
> OK. I see. This should be easy to fix: the logic of detecting kernel is not using the name. So if this is kernel, we can skip the match and use the provided ELF file directly. Or, we can pass a flat for kernel? (I don't think you would like this).
Sound like a plan. No flag is needed. You currently check for "[kernel.kallsyms]" in the `perf script` output and it seems to work on the systems I've checked. But I wonder it's 100% reliable? The kernel also appears on the first line and the only binary with non-zero "@" field in `PERF_RECORD_MMAP`.
https://github.com/llvm/llvm-project/pull/114261
More information about the llvm-commits
mailing list