Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/83142/?format=api
https://patches.dpdk.org/api/patches/83142/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1604110397-3012-3-git-send-email-timothy.mcdaniel@intel.com/", "project": { "id": 1, "url": "https://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": "<1604110397-3012-3-git-send-email-timothy.mcdaniel@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1604110397-3012-3-git-send-email-timothy.mcdaniel@intel.com", "date": "2020-10-31T02:12:56", "name": "[v13,02/23] event/dlb: add dynamic logging", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "089ca953ed3cd71503927fa561231037f1776f6d", "submitter": { "id": 826, "url": "https://patches.dpdk.org/api/people/826/?format=api", "name": "Timothy McDaniel", "email": "timothy.mcdaniel@intel.com" }, "delegate": { "id": 310, "url": "https://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1604110397-3012-3-git-send-email-timothy.mcdaniel@intel.com/mbox/", "series": [ { "id": 13517, "url": "https://patches.dpdk.org/api/series/13517/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=13517", "date": "2020-10-31T02:12:54", "name": "Add DLB PMD", "version": 13, "mbox": "https://patches.dpdk.org/series/13517/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/83142/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/83142/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 127D3A04E6;\n\tSat, 31 Oct 2020 03:12:11 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 97467CA12;\n\tSat, 31 Oct 2020 03:11:40 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id BF82DC9E0\n for <dev@dpdk.org>; Sat, 31 Oct 2020 03:11:34 +0100 (CET)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Oct 2020 19:11:32 -0700", "from txasoft-yocto.an.intel.com ([10.123.72.192])\n by fmsmga004.fm.intel.com with ESMTP; 30 Oct 2020 19:11:32 -0700" ], "IronPort-SDR": [ "\n ZMRzZ6k/Evar1iSwuDDFkLVhuqgoDceui0ma+m2vDF3sU+fqAGkONqc8Tps6yPIdCQUuJNvXXU\n rcikdYWly3tA==", "\n AQMOLSY8VRJdjvR8kSOyw586HU1vya4dzW1io1Nqz34MiE38re/6vfVpi4CWACOkqgO1JflIun\n aMy4inHqp7dA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9790\"; a=\"165192123\"", "E=Sophos;i=\"5.77,435,1596524400\"; d=\"scan'208\";a=\"165192123\"", "E=Sophos;i=\"5.77,435,1596524400\"; d=\"scan'208\";a=\"352056836\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Timothy McDaniel <timothy.mcdaniel@intel.com>", "To": "", "Cc": "dev@dpdk.org, erik.g.carrillo@intel.com, gage.eads@intel.com,\n harry.van.haaren@intel.com, jerinj@marvell.com, thomas@monjalon.net", "Date": "Fri, 30 Oct 2020 21:12:56 -0500", "Message-Id": "<1604110397-3012-3-git-send-email-timothy.mcdaniel@intel.com>", "X-Mailer": "git-send-email 1.7.10", "In-Reply-To": "<1604110397-3012-1-git-send-email-timothy.mcdaniel@intel.com>", "References": "<20200612212434.6852-2-timothy.mcdaniel@intel.com>\n <1604110397-3012-1-git-send-email-timothy.mcdaniel@intel.com>", "Subject": "[dpdk-dev] [PATCH v13 02/23] event/dlb: add dynamic logging", "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": "This commit adds base support for dynamic logging.\nThe default log level is NOTICE. Dynamic logging\nis used exclusively throughout this patchset.\n\nSigned-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>\nReviewed-by: Gage Eads <gage.eads@intel.com>\n---\n drivers/event/dlb/dlb.c | 7 +++++++\n drivers/event/dlb/dlb_log.h | 25 +++++++++++++++++++++++++\n drivers/event/dlb/meson.build | 3 +--\n 3 files changed, 33 insertions(+), 2 deletions(-)\n create mode 100644 drivers/event/dlb/dlb.c\n create mode 100644 drivers/event/dlb/dlb_log.h", "diff": "diff --git a/drivers/event/dlb/dlb.c b/drivers/event/dlb/dlb.c\nnew file mode 100644\nindex 0000000..e03aa21\n--- /dev/null\n+++ b/drivers/event/dlb/dlb.c\n@@ -0,0 +1,7 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2016-2020 Intel Corporation\n+ */\n+\n+#include <rte_log.h>\n+\n+RTE_LOG_REGISTER(eventdev_dlb_log_level, pmd.event.dlb, NOTICE);\ndiff --git a/drivers/event/dlb/dlb_log.h b/drivers/event/dlb/dlb_log.h\nnew file mode 100644\nindex 0000000..c69c9e5\n--- /dev/null\n+++ b/drivers/event/dlb/dlb_log.h\n@@ -0,0 +1,25 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2016-2020 Intel Corporation\n+ */\n+\n+#ifndef _DLB_EVDEV_LOG_H_\n+#define _DLB_EVDEV_LOG_H_\n+\n+extern int eventdev_dlb_log_level;\n+\n+/* Dynamic logging */\n+#define DLB_LOG_IMPL(level, fmt, args...) \\\n+\trte_log(RTE_LOG_ ## level, eventdev_dlb_log_level, \"%s\" fmt \"\\n\", \\\n+\t\t__func__, ##args)\n+\n+#define DLB_LOG_INFO(fmt, args...) \\\n+\tDLB_LOG_IMPL(INFO, fmt, ## args)\n+\n+#define DLB_LOG_ERR(fmt, args...) \\\n+\tDLB_LOG_IMPL(ERR, fmt, ## args)\n+\n+/* remove debug logs at compile time unless actually debugging */\n+#define DLB_LOG_DBG(fmt, args...) \\\n+\tRTE_LOG_DP(DEBUG, PMD, fmt, ## args)\n+\n+#endif /* _DLB_EVDEV_LOG_H_ */\ndiff --git a/drivers/event/dlb/meson.build b/drivers/event/dlb/meson.build\nindex 5324043..1e7d5ad 100644\n--- a/drivers/event/dlb/meson.build\n+++ b/drivers/event/dlb/meson.build\n@@ -7,7 +7,6 @@ if not is_linux or not dpdk_conf.has('RTE_ARCH_X86_64')\n subdir_done()\n endif\n \n-sources = files(\n-)\n+sources = files('dlb.c')\n \n deps += ['mbuf', 'mempool', 'ring', 'pci', 'bus_pci']\n", "prefixes": [ "v13", "02/23" ] }{ "id": 83142, "url": "