From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 08AF3A04B1; Wed, 26 Aug 2020 01:24:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7601B100C; Wed, 26 Aug 2020 01:24:26 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 71C48FEB for ; Wed, 26 Aug 2020 01:24:25 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07PNGXLA008700; Tue, 25 Aug 2020 16:24:21 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=nNH+IARPX1AR1x4DCYRQwGbAif2dOxRWQWaHQyE6wXg=; b=HgNMMgf27P9vp+nLHJmqR9WfUJjqM29KSWkwua5snr2fhj8wR6OmSTBERBWL21TYq2OI 2SVi+zTJ4slYUQGH8L/nDEed1Dj62qXrBT2zsIej1gBxe8QqbKDw8Fz/LILWfY0+rAFF RmxNZYn7+QTp5DBHL3pG67/1GiDLkUXEQ9PHXbZ4bBIR787aJl8F/Fm/DhMahF2AKgRX pKutr+l8NPPX4o/cDoP5RdE7YJGLqZ/dP+a9KaX/9HPOEutYsccwvFDFl1X6g3lTSu2V koAgV5FOPm+srKR2eZ5dfjNXzJWcpeDAtve+A8EIxFbQ61tXXe68Z+61XVhbqukuO/OU NQ== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 3332vmx3up-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 25 Aug 2020 16:24:21 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 25 Aug 2020 16:24:19 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 25 Aug 2020 16:24:19 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 25 Aug 2020 16:24:19 -0700 Received: from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.161.240]) by maili.marvell.com (Postfix) with ESMTP id B30C03F7044; Tue, 25 Aug 2020 16:24:17 -0700 (PDT) From: To: , Sunil Kumar Kori , Ray Kinsella , Neil Horman CC: , Pavan Nikhilesh Date: Wed, 26 Aug 2020 04:54:09 +0530 Message-ID: <20200825232410.975-2-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200825232410.975-1-pbhagavatula@marvell.com> References: <20200825232410.975-1-pbhagavatula@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.235, 18.0.687 definitions=2020-08-25_10:2020-08-25, 2020-08-25 signatures=0 Subject: [dpdk-dev] [PATCH 2/2] trace: add size_t as a generic trace point X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh Add size_t as a generic trace point. Also, update test_generic_trace_point() to validate size_t emitter. Signed-off-by: Pavan Nikhilesh --- app/test/test_trace.c | 1 + lib/librte_eal/common/eal_common_trace_points.c | 2 ++ lib/librte_eal/include/rte_eal_trace.h | 6 ++++++ lib/librte_eal/rte_eal_version.map | 3 +++ 4 files changed, 12 insertions(+) diff --git a/app/test/test_trace.c b/app/test/test_trace.c index ddcf416b2..0f9df83c4 100644 --- a/app/test/test_trace.c +++ b/app/test/test_trace.c @@ -166,6 +166,7 @@ test_generic_trace_points(void) rte_eal_trace_generic_double(20000.5000004); rte_eal_trace_generic_ptr(&tmp); rte_eal_trace_generic_str("my string"); + rte_eal_trace_generic_size_t(sizeof(void *)); RTE_EAL_TRACE_GENERIC_FUNC; return TEST_SUCCESS; diff --git a/lib/librte_eal/common/eal_common_trace_points.c b/lib/librte_eal/common/eal_common_trace_points.c index 292ec91be..0b0b25461 100644 --- a/lib/librte_eal/common/eal_common_trace_points.c +++ b/lib/librte_eal/common/eal_common_trace_points.c @@ -36,6 +36,8 @@ RTE_TRACE_POINT_REGISTER(rte_eal_trace_generic_ptr, lib.eal.generic.ptr) RTE_TRACE_POINT_REGISTER(rte_eal_trace_generic_str, lib.eal.generic.string) +RTE_TRACE_POINT_REGISTER(rte_eal_trace_generic_size_t, + lib.eal.generic.size_t) RTE_TRACE_POINT_REGISTER(rte_eal_trace_generic_func, lib.eal.generic.func) diff --git a/lib/librte_eal/include/rte_eal_trace.h b/lib/librte_eal/include/rte_eal_trace.h index 6b1a813c7..19df549d2 100644 --- a/lib/librte_eal/include/rte_eal_trace.h +++ b/lib/librte_eal/include/rte_eal_trace.h @@ -129,6 +129,12 @@ RTE_TRACE_POINT( rte_trace_point_emit_string(str); ) +RTE_TRACE_POINT( + rte_eal_trace_generic_size_t, + RTE_TRACE_POINT_ARGS(size_t sz), + rte_trace_point_emit_size_t(sz); +) + RTE_TRACE_POINT( rte_eal_trace_generic_func, RTE_TRACE_POINT_ARGS(const char *func), diff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map index 0b18e2ef8..4ccfa593f 100644 --- a/lib/librte_eal/rte_eal_version.map +++ b/lib/librte_eal/rte_eal_version.map @@ -397,6 +397,9 @@ EXPERIMENTAL { rte_mp_disable; rte_thread_register; rte_thread_unregister; + + #added in 20.11 + __rte_eal_trace_generic_size_t; }; INTERNAL { -- 2.17.1