[PATCH 01/13] libebl [1/13]: api for perf register handling, start with x86_64

Serhei Makarov serhei@serhei.io
Tue Apr 1 21:10:05 GMT 2025



On Wed, Mar 19, 2025, at 11:53 AM, Mark Wielaard wrote:
> Also the libebl interface is very verbose for this mask.
> Clearly copied from how frame_nregs is done.
> So fine for now. But we might want to look into something simpler for
> both of these. Both fetching frame_nregs and perf_frame_regs_mask feel
> very inefficient.
Since I spent some time rethinking this, just a quick note that in the next iteration of the patchset (incoming ~soon) I decided the best thing to do is imitate the way the backend *core-note.c files are structured (x86_corenote.c included in x86_64_corenote.c, i386_corenote.c; likewise a new file linux-perf-regs.c can provide the pieces for x86_64, i386 and [future-proofing] other arches).

-- 
All the best,
    Serhei


More information about the Elfutils-devel mailing list