mbox series

[0/8] trace-cmd library: Remove dependency to vsockets

Message ID 20220415010007.938408-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series trace-cmd library: Remove dependency to vsockets | expand

Message

Steven Rostedt April 15, 2022, 12:59 a.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

[ Sending again from my server in case my laptop had issues sending ]

In an effort to have trace-cmd agent and the time synchronization to
work with networks, the dependency to vsockets needs to be removed. In
fact, libtracecmd should not have any dependency to vsockets, as
everything can be done externally. This simplifies the code, and allows
the use of trace-msg to be used in more scenarios.

I tested host guest tracing to make sure that it did not break the
existing use cases, although there may still be an outlier that I didn't
cover.

Steven Rostedt (Google) (8):
  trace-cmd: Add NO_VSOCK make option to force vsock code off
  trace-cmd library: Remove ports from clock context
  trace-cmd library: Remove vsocket dependency on P2P protocol
  trace-cmd library: Remove dependency on vsocks for sync identifiers
  trace-cmd library: Have tracecmd_tsync_with_guest() not depend on
    cid/port
  trace-cmd library: Remove dependency on vsocks from
    tracecmd_tsync_get_session_params()
  trace-cmd library: Remove vsock dependency from
    tracecmd_tsync_with_host()
  trace-cmd: Move vsocket code into its own file

 Makefile                                      |   4 +
 .../include/private/trace-cmd-private.h       |  12 +-
 lib/trace-cmd/include/trace-tsync-local.h     |  21 +-
 lib/trace-cmd/trace-msg.c                     |   3 +-
 lib/trace-cmd/trace-timesync-ptp.c            |  25 ++-
 lib/trace-cmd/trace-timesync.c                | 180 ++----------------
 tracecmd/Makefile                             |   1 +
 tracecmd/include/trace-local.h                |  49 +++++
 tracecmd/trace-agent.c                        |  96 +++-------
 tracecmd/trace-record.c                       |  94 +--------
 tracecmd/trace-vm.c                           |   2 +-
 tracecmd/trace-vsock.c                        | 156 +++++++++++++++
 12 files changed, 303 insertions(+), 340 deletions(-)
 create mode 100644 tracecmd/trace-vsock.c