From patchwork Thu Aug 29 09:23:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eelco Chaudron X-Patchwork-Id: 1978337 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=J3/j+U0g; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WvbVP58jHz1ydy for ; Thu, 29 Aug 2024 19:25:33 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id B42F280D98; Thu, 29 Aug 2024 09:25:31 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id lDNjLXKKZLzU; Thu, 29 Aug 2024 09:25:30 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.9.56; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org C233580CF0 Authentication-Results: smtp1.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=J3/j+U0g Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id C233580CF0; Thu, 29 Aug 2024 09:25:30 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 9FD23C0012; Thu, 29 Aug 2024 09:25:30 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 26C50C0011 for ; Thu, 29 Aug 2024 09:25:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0AE9B80D81 for ; Thu, 29 Aug 2024 09:25:29 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id hPMMjIAcMY-F for ; Thu, 29 Aug 2024 09:25:28 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=170.10.133.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=echaudro@redhat.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 3E39080CF0 Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 3E39080CF0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp1.osuosl.org (Postfix) with ESMTPS id 3E39080CF0 for ; Thu, 29 Aug 2024 09:25:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724923526; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JeJvf+uXJSqt0pkb2LCjyBJOSY2u97rv/V0IvdQZr6A=; b=J3/j+U0g599v5PcsAlNtQXq2ggv0egucAXjT8Qag+gSPBw76woFkWcq3RqZJGpEaogLohu BaF/bCIsCwRv9uGLbhcHOoYLlpdN2fUKmRGS5ELZUU7Zil6haDiAOwyzn3h6SEcUZtHSbX 2uXGOoamzUjo+Guy+mpW9Rk0aEPkEPc= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-312-n5KWwqO9P8CdrB22kKtdJg-1; Thu, 29 Aug 2024 05:25:24 -0400 X-MC-Unique: n5KWwqO9P8CdrB22kKtdJg-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6E223195608A for ; Thu, 29 Aug 2024 09:25:23 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.194.72]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 79DD619560AE; Thu, 29 Aug 2024 09:25:22 +0000 (UTC) From: Eelco Chaudron To: dev@openvswitch.org Date: Thu, 29 Aug 2024 11:23:56 +0200 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH v3 0/2] Update and rename dpif_nl_exec_monitor.py. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Updated the dpif_nl_exec_monitor.py utility to also optionally monitor the other DPIF netlink operations, i.e., DPIF_OP_FLOW_PUT, DPIF_OP_FLOW_DEL and DPIF_OP_FLOW_GET. Due to the nature of the change, also renamed the script to dpif_op_nl_monitor.py. v2: - Renamed the script. - Fixed some general comments from Ilya. - Updated the documentation and build files due to the script name change. v3: - Fixed header comments/help text. - Fixed spelling mistake - Also made the execute operational optional. Eelco Chaudron (2): utilities: Update dpif_nl_exec_monitor.py to include new actions. utilities: Updated dpif_nl_exec_monitor.py to debug all operations. Documentation/topics/usdt-probes.rst | 7 +- utilities/automake.mk | 6 +- ..._exec_monitor.py => dpif_op_nl_monitor.py} | 310 +++++++++++++----- 3 files changed, 233 insertions(+), 90 deletions(-) rename utilities/usdt-scripts/{dpif_nl_exec_monitor.py => dpif_op_nl_monitor.py} (69%)