Skip to content
Snippets Groups Projects
Commit 5584e2db authored by Ilya Leoshkevich's avatar Ilya Leoshkevich Committed by Richard Henderson
Browse files

tcg: add perfmap and jitdump


Add ability to dump /tmp/perf-<pid>.map and jit-<pid>.dump.
The first one allows the perf tool to map samples to each individual
translation block. The second one adds the ability to resolve symbol
names, line numbers and inspect JITed code.

Example of use:

    perf record qemu-x86_64 -perfmap ./a.out
    perf report

or

    perf record -k 1 qemu-x86_64 -jitdump ./a.out
    DEBUGINFOD_URLS= perf inject -j -i perf.data -o perf.data.jitted
    perf report -i perf.data.jitted

Co-developed-by: default avatarVanderson M. do Rosario <vandersonmr2@gmail.com>
Co-developed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Signed-off-by: default avatarIlya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20230112152013.125680-4-iii@linux.ibm.com>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 7c10cb38
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment