Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/68887/?format=api
https://patches.dpdk.org/api/patches/68887/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200419100133.3232316-16-jerinj@marvell.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": "<20200419100133.3232316-16-jerinj@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200419100133.3232316-16-jerinj@marvell.com", "date": "2020-04-19T10:01:15", "name": "[v6,15/33] eal/trace: hook internal trace APIs to Linux", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a30e2dbd0d057c6a510bdf88c733956ec2b10546", "submitter": { "id": 1188, "url": "https://patches.dpdk.org/api/people/1188/?format=api", "name": "Jerin Jacob Kollanukkaran", "email": "jerinj@marvell.com" }, "delegate": { "id": 24651, "url": "https://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200419100133.3232316-16-jerinj@marvell.com/mbox/", "series": [ { "id": 9495, "url": "https://patches.dpdk.org/api/series/9495/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=9495", "date": "2020-04-19T10:01:02", "name": "DPDK Trace support", "version": 6, "mbox": "https://patches.dpdk.org/series/9495/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/68887/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/68887/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 BD1C2A0561;\n\tSun, 19 Apr 2020 12:06:50 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3D5CE1D5FE;\n\tSun, 19 Apr 2020 12:03:00 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 5F1EB1D5F6\n for <dev@dpdk.org>; Sun, 19 Apr 2020 12:02:53 +0200 (CEST)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 03JA0tur020047; Sun, 19 Apr 2020 03:02:35 -0700", "from sc-exch01.marvell.com ([199.233.58.181])\n by mx0b-0016f401.pphosted.com with ESMTP id 30g12njxc3-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Sun, 19 Apr 2020 03:02:35 -0700", "from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Sun, 19 Apr 2020 03:02:32 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Sun, 19 Apr 2020 03:02:33 -0700", "from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14])\n by maili.marvell.com (Postfix) with ESMTP id E48933F703F;\n Sun, 19 Apr 2020 03:02:30 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0818;\n bh=WmyRqa86hZOCsh2DUqN9iCZBA83SdXkZZuInWIlH41k=;\n b=fdxS4srYorm+wO1Avi3zsjRsZk8TSLQjsTzmGNAA5KFRvW7A6sGjY3sBGZ52B+yLvvu5\n PPhApgI0Ua0KuuyhzUyYbE3dBX9V7YOa+0T5VBJzJzkQSsOdrrVYxqD+qaPuTGM+9ltP\n Zv6pS8UEeeceFwRANmIn5hswjsgbIfwFLOli5+U+1n/Q2/Kzj3UXFeTLkMR0FHrkaWIe\n TXzipkU+hHDg9j/VW7Zo9ZZxoPcUU9nH3kMMIzdKPKsDpQWRZ5s1lTasZJfiY8ulp5ig\n LYWcppLgCUTsATrz7zaSj4jX2L2FU3gfpD84iscPQcAnCQmiwKOJPxUtUOtSziVKiiLs 3Q==", "From": "<jerinj@marvell.com>", "To": "", "CC": "<dev@dpdk.org>, <thomas@monjalon.net>, <bruce.richardson@intel.com>,\n <david.marchand@redhat.com>, <mattias.ronnblom@ericsson.com>,\n <skori@marvell.com>, Jerin Jacob <jerinj@marvell.com>", "Date": "Sun, 19 Apr 2020 15:31:15 +0530", "Message-ID": "<20200419100133.3232316-16-jerinj@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20200419100133.3232316-1-jerinj@marvell.com>", "References": "<20200413150116.734047-1-jerinj@marvell.com>\n <20200419100133.3232316-1-jerinj@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676\n definitions=2020-04-19_02:2020-04-17,\n 2020-04-19 signatures=0", "Subject": "[dpdk-dev] [PATCH v6 15/33] eal/trace: hook internal trace APIs to\n\tLinux", "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: Jerin Jacob <jerinj@marvell.com>\n\nConnect the internal trace interface API to Linux EAL.\n\nSigned-off-by: Jerin Jacob <jerinj@marvell.com>\n---\n lib/librte_eal/common/eal_common_thread.c | 4 +++-\n lib/librte_eal/linux/eal.c | 9 +++++++++\n lib/librte_eal/linux/eal_thread.c | 4 ++++\n 3 files changed, 16 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_eal/common/eal_common_thread.c b/lib/librte_eal/common/eal_common_thread.c\nindex 99fe1aa4e..52c908b9e 100644\n--- a/lib/librte_eal/common/eal_common_thread.c\n+++ b/lib/librte_eal/common/eal_common_thread.c\n@@ -15,6 +15,8 @@\n #include <rte_lcore.h>\n #include <rte_memory.h>\n #include <rte_log.h>\n+#include <rte_trace.h>\n+#include <rte_trace_point.h>\n \n #include \"eal_internal_cfg.h\"\n #include \"eal_private.h\"\n@@ -165,7 +167,7 @@ static void *rte_thread_init(void *arg)\n \t\tpthread_barrier_destroy(¶ms->configured);\n \t\tfree(params);\n \t}\n-\n+\t__rte_trace_mem_per_thread_alloc();\n \treturn start_routine(routine_arg);\n }\n \ndiff --git a/lib/librte_eal/linux/eal.c b/lib/librte_eal/linux/eal.c\nindex d1e532fc1..937d867aa 100644\n--- a/lib/librte_eal/linux/eal.c\n+++ b/lib/librte_eal/linux/eal.c\n@@ -58,6 +58,7 @@\n #include \"eal_filesystem.h\"\n #include \"eal_hugepages.h\"\n #include \"eal_memcfg.h\"\n+#include \"eal_trace.h\"\n #include \"eal_options.h\"\n #include \"eal_vfio.h\"\n #include \"hotplug_mp.h\"\n@@ -1012,6 +1013,12 @@ rte_eal_init(int argc, char **argv)\n \t\treturn -1;\n \t}\n \n+\tif (eal_trace_init() < 0) {\n+\t\trte_eal_init_alert(\"Cannot init trace\");\n+\t\trte_errno = EFAULT;\n+\t\treturn -1;\n+\t}\n+\n \tif (eal_option_device_parse()) {\n \t\trte_errno = ENODEV;\n \t\trte_atomic32_clear(&run_once);\n@@ -1327,6 +1334,8 @@ rte_eal_cleanup(void)\n \t\trte_memseg_walk(mark_freeable, NULL);\n \trte_service_finalize();\n \trte_mp_channel_cleanup();\n+\trte_trace_save();\n+\teal_trace_fini();\n \teal_cleanup_config(&internal_config);\n \treturn 0;\n }\ndiff --git a/lib/librte_eal/linux/eal_thread.c b/lib/librte_eal/linux/eal_thread.c\nindex 61fb2ed45..24772fc3d 100644\n--- a/lib/librte_eal/linux/eal_thread.c\n+++ b/lib/librte_eal/linux/eal_thread.c\n@@ -20,6 +20,8 @@\n #include <rte_per_lcore.h>\n #include <rte_eal.h>\n #include <rte_lcore.h>\n+#include <rte_trace.h>\n+#include <rte_trace_point.h>\n \n #include \"eal_private.h\"\n #include \"eal_thread.h\"\n@@ -124,6 +126,8 @@ eal_thread_loop(__rte_unused void *arg)\n \tRTE_LOG(DEBUG, EAL, \"lcore %u is ready (tid=%zx;cpuset=[%s%s])\\n\",\n \t\tlcore_id, (uintptr_t)thread_id, cpuset, ret == 0 ? \"\" : \"...\");\n \n+\t__rte_trace_mem_per_thread_alloc();\n+\n \t/* read on our pipe to get commands */\n \twhile (1) {\n \t\tvoid *fct_arg;\n", "prefixes": [ "v6", "15/33" ] }{ "id": 68887, "url": "