Re: [PATCH v2 1/1] tcg: add perfmap and jitdump

2023-01-08 Thread Richard Henderson
On 11/14/22 08:13, Ilya Leoshkevich wrote: -const void *tcg_splitwx_to_rx(void *rw); +const void *tcg_splitwx_to_rx(const void *rw); void *tcg_splitwx_to_rw(const void *rx); #else -static inline const void *tcg_splitwx_to_rx(void *rw) +static inline const void *tcg_splitwx_to_rx(const void *r

Re: [PATCH v2 1/1] tcg: add perfmap and jitdump

2023-01-06 Thread Alex Bennée
Ilya Leoshkevich writes: > Add ability to dump /tmp/perf-.map and jit-.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: > > pe

[PATCH v2 1/1] tcg: add perfmap and jitdump

2022-11-14 Thread Ilya Leoshkevich
Add ability to dump /tmp/perf-.map and jit-.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