This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch 0/5] Install fast tracepoint via IPA


Hi,
This patch series teach GDBserver to install fast tracepoint
through IPA.  This is an alternative to existing downloading
fast tracepoint and installation by writing to inferior.  Compared
with existing approach, this new approach has following benefits,

  - More efficient.  Data is passed on `command buffer', and data is
copied to inferior once.  This is better than current approach which
needs write inferior multiple times.
  - More arch-independent.  Current approach requires that both
GDB/GDBserver and agent/inferior has the same word-size and same
struct layout, which may limit the IPA's usage in bi-arch cases.
In this approach, data are copied in `command buffer' in a
arch-independent manner, so limitations go away.

With respect to the code, GDBserver usually takes two steps download
and install for a given fast tracepoint.  In this patch, GDBserver
sends commands along with all information of a tracepoint to agent,
and agent process them as a whole.  So, this requires existing code
of tracepoint download and install go as close as possible.  Patch 2/5
and patch 3/5 are to move tracepoint download and install as close
as possible.

The real stuff is in patch 4/5, and patch 5/5 is about selecting IPA
when running GDB testsuite.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]