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 B3A6EA09E9 for ; Wed, 9 Dec 2020 00:52:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E5F7DC8F8; Wed, 9 Dec 2020 00:52:41 +0100 (CET) Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) by dpdk.org (Postfix) with ESMTP id 1EE3472DE for ; Wed, 9 Dec 2020 00:52:40 +0100 (CET) Received: by mail-ej1-f47.google.com with SMTP id m19so325263ejj.11 for ; Tue, 08 Dec 2020 15:52:40 -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=iw1gFTnuJ72/alTRVJNWkb6nLU36Ua51KCzdFteHD0Y=; b=Xhdv2Ht4vQQlxbGCK7d2LzcRHGZUUD5MolN3NWUFPNYMoKnBPDs7Jeb/pDOccdu4V7 S6Y0nigOBSrnvYff2ix+kqaOCYXg5RD2LMgMYtid2LdP7VcYOLk/FTw/MviqXaEQxyHL 8Av5wNXlDVPepup/Nral20vc8oi2ZxVFZVCy2/ylvRiaN2WxyB/v8BCFzT6VOYYRZeTL sRNujHRS1KAWiHrVBNMY7oTI6E6tUJ+lf5Q0mLD4+nUj1bGdN5IE3N9gxqH/KJnuTUaz p0Jh8hdNVzMQPdIcupG2qlOwvsOnzKTe5EHlA9q1YRTPKqJlLZiZxfTkltRPYZ0Tb0k8 qz0Q== 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=iw1gFTnuJ72/alTRVJNWkb6nLU36Ua51KCzdFteHD0Y=; b=T4riDDtt0S6PITUd7/BNhV9DyLLamAbSMJE8KkdkcRzPXyB7fKxSSPiG/xcs92R6XW efnpLNqzFEoNdAyxe92TbQgFf7G1lQJrgsnboelncl/pnOu7ROc1MMnkqLYqFsoub0/e E7Gk0Gy1ubtZukXC7ArUEHjW0ZSKvDnaCOkwCat3Oyq8i5621cc8cFLTW8UqqAo2XWJ8 5HH2LwaifQ3sSpLmoiqDPgY2gQRMF71ZIketq8feeNZ1DtsFab+h52ouse+RWd+1Tgqc DLebhggiw/LzLyDdTv/UD7W4n8SoaVWJ7zhiapvi91CTtRwcl7RQnsboy7eBbubWZuHE mZmQ== X-Gm-Message-State: AOAM532KMWDPq5kPfNQR5ZCgOO62abOCYl8Nfozfv/EgfIdozioRtNp1 bcnC6cXrMO5I9fr0J48bTU3iG7MBD7+Z1Mq86ivL4ABD+VPZ1A== X-Google-Smtp-Source: ABdhPJwEcJidgV7YrB9XJ1pI3AFH5oZ7vpkrzPc09cJm9luxR1lzrWbH2QMETBVfs4RioeLEX7bsy+Hi/amL/tFpbLA= X-Received: by 2002:a17:906:9452:: with SMTP id z18mr96143ejx.389.1607471558490; Tue, 08 Dec 2020 15:52:38 -0800 (PST) MIME-Version: 1.0 From: Utkarsh Pandey Date: Tue, 8 Dec 2020 18:52:27 -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] Unable to see traces from a user defined DPDK Tracepoint 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, I am trying to test the newly added DPDK Trace Library in DPDK 20.08. I created a DPDK trace point as follows: Defined the trace point in the header file: ################################################# #include RTE_TRACE_POINT( app_dpdk_tx_tp, RTE_TRACE_POINT_ARGS(const char *str), rte_trace_point_emit_string(str); ) ################################################## Registered the trace point as follows: ###################################################### #include #include "dpdk_UDP_trace_Tx.h" RTE_TRACE_POINT_REGISTER(app_dpdk_tx_tp, app.dpdk.tx.tp) ###################################################### In my application, I try to emit simple string using the above trace-point: *app_dpdk_tx_tp("Test trace string");* I run the program as follows: $sudo ./build/app/udpTx -n 4 -l 2 --trace-dir=/home/upandey/dpdk-traces --trace=.* The resulting trace file when analyzed using babeltrace does contain traces from DPDK libraries but it does not have the traces which I have added to the application. I have tried running with the "discard" option as well, but the result is the same. I have the following questions: 1. Am I missing something in declaring and registering the trace-point? 2. Do I have to enable some config parameters in DPDK to be able to get the user-defined traces? Thanks and regards, Utkarsh Pandey