aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@google.com>2022-07-14 07:58:38 +0100
committerJames Henderson <james.henderson@sony.com>2022-07-14 13:39:59 +0100
commit69b312cde428056186928a3c1b6ad84e45de0353 (patch)
tree1abf0f1706c14fa7f3f1698e254ff0c991154f9f /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent5a0011360c9cea0fdc182c8c66ed3bc774a50835 (diff)
downloadllvm-69b312cde428056186928a3c1b6ad84e45de0353.zip
llvm-69b312cde428056186928a3c1b6ad84e45de0353.tar.gz
llvm-69b312cde428056186928a3c1b6ad84e45de0353.tar.bz2
[llvm-objdump] Create fake sections for a ELF core file
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
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions