Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/47890/?format=api
http://patches.dpdk.org/api/patches/47890/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181106124912.40700-2-vipin.varghese@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": "<20181106124912.40700-2-vipin.varghese@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20181106124912.40700-2-vipin.varghese@intel.com", "date": "2018-11-06T12:49:05", "name": "[v4,2/9] app/procinfo: add compare for new options", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "211b002f2b29fd9eadb70562e628bd6ec1f611cb", "submitter": { "id": 882, "url": "http://patches.dpdk.org/api/people/882/?format=api", "name": "Varghese, Vipin", "email": "vipin.varghese@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/20181106124912.40700-2-vipin.varghese@intel.com/mbox/", "series": [ { "id": 2297, "url": "http://patches.dpdk.org/api/series/2297/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2297", "date": "2018-11-06T12:49:04", "name": "[v4,1/9] app/procinfo: add usage for new debug", "version": 4, "mbox": "http://patches.dpdk.org/series/2297/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/47890/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/47890/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 286E8493D;\n\tTue, 6 Nov 2018 13:53:00 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 16426493D\n\tfor <dev@dpdk.org>; Tue, 6 Nov 2018 13:52:57 +0100 (CET)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t06 Nov 2018 04:52:57 -0800", "from unknown (HELO saesrv02-S2600CWR.intel.com) ([10.224.122.203])\n\tby fmsmga001.fm.intel.com with ESMTP; 06 Nov 2018 04:52:54 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.54,471,1534834800\"; d=\"scan'208\";a=\"105696481\"", "From": "Vipin Varghese <vipin.varghese@intel.com>", "To": "dev@dpdk.org, thomas@monjalon.net, reshma.pattan@intel.com,\n\tstephen@networkplumber.org, john.mcnamara@intel.com", "Cc": "stephen1.byrne@intel.com, michael.j.glynn@intel.com, amol.patel@intel.com,\n\tVipin Varghese <vipin.varghese@intel.com>", "Date": "Tue, 6 Nov 2018 18:19:05 +0530", "Message-Id": "<20181106124912.40700-2-vipin.varghese@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20181106124912.40700-1-vipin.varghese@intel.com>", "References": "<20181106124912.40700-1-vipin.varghese@intel.com>", "Subject": "[dpdk-dev] [PATCH v4 2/9] app/procinfo: add compare for new options", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add code for new debug options to compare usage strings and set\nenable flag.\n\nSigned-off-by: Vipin Varghese <vipin.varghese@intel.com>\n---\n\nV3:\n - variables from debug to show - Vipin Varghese\n\nV2:\n - compare string from dbg to show - Stephen Hemminger\n---\n app/proc-info/main.c | 30 ++++++++++++++++++++++++++++++\n 1 file changed, 30 insertions(+)", "diff": "diff --git a/app/proc-info/main.c b/app/proc-info/main.c\nindex 5779f07e7..76266d5cb 100644\n--- a/app/proc-info/main.c\n+++ b/app/proc-info/main.c\n@@ -63,6 +63,18 @@ static uint32_t mem_info;\n /**< Enable displaying xstat name. */\n static uint32_t enable_xstats_name;\n static char *xstats_name;\n+/**< Enable show port. */\n+static uint32_t enable_shw_port;\n+/**< Enable show tm. */\n+static uint32_t enable_shw_tm;\n+/**< Enable show crypto. */\n+static uint32_t enable_shw_crypto;\n+/**< Enable show ring. */\n+static uint32_t enable_shw_ring;\n+static char *ring_name;\n+/**< Enable show mempool. */\n+static uint32_t enable_shw_mempool;\n+static char *mempool_name;\n \n /**< Enable xstats by ids. */\n #define MAX_NB_XSTATS_IDS 1024\n@@ -247,6 +259,24 @@ proc_info_parse_args(int argc, char **argv)\n \t\t\telse if (!strncmp(long_option[option_index].name, \"xstats-reset\",\n \t\t\t\t\tMAX_LONG_OPT_SZ))\n \t\t\t\treset_xstats = 1;\n+\t\t\telse if (!strncmp(long_option[option_index].name,\n+\t\t\t\t\t\"show-port\", MAX_LONG_OPT_SZ))\n+\t\t\t\tenable_shw_port = 1;\n+\t\t\telse if (!strncmp(long_option[option_index].name,\n+\t\t\t\t\t\"show-tm\", MAX_LONG_OPT_SZ))\n+\t\t\t\tenable_shw_tm = 1;\n+\t\t\telse if (!strncmp(long_option[option_index].name,\n+\t\t\t\t\t\"show-crypto\", MAX_LONG_OPT_SZ))\n+\t\t\t\tenable_shw_crypto = 1;\n+\t\t\telse if (!strncmp(long_option[option_index].name,\n+\t\t\t\t\t\"show-ring\", MAX_LONG_OPT_SZ)) {\n+\t\t\t\tenable_shw_ring = 1;\n+\t\t\t\tring_name = optarg;\n+\t\t\t} else if (!strncmp(long_option[option_index].name,\n+\t\t\t\t\t\"show-mempool\", MAX_LONG_OPT_SZ)) {\n+\t\t\t\tenable_shw_mempool = 1;\n+\t\t\t\tmempool_name = optarg;\n+\t\t\t}\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\t/* Print xstat single value given by name*/\n", "prefixes": [ "v4", "2/9" ] }{ "id": 47890, "url": "