You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/contrib/plugins
Pierrick Bouvier 8a545a336d contrib/plugins/uftrace_symbols.py: generate debug files to map symbols to source
Enhance uftrace_symbols.py to generate .dbg files, containing
source location for every symbol present in .sym file.
It allows to use `uftrace {replay,dump} --srcline` and show origin of
functions, connecting trace to original source code.

It was first implemented with pyelftools DWARF parser, which was way
too slow (~minutes) to get locations for every symbol in the linux
kernel. Thus, we use `addr2line` instead, which runs in seconds.

As well, there were some bugs with latest pyelftools release,
requiring to run master version, which is not installable with pip.
Thus, since we now require binutils (addr2line), we can ditch pyelftools
based implementation and simply rely on `nm` to get symbols information,
which is faster and better.

Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251016150357.876415-8-alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
3 days ago
..
bbv.c contrib/plugins/bbv.c: Start bb index from 1 10 months ago
cache.c contrib/plugins: Fix type conflict of GLib function pointers 6 months ago
cflow.c contrib/plugins: Fix type conflict of GLib function pointers 6 months ago
drcov.c contrib/plugins/drcov: Fix string format 2 years ago
execlog.c contrib/plugins/execlog: Explicitly check for qemu_plugin_read_register() failure 4 weeks ago
hotblocks.c contrib/plugins: Fix type conflict of GLib function pointers 6 months ago
hotpages.c contrib/plugins: Fix type conflict of GLib function pointers 6 months ago
howvec.c contrib/plugins: Fix type conflict of GLib function pointers 6 months ago
hwprofile.c contrib/plugins: Fix type conflict of GLib function pointers 6 months ago
ips.c contrib/plugins: allow setting of instructions per quantum 5 months ago
lockstep.c contrib/plugins: add compat for g_memdup2 1 year ago
meson.build contrib/plugins/uftrace: skeleton file 4 weeks ago
stoptrigger.c contrib/plugins/stoptrigger: fix 32-bit build 9 months ago
uftrace.c contrib/plugins/uftrace: implement x64 support 4 weeks ago
uftrace_symbols.py contrib/plugins/uftrace_symbols.py: generate debug files to map symbols to source 3 days ago
win32_linker.c plugins: make test/example plugins work on windows 2 years ago