* Demi Marie Obenour:
On 11/8/22 18:46, Frank Ch. Eigler wrote:
> Demi Marie Obenour <demiobenour(a)gmail.com> writes:
>
>> Three other options I can think of:
>> [...]
>
> Another one:
>
> 4. Speed up out-of-context backtracer(s), possibly consuming
> kernel-perf-ringbuffer stack dumps, or possibly using another
> event source to trigger and work via ptrace and /proc/$pid/mem
>
> - FChE
Kernel stack dumps will not work for programs (such as OCaml 5.0)
that use segmented stacks. A userspace ptracer might work if it
is only woken up when absolutely necessary, but I suspect it would
be slow due to syscall overhead. That is why I suggested the vDSO
dumper: it would run from the process’s own context.
I'm pretty sure most of the sysprof users are not interested in
profiling OCaml programs. So that limitation should not block sysprof
improvements, I think.
Thanks,
Florian