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 F3DD2A04B1; Wed, 26 Aug 2020 01:24:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2BFD9DE3; Wed, 26 Aug 2020 01:24:21 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 1AC6CB62 for ; Wed, 26 Aug 2020 01:24:19 +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 07PNGfT2008880 for ; Tue, 25 Aug 2020 16:24:19 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=JC/Jg4L+0TWZcGnFqvhNftMuV7jqDe53Gj2FyqrdX58=; b=CsGzBaDyI32+KFXvqma1qM+FaH0EW1YLXYUdjURQKVoryLTHZZs/K4N7QcT8WD6d8UlK DE4m7FTUNFigsQAIm8tkp6HRbpFlPPwJfwXexHqDVJsUmso3lMDM1I8bYCvIZr5y9ND4 1pr4JFZ7RJHdeW2U+TOXWGxV7gixEDy6z7amZQR8zpvxQqPngEMcaZns1Kul5uBGtR0R VVytckR/yyLqrVtYadjgd9TFRiiXeLQntFzPJlRGWDlPYsYWGinhos0A90C5xftA3tmO /4UulIUCkqTd5TGSXtehA2caeshv5/ufxUaxchWPYN/vQKZ8bsoujggoZKAhNlBMh9mr MQ== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3332vmx3um-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 25 Aug 2020 16:24:18 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 25 Aug 2020 16:24:17 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) 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:16 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 25 Aug 2020 16:24:16 -0700 Received: from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.161.240]) by maili.marvell.com (Postfix) with ESMTP id 083363F7044; Tue, 25 Aug 2020 16:24:14 -0700 (PDT) From: To: , Sunil Kumar Kori CC: , Pavan Nikhilesh Date: Wed, 26 Aug 2020 04:54:08 +0530 Message-ID: <20200825232410.975-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 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 1/2] trace: fix size_t field emitter 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 CTF format metadata, this is needed by CTF analyzers to parse the emitted CTF trace. Fixes: 262c4ee791c6 ("trace: add size_t field emitter") Signed-off-by: Pavan Nikhilesh --- lib/librte_eal/common/eal_common_trace_ctf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/librte_eal/common/eal_common_trace_ctf.c b/lib/librte_eal/common/eal_common_trace_ctf.c index 302e2bb74..9dc91df0f 100644 --- a/lib/librte_eal/common/eal_common_trace_ctf.c +++ b/lib/librte_eal/common/eal_common_trace_ctf.c @@ -83,6 +83,11 @@ meta_data_type_emit(char **meta, int *offset) "typealias integer {size = 32; base = x;} := long;\n" #endif "typealias integer {size = 8; signed = false; encoding = ASCII; } := string_bounded_t;\n\n" +#ifdef RTE_ARCH_64 + "typealias integer {size = 64; base = x;} := size_t;\n" +#else + "typealias integer {size = 32; base = x;} := size_t;\n" +#endif "typealias floating_point {\n" " exp_dig = 8;\n" " mant_dig = 24;\n" -- 2.17.1