[dpdk-users] Unable to see traces from a user defined DPDK Tracepoint
Utkarsh Pandey
utkarshece80587 at gmail.com
Wed Dec 9 00:52:27 CET 2020
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.h>
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 <rte_trace_point_register.h>
#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
More information about the users
mailing list