Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F9F8C433F5 for ; Sun, 17 Apr 2022 18:21:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234758AbiDQSYe (ORCPT ); Sun, 17 Apr 2022 14:24:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231321AbiDQSYd (ORCPT ); Sun, 17 Apr 2022 14:24:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62B195FD0 for ; Sun, 17 Apr 2022 11:21:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EF8FF60C35 for ; Sun, 17 Apr 2022 18:21:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 591F7C385AC; Sun, 17 Apr 2022 18:21:56 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.95) (envelope-from ) id 1ng9X1-004Mz3-6S; Sun, 17 Apr 2022 14:21:55 -0400 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Cc: "Steven Rostedt (Google)" Subject: [PATCH v2 0/7] trace-cmd library: Remove dependency to vsockets Date: Sun, 17 Apr 2022 14:21:47 -0400 Message-Id: <20220417182154.1041513-1-rostedt@goodmis.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org From: "Steven Rostedt (Google)" 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@goodmis.org - 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