A tool to map binary trace to source code with help of objdump and Emacs.
cd src
make
Put 'tracemapping.el' to your Emacs plugin directory, such as ~/.emacs.d. Then put the following code in your .emacs, init.el, site-load.el, or other relevant file
(add-to-list 'load-path "path-to-tracemapping.el")
(require 'tracemapping)
objdump -dl vmlinux > example.dl
./sourceline example.dl > example.sourceline
'example.trace' is a binary trace file you got from qemu or other dynamic program analysis tools.
./tracemap example.sourceline example.trace > example.tracemap
./get-fun.py example.tracemap > example.fun
Open example.tracemap with Emacs, "Ctrl+z" to jump to source code, you may need to select your source code directory first.
Open example.fun with Emacs, click to jump to source code or tracemap file.