Re: [lttng-dev] Record stacktraces at userspace tracing domain

2024-12-12 Thread Dirk Eibach via lttng-dev
For more involved user space tracing I highly recommend https://github.com/wolfpld/tracy It is a different approach and probably already has all the bells and whistles you require.

[lttng-dev] Record stacktraces at userspace tracing domain

2024-12-12 Thread Alexander Krabler via lttng-dev
Hi Mathieu,   On 2024-12-11 10:43, Mathieu Desnoyers via lttng-dev wrote: > Another approach then is to add tracepoints within your C++ standard > library functions. Then you can use the caller ip of _those_ functions > and pass them to the tracepoint as "ip" context override. That's difficult, as

Re: AW: [lttng-dev] Record stacktraces at userspace tracing domain

2024-12-11 Thread Mathieu Desnoyers via lttng-dev
On 2024-12-11 05:32, Alexander Krabler via lttng-dev wrote: Hi Christophe and Kienan, Internal On 12/2/24 4:17 PM, Christophe Bédard via lttng-dev wrote: I did the same thing a while ago, i.e., trigger tracepoints on malloc/free/etc. using liblttng-ust-libc-wrapper and collect userspace callst

AW: [lttng-dev] Record stacktraces at userspace tracing domain

2024-12-11 Thread Alexander Krabler via lttng-dev
Hi Christophe and Kienan, Internal On 12/2/24 4:17 PM, Christophe Bédard via lttng-dev wrote: > I did the same thing a while ago, i.e., trigger tracepoints on > malloc/free/etc. using liblttng-ust-libc-wrapper and collect userspace > callstack information (so that the indirect calls to malloc/fre

Re: [lttng-dev] Record stacktraces at userspace tracing domain

2024-12-10 Thread Kienan Stewart via lttng-dev
Hi Alexander, Christophe, On 12/2/24 4:17 PM, Christophe Bédard via lttng-dev wrote: > Hi, > > I did the same thing a while ago, i.e., trigger tracepoints on > malloc/free/etc. using liblttng-ust-libc-wrapper and collect userspace > callstack information (so that the indirect calls to malloc/free

Re: [lttng-dev] Record stacktraces at userspace tracing domain

2024-12-02 Thread Christophe Bédard via lttng-dev
Hi, I did the same thing a while ago, i.e., trigger tracepoints on malloc/free/etc. using liblttng-ust-libc-wrapper and collect userspace callstack information (so that the indirect calls to malloc/free can be removed from an application). There is a userspace callstack context implementation her

[lttng-dev] Record stacktraces at userspace tracing domain

2024-12-02 Thread Alexander Krabler via lttng-dev
Hello, we want to record stacktraces at specific userspace events like e.g. calls to malloc and free using liblttng-ust-libc-wrapper.so. There is the callstack-user context to achieve this in general, however, it seems like tracing of userspace stacktraces is only available in the kernel tracin