VPP/cpeldump

From fd.io
< VPP
Revision as of 13:40, 14 February 2016 by Dbarach (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

$ cpeldump --input-file <filename> [--output-file <filename>] [--verbose]

Description

Cpeldump pretty-prints a CPEL format file. This is often useful for a number of reasons, including the ability to use a text editor to search for specific events. Depending on the specific instrumentation involved, event logs can be of very long duration. Hence, the displayed timestamp format: hhh:mm:ss:msec:usec.

Sample output:

000:00:00:005:052 prm_server t13(98370)         THREAD/THRECEIVE          pid:98370 tid:13 
000:00:00:005:053 fib_mgr t3(110673)            THREAD/THRUNNING          pid:110673 tid:3 cpu:0
000:00:00:005:055 fib_mgr t3(110673)            lwm-sendv-dn              0x80020af8
000:00:00:005:099 fib_mgr t3(110673)            lwm-sendv                 0x80020af8
000:00:00:005:100 fib_mgr t3(110673)            COMM/SND_MESSAGE          rcvid:0x00020055 pid:98370
000:00:00:005:102 fib_mgr t3(110673)            THREAD/THREPLY            pid:110673 tid:3 
000:00:00:005:102 prm_server t13(98370)         THREAD/THRUNNING          pid:98370 tid:13 cpu:0
000:00:00:005:103 prm_server t13(98370)         COMM/REC_MESSAGE          rcvid:0x00020055 pid:98370

Enhancement opportunities

Delta vs. absolute timestamp format, to shrink the output width. Sorting, filtration, event-chasing (see the g2 event chasing writeup)