Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/63605/?format=api
http://patches.dpdk.org/api/patches/63605/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20191205173128.64543-4-ciara.power@intel.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20191205173128.64543-4-ciara.power@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20191205173128.64543-4-ciara.power@intel.com", "date": "2019-12-05T17:31:25", "name": "[RFC,3/6] usertools: add process-info python script", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "9909824d9e4b8f77ade0fadceb747c776722d159", "submitter": { "id": 978, "url": "http://patches.dpdk.org/api/people/978/?format=api", "name": "Power, Ciara", "email": "ciara.power@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20191205173128.64543-4-ciara.power@intel.com/mbox/", "series": [ { "id": 7741, "url": "http://patches.dpdk.org/api/series/7741/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7741", "date": "2019-12-05T17:31:22", "name": "replace telemetry with process_info", "version": 1, "mbox": "http://patches.dpdk.org/series/7741/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/63605/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/63605/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2463DA04F2;\n\tThu, 5 Dec 2019 18:34:38 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A8C451BF9A;\n\tThu, 5 Dec 2019 18:34:16 +0100 (CET)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by dpdk.org (Postfix) with ESMTP id 0521B1BF8B\n for <dev@dpdk.org>; Thu, 5 Dec 2019 18:34:12 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 05 Dec 2019 09:34:12 -0800", "from silpixa00399953.ir.intel.com (HELO\n silpixa00399953.ger.corp.intel.com) ([10.237.222.53])\n by orsmga002.jf.intel.com with ESMTP; 05 Dec 2019 09:34:11 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.69,282,1571727600\"; d=\"scan'208\";a=\"223711833\"", "From": "Ciara Power <ciara.power@intel.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n Ciara Power <ciara.power@intel.com>", "Date": "Thu, 5 Dec 2019 17:31:25 +0000", "Message-Id": "<20191205173128.64543-4-ciara.power@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20191205173128.64543-1-ciara.power@intel.com>", "References": "<20191205173128.64543-1-ciara.power@intel.com>", "Subject": "[dpdk-dev] [RFC 3/6] usertools: add process-info python script", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Bruce Richardson <bruce.richardson@intel.com>\n\nThis patch adds a python script that can be used with the process_info\nlibrary. It connects as a client to the process_info socket, and allows\nthe user send a command and see the JSON response.\n\nThe example usage below shows the script connecting to the process_info\nsocket, and sending two basic commands entered by the user. The response\nfor each command is shown below the user input.\n\nConnecting to /var/run/dpdk/rte/process_info.22103\n--> /\n{\"/\":[\"/\",\"/eal:app_params\",\"/eal:params\",\"/eal:version\"]}\n\n--> /eal:version\n{\"/eal:version\":\"DPDK 20.02.0-rc0\"}\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\nSigned-off-by: Ciara Power <ciara.power@intel.com>\n---\n usertools/test_new_telemetry.py | 28 ++++++++++++++++++++++++++++\n 1 file changed, 28 insertions(+)\n create mode 100755 usertools/test_new_telemetry.py", "diff": "diff --git a/usertools/test_new_telemetry.py b/usertools/test_new_telemetry.py\nnew file mode 100755\nindex 000000000..84243ffae\n--- /dev/null\n+++ b/usertools/test_new_telemetry.py\n@@ -0,0 +1,28 @@\n+#! /usr/bin/python3\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2019 Intel Corporation\n+\n+import socket\n+import os\n+import sys\n+import time\n+import glob\n+\n+def handle_socket(path):\n+ print(\"Connecting to \" + path)\n+ try:\n+ fd.connect(path)\n+ except OSError:\n+ return\n+ text = input('--> ')\n+ while (text != \"quit\"):\n+ fd.send(text.encode())\n+ print(fd.recv(4096).decode())\n+ text = input('--> ')\n+ fd.close()\n+\n+fd = socket.socket(socket.AF_UNIX, socket.SOCK_SEQPACKET)\n+for f in glob.glob('/var/run/dpdk/*/process_info.*'):\n+ handle_socket(f)\n+for f in glob.glob('/run/user/%d/dpdk/*/process_info.*' % os.getuid()):\n+ handle_socket(f)\n", "prefixes": [ "RFC", "3/6" ] }{ "id": 63605, "url": "