Re: [RFC] sketch of an unwinder cache interface for elfutils libdwfl

2024-12-13 Thread Serhei Makarov
On Wed, Dec 11, 2024, at 6:24 AM, Milian Wolff wrote: > On Dienstag, 10. Dezember 2024 22:42:25 Mitteleuropäische Normalzeit Serhei > Makarov wrote: >> This email sketches an 'unwinder cache' interface for libdwfl, derived from >> recent eu-stacktrace code [1] and based on Christian Hergert's a

Re: [RFC] sketch of an unwinder cache interface for elfutils libdwfl

2024-12-12 Thread Frank Ch. Eigler
Hi - > [...] > If there's something we can do here on the glibc side, please let us > know. I think by default, dlclose needs to unmap the address space, so > options might be somewhat limited. But for debugging purposes, I've > long since wanted a mode where dlclose keeps the address space rese

Re: [RFC] sketch of an unwinder cache interface for elfutils libdwfl

2024-12-12 Thread Florian Weimer
* William Cohen: > The dwfl_report_proc_map() will handle when things are added to the > memory map. Is there anything to handle the inverse event when memory > is removed from the process memory map, such as a dlcose()? If there's something we can do here on the glibc side, please let us know.

Re: [RFC] sketch of an unwinder cache interface for elfutils libdwfl

2024-12-11 Thread Milian Wolff
On Mittwoch, 11. Dezember 2024 15:58:32 Mitteleuropäische Normalzeit Serhei Makarov wrote: > On Wed, Dec 11, 2024, at 9:46 AM, William Cohen wrote: > > Hi Serhei, > > > > The dwfl_report_proc_map() will handle when things are added to the > > memory map. Is there anything to handle the inverse e

Re: [RFC] sketch of an unwinder cache interface for elfutils libdwfl

2024-12-11 Thread Milian Wolff
On Mittwoch, 11. Dezember 2024 17:09:19 Mitteleuropäische Normalzeit Christian Hergert wrote: > On vacation until 2025 so my replies will be sparse here :) > > On 12/11/24 3:24 AM, Milian Wolff wrote: > > For symmetry reasons, we also need an `..._end` method. And what about > > explicitly removi

Re: [RFC] sketch of an unwinder cache interface for elfutils libdwfl

2024-12-11 Thread Christian Hergert
On vacation until 2025 so my replies will be sparse here :) On 12/11/24 3:24 AM, Milian Wolff wrote: For symmetry reasons, we also need an `..._end` method. And what about explicitly removing processes once they have finished (PERF_RECORD_EXIT)? One area you can run into issues with this is th

Re: [RFC] sketch of an unwinder cache interface for elfutils libdwfl

2024-12-11 Thread Serhei Makarov
On Wed, Dec 11, 2024, at 9:46 AM, William Cohen wrote: > Hi Serhei, > > The dwfl_report_proc_map() will handle when things are added to the > memory map. Is there anything to handle the inverse event when memory > is removed from the process memory map, such as a dlcose()? > Interestingly, li

Re: [RFC] sketch of an unwinder cache interface for elfutils libdwfl

2024-12-11 Thread William Cohen
On 12/10/24 16:42, Serhei Makarov wrote: > This email sketches an 'unwinder cache' interface for libdwfl, derived from > recent eu-stacktrace code [1] and based on Christian Hergert's adaptation of > eu-stacktrace as sysprof-live-unwinder [2]. The intent is to remove the need > for a lot of boil

Re: [RFC] sketch of an unwinder cache interface for elfutils libdwfl

2024-12-11 Thread Milian Wolff
On Dienstag, 10. Dezember 2024 22:42:25 Mitteleuropäische Normalzeit Serhei Makarov wrote: > This email sketches an 'unwinder cache' interface for libdwfl, derived from > recent eu-stacktrace code [1] and based on Christian Hergert's adaptation > of eu-stacktrace as sysprof-live-unwinder [2]. The

[RFC] sketch of an unwinder cache interface for elfutils libdwfl

2024-12-10 Thread Serhei Makarov
This email sketches an 'unwinder cache' interface for libdwfl, derived from recent eu-stacktrace code [1] and based on Christian Hergert's adaptation of eu-stacktrace as sysprof-live-unwinder [2]. The intent is to remove the need for a lot of boilerplate code that would be identical among profil