In your node, call vlib_trace_buffer (...) + vlib_add_trace(...) only if pkts match the N-tuple of interest.
VLIB_BUFFER_TRACE_TRAJECTORY_INIT(...) is historical, and is only effective if you edit src/vlib/buffer.d and rebuild. No harm in adding the line of code. Packet tracing is not free. That should do it. HTH... Dave From: [email protected] <[email protected]> On Behalf Of Satya Murthy Sent: Tuesday, August 6, 2019 12:38 PM To: [email protected] Subject: [vpp-dev] tracing packets of a specific 5-tuple Hi, We have a custom graph node that receives packets from udp graph node and we would like to trace packets pertaining to a specific 5-tuple flow from our custom graph node point onwards. Does following steps really possible to achieve for this functionality ? 1. Make the custom-graph node to enable tracing by using VLIB_BUFFER_TRACE_TRAJECTORY_INIT 2. add CLI option to give the 5-tuple data 3. Based on the give 5-tuple data, store this in the custom graph node 4. compare the packet with the 5-tuple data, and mark the buffer to be traced. 5. now onwards , all the other graph nodes will trace it. Also, what % of impact on the data throughput with VPP tracing ? -- Thanks & Regards, Murthy
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13672): https://lists.fd.io/g/vpp-dev/message/13672 Mute This Topic: https://lists.fd.io/mt/32744859/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
