Hoi,
Nice feature! Thanks for working on it, Hadi et al.
Is there any chance we could add an output type that is more easily
programmatically accessible? Perhaps an API getter which returns idx =>
{count, len, threads+, nodes+}?
I would find it useful to take this trace and count CPU cycles/path end
to end by combining it with per-node statistics, as it gives a pretty
good indication of expected packets/sec throughput by traffic mix (ip6,
ip4, mpls, vxlan-encap, etc).
groet,
Pim
On 28.05.2026 10:23, Hadi Al Sandid (halsandi) via lists.fd.io wrote:
Hello all,
Just a heads-up that the plugin 'tracepath' has been recently
introduced [1].
This plugin aims to facilitate troubleshooting with packet traces by
adding post-processing CLI commands "show trace paths / show trace
path <idx>", which respectively display VPP graph paths present in the
current trace, and enables filtering trace output to only show entries
matching a specific VPP graph path.
|vpp# trace add pg-input 100 vpp# show trace paths Found 2 unique
paths across all threads (showing top 2): [0] Count: 7 ID:
0x00000007c61bef93 Length: 7 Threads: [0] Path: pg-input ->
ethernet-input -> ip4-input -> ip4-lookup -> ip4-drop -> error-drop ->
drop [1] Count: 5 ID: 0x0000000707c1f778 Length: 7 Threads: [0] Path:
pg-input -> ethernet-input -> ip4-input -> ip4-lookup -> ip4-rewrite
-> pg1-output -> pg1-tx vpp# show trace path 0 # Display all trace
entries matching path [0] above.. |
More usage example can be found in the docs [2]. Thanks to folks for
their review/discussions around this plugin (Benoit Ganne, Guillaume
Solignac, Yoann Desmouceaux, Paul Ponchon)
[1] https://gerrit.fd.io/r/c/vpp/+/44754
<https://gerrit.fd.io/r/c/vpp/+/44754>
[2] https://s3-docs.fd.io/vpp/26.06/developer/plugins/tracepath.html
<https://s3-docs.fd.io/vpp/26.06/developer/plugins/tracepath.html>
--
Pim van Pelt<[email protected]>
PBVP1-RIPEhttps://ipng.ch/
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#27024): https://lists.fd.io/g/vpp-dev/message/27024
Mute This Topic: https://lists.fd.io/mt/119526717/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/14379924/21656/631435203/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-