From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> 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. Changes since v1: https://lore.kernel.org/r/20220415010007.938408-1-rostedt@xxxxxxxxxxx - Consolidated two commits into one, because when I tested each commit, the separate commits broke the agent. To keep it bisectable, the following was squashed into one commit: [6/8] trace-cmd library: Remove dependency on vsocks from tracecmd_tsync_get_session_params() [7/8] trace-cmd library: Remove vsock dependency from tracecmd_tsync_with_host() - Fix the NO_VSOCK parameters for the get_vsocket_params() stub prototype. Steven Rostedt (Google) (7): 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 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 | 48 +++++ tracecmd/trace-agent.c | 96 +++------- tracecmd/trace-record.c | 94 +-------- tracecmd/trace-vm.c | 2 +- tracecmd/trace-vsock.c | 156 +++++++++++++++ 12 files changed, 302 insertions(+), 340 deletions(-) create mode 100644 tracecmd/trace-vsock.c -- 2.35.1