]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl [2/12]: expose setfunc callback for libdwflP+libebl clients
authorSerhei Makarov <serhei@serhei.io>
Wed, 2 Apr 2025 21:09:09 +0000 (17:09 -0400)
committerSerhei Makarov <serhei@serhei.io>
Fri, 25 Apr 2025 14:09:58 +0000 (10:09 -0400)
commitbbd862311497093067e49621cc3f723cebb407ee
tree5d5bbbb6c40a763100edd2d3d59759e6c6a8de80
parentfcdadfa27be027e988de1dcd67344e4a5faf0c39
libdwfl [2/12]: expose setfunc callback for libdwflP+libebl clients

Changes for v6:

- Minor fixes as requested.

Changes for v2:

- No longer exposing this in public libdwfl.h api.

* * *

Renaming pid_set_initial_registers to
__libdwfl_set_initial_registers_thread and adding to libdwflP.h.

This callback was private to one file, but now we need to access it
from the perf_events sampling code as well.

* libdwfl/libdwflP.h (__libdwfl_set_initial_registers_thread): New function.
* libdwfl/linux-pid-attach.c (__libdwfl_set_initial_registers_thread):
  Renamed from pid_thread_state_registers_cb.
  (pid_set_initial_registers): Pass the newly renamed callback.
libdwfl/libdwflP.h
libdwfl/linux-pid-attach.c