DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Unable to see traces from a user defined DPDK Tracepoint
@ 2020-12-08 23:52 Utkarsh Pandey
  0 siblings, 0 replies; only message in thread
From: Utkarsh Pandey @ 2020-12-08 23:52 UTC (permalink / raw)
  To: 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.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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-08 23:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08 23:52 [dpdk-users] Unable to see traces from a user defined DPDK Tracepoint Utkarsh Pandey

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ https://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git