Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/69134/?format=api
https://patches.dpdk.org/api/patches/69134/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200422190349.3768487-15-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": "<20200422190349.3768487-15-jerinj@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200422190349.3768487-15-jerinj@marvell.com", "date": "2020-04-22T19:03:31", "name": "[v7,14/32] eal/trace: hook internal trace APIs to Linux", "commit_ref": null, "pull_url": null, "state": "accepted", "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/20200422190349.3768487-15-jerinj@marvell.com/mbox/", "series": [ { "id": 9574, "url": "https://patches.dpdk.org/api/series/9574/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=9574", "date": "2020-04-22T19:03:17", "name": "DPDK Trace support", "version": 7, "mbox": "https://patches.dpdk.org/series/9574/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/69134/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/69134/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 EA372A00C2;\n\tWed, 22 Apr 2020 21:06:24 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C3F661D607;\n\tWed, 22 Apr 2020 21:04:58 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 04F3E1C2AE\n for <dev@dpdk.org>; Wed, 22 Apr 2020 21:04:47 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 03MIxcZV013127; Wed, 22 Apr 2020 12:04:47 -0700", "from sc-exch02.marvell.com ([199.233.58.182])\n by mx0a-0016f401.pphosted.com with ESMTP id 30fxwpk00v-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 22 Apr 2020 12:04:47 -0700", "from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH02.marvell.com\n (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Wed, 22 Apr 2020 12:04:45 -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; Wed, 22 Apr 2020 12:04:45 -0700", "from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14])\n by maili.marvell.com (Postfix) with ESMTP id 407493F703F;\n Wed, 22 Apr 2020 12:04:43 -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=xkC8Q80PhOZBO5n3ryCCi7semqaTT+ufANa7BYYZ91RQnDIzR7T2mJymWl2fBmcC7z4U\n etRvjA/W/k9jRFXRYMoXAZf5yGlnxjsK1T/L837C7swItozTCOCUXzVfrPGwp4C1dCc2\n kAlDKHXRMvdCVs+RLbVFAHuu7sJu7R3h1J8d5JUrBOCbmxQ6f7TKzv3w/BH8ntguqcfs\n MN5omjWOXwwZVeIJcd8PoW+5AkcAQQ9f+UjAZYBDBDT+1m/p3rJb/PN7wFkv5Md8XwZs\n rxOHlhWtUOdmVbuNZ9a21U6EY9VXFtNwN/HdW/VW0YlVdOC4Rn2F7hOOZiSxa8VFAU5i oA==", "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": "Thu, 23 Apr 2020 00:33:31 +0530", "Message-ID": "<20200422190349.3768487-15-jerinj@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20200422190349.3768487-1-jerinj@marvell.com>", "References": "<20200419100133.3232316-1-jerinj@marvell.com>\n <20200422190349.3768487-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-22_06:2020-04-22,\n 2020-04-22 signatures=0", "Subject": "[dpdk-dev] [PATCH v7 14/32] 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": [ "v7", "14/32" ] }{ "id": 69134, "url": "