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 7ED33A09DF for ; Wed, 2 Dec 2020 21:34:05 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BDD29C996; Wed, 2 Dec 2020 21:34:03 +0100 (CET) Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) by dpdk.org (Postfix) with ESMTP id 2D28AC988 for ; Wed, 2 Dec 2020 21:34:01 +0100 (CET) Received: by mail-ed1-f51.google.com with SMTP id d18so5430296edt.7 for ; Wed, 02 Dec 2020 12:34:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=WbfKEtnQKK8Z52O/TNqezr8MgpU7xYjMQUIXW23dlSc=; b=a/pp/sgypRPAHAcpKAHQ2OJXbK3bn2xaQWXxdJgtIkboqEzE++91tDtcLDyaxa2wRP 45FVrKEMwxvaHeIVye7/dYim1JzczPdtYxiEoJ7zUWj4LJxKVp7NE1Pxu2Kw4duzs2FB 4cC9aBhefx6HQVFs2ihmjMz39+ct0JP4rz5xkAVz0f08aTj0Sb651omijhMCcsa7yTde 3yZnXDmF7Avb/lWBeJiQzMPjSC+6cdcZNxai4N8RgMDIOYdOa2AEykvFNHFRrUXmDcYm 3ea8PpOtgFqlEO8wfPEgDxOdgPRGsdT4Rs2GszPg4FI6KVXzcO7zeg1+A4sVo906Rjth inuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WbfKEtnQKK8Z52O/TNqezr8MgpU7xYjMQUIXW23dlSc=; b=nJwi8R+PLmEgrjF9kt3Fra82bTqrk+HsS2w6a2aW2pu+34cMJvARQkOdRREkJnwTlE 42xmemnD78JqYkroLR0zs7Swym6/8TuiMrdUxanZCt6DApvyx+rtzII5PT4+J8wF4Oda 3H9MsPDE3cl+K2JP9Hz+HWzeQlaCLTnAUttscsWqjwsKqVzni7ShabkG4QSW+GrQ/ddD 61oFPV7LGf26Q5EQqdDG53SImy1izyVCJqFErXHzHTUR4c9ue6w6iDEp6OYt8tNB4NW3 kKtXwFUODyt4QYe74UNXGF7jtXJz3acft7sEQZL/gOx2toauWBRa4ywA2VfypPrYX9tk uGfw== X-Gm-Message-State: AOAM5320oVjCioWLlsQFvLQW8QQLvxWQz85HaSwMgObhGLXTG8bBW+ET 2EnsonGYykBsxGuNGR6ESdzkyWkSKK+uksMa8zUWnoh4XOC5wg== X-Google-Smtp-Source: ABdhPJz7gdST1nO1LxyktOWhjqrergXmHCum6r45irF3tWw+Dc7JZZYU1nP+HJtAbYu8ujjXIetqyuyfIBHsofQfppE= X-Received: by 2002:a50:e00b:: with SMTP id e11mr1705277edl.303.1606941240212; Wed, 02 Dec 2020 12:34:00 -0800 (PST) MIME-Version: 1.0 From: Utkarsh Pandey Date: Wed, 2 Dec 2020 15:33:49 -0500 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Viewing DPDK Trace with babeltrace X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi All, I was trying to test the DPDK Trace feature available in DPDK 20.08. I created a simple DPDK program to send packets in which I call the trace function with simple strings. I call rte_trace_save() after that. The trace folder is created in the designated directory. It has some files of the format *channel0_X (X = 1.2 ..)* and a *metadata* file. However, when I try to view the traces using *babeltrace *or *babeltrace2, * I get the following error: *"[error] at line 579: token "size_t": syntax error, unexpected IDENTIFIER".* I tested with following babeltrace versions: 1. babeltrace1 : 1.5.8 (built from source) and 1.2.4 (rpm for centOS 7) 2. babeltrace2 : 2.0.3 (built from source) I am running CentOS 7.4. * Complete output on running babeltrace1:* *[root@j3cassini dpdk-traces]# babeltrace rte-2020-11-30-AM-11-10-22/[error] at line 579: token "size_t": syntax error, unexpected IDENTIFIER[error] Error creating AST[warning] Unable to open trace metadata for path "rte-2020-11-30-AM-11-10-22".[warning] [Context] Cannot open_trace of format ctf at path rte-2020-11-30-AM-11-10-22.[warning] [Context] cannot open trace "rte-2020-11-30-AM-11-10-22" from rte-2020-11-30-AM-11-10-22/ for reading.[error] Cannot open any trace for reading.[error] opening trace "rte-2020-11-30-AM-11-10-22/" for reading.[error] none of the specified trace paths could be opened.* *Complete output on running babeltrace2:* *[root@j3cassini dpdk-traces]# babeltrace2 rte-2020-11-30-AM-11-10-22/12-02 15:15:49.563 246238 246238 E PLUGIN/CTF/META/PARSER yyerror@parser.y:944 At line 579 in metadata stream: syntax error, unexpected IDENTIFIER: token="size_t"12-02 15:15:49.563 246238 246238 E PLUGIN/CTF/META/DECODER ctf_metadata_decoder_append_content@decoder.c:289 [N/A] Cannot create the metadata AST out of the metadata text: mdec-addr=0xcb183012-02 15:15:49.563 246238 246238 W PLUGIN/SRC.CTF.FS/QUERY support_info_query@query.c:478 cannot append metadata content: metadata-decoder-status=-212-02 15:15:49.564 246238 246238 W LIB/QUERY-EXECUTOR bt_query_executor_query@query-executor.c:249 Component class's "query" method failed: query-exec-addr=0xcb22b0, cc-addr=0xcaff40, cc-type=SOURCE, cc-name="fs", cc-partial-descr="Read CTF traces from the file sy", cc-is-frozen=0, cc-so-handle-addr=0xcaecd0, cc-so-handle-path="/usr/local/lib/babeltrace2/plugins/babeltrace-plugin-ctf.so", object="babeltrace.support-info", params-addr=0xcb0750, params-type=MAP, params-element-count=2, log-level=WARNING12-02 15:15:49.564 246238 246238 E CLI-CFG-SRC-AUTO-DISC support_info_query_all_sources@autodisc.c:509 babeltrace.support-info query failed.12-02 15:15:49.564 246238 246238 E CLI main@babeltrace2.c:2663 Command-line error: retcode=1ERROR: [Babeltrace CLI] (babeltrace2.c:2663) Command-line error: retcode=1CAUSED BY [Source auto-discovery] (autodisc.c:509) babeltrace.support-info query failed.CAUSED BY [libbabeltrace2] (query-executor.c:249) Component class's "query" method failed: query-exec-addr=0xcb22b0, cc-addr=0xcaff40, cc-type=SOURCE, cc-name="fs", cc-partial-descr="Read CTF traces from the file sy", cc-is-frozen=0, cc-so-handle-addr=0xcaecd0, cc-so-handle-path="/usr/local/lib/babeltrace2/plugins/babeltrace-plugin-ctf.so", object="babeltrace.support-info", params-addr=0xcb0750, params-type=MAP, params-element-count=2, log-level=WARNING* Questions: 1. Why is babeltrace failing to inspect the traces? 2. Has anyone used babeltrace to view DPDK traces? If not, what other tools are recommended? Thanks and regards, Utkarsh Pandey