![]() The linux perf tools use /proc/kcore for disassembly kernel functions. Actually it copies the relevant parts to a temp file and then pass it to objdump. But it doesn't have section headers so llvm-objdump cannot handle it. Let's create fake section headers for the program headers. It'd have a single section for each segment to cover the entire range. And for this purpose we can consider only executable code segments. With this change, I can see the following command shows proper outputs. perf annotate --stdio --objdump=/path/to/llvm-objdump Differential Revision: https://reviews.llvm.org/D128705 |
||
---|---|---|
.. | ||
AMDGPU | ||
COFF | ||
ELF | ||
Inputs | ||
MachO | ||
Offloading | ||
X86 | ||
XCOFF | ||
wasm | ||
all-headers.test | ||
archive-headers.test | ||
dwarf_invalid.yaml | ||
eh_frame-mipsel.test | ||
eh_frame_zero_cie.test | ||
embedded-source.test | ||
file-headers-pe.test | ||
full-contents.test | ||
help.test | ||
invalid-input.test | ||
invalid-symbol-table-size.test | ||
malformed-archives.test | ||
mattr-mcpu-help.test | ||
non-archive-object.test | ||
openbsd-headers.test | ||
option-grouping.test | ||
private-headers-dynamic-section.test | ||
private-headers-no-dynamic-segment.test | ||
private-headers-no-dynamic.test | ||
relocation-xindex-symbol.test | ||
section-filter.test | ||
section-headers.test | ||
tool-name.test | ||
unimplemented-features.test | ||
verneed-wrong-info.test | ||
version.test | ||
warn-missing-section.test | ||
warn-on-out-of-range-start-stop-address.test |