Add EventHandler for function address resolution
When using lttng_ust_cyg_profile_*:func_entry|exit
events, the only relevant field is addr
, which contains the function's address.
When using babeltrace
through its CLI, it adds a debug_info
field which provides the name of this function, assuming the necessary events are present in the trace for this resolution to be possible (e.g. lttng_ust_statedump:bin_info
).
However, the babeltrace Python bindings don't seem to offer this information. Therefore this would need to be re-implemented. Both babeltrace and Trace Compass implement this feature, so it shouldn't be too hard to figure out how to do it.
Also, this might be useful to extract debug info: https://github.com/eliben/pyelftools
Edited by Christophe Bédard