Skip to contentSkip to conversation

babeltrace convert call_site addr to func/offset

DISCUSSION changcheng.liu--- via lttng-dev 1 participant 1 message Jun 28, 2020

lore
Share & tools
lore
#0 lore raw

Hi all,
I checked lttng-ust-cry-profile source code:
https://github.com/lttng/lttng-ust/blob/master/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.c

It traced the runtime virtual-address(VA) of the
1) called function address
2) caller address

The value of VA is different from the linked address.
Due to ASLR, the VA could be different when running the program every time.
The babeltrace could covert the "ip" in the traced context into func/offset. However, there's no context to trace the call_site and babeltrace also support convert the "call_site" into func/offset.

Does lttng community has plan to supply the function to support "call_site" context and make babeltrace could convert the "call_site" into func/offset format?

B.R.
Changcheng