On Mon, 3 Jun 2024 17:44:59 -0700 Stephen Hemminger <step...@networkplumber.org> wrote:
> When debugging driver or startup issues, it is useful to have > a timestamp on each message printed. The messages in syslog > already have a timestamp, but often syslog is not available > during testing. > > There are multiple timestamp formats similar to Linux dmesg. > The default is time relative since startup (when first > step of logging initialization is done by constructor). > Other alternative formats are delta, ctime, reltime and iso formats. > > Example: > $ dpdk-testpmd --log-timestamp -- -i > [ 0.008610] EAL: Detected CPU lcores: 8 > [ 0.008634] EAL: Detected NUMA nodes: 1 > [ 0.008792] EAL: Detected static linkage of DPDK > [ 0.010620] EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > [ 0.012618] EAL: Selected IOVA mode 'VA' > [ 0.016675] testpmd: No probed ethernet devices > Interactive-mode selected > > Signed-off-by: Stephen Hemminger <step...@networkplumber.org> Ignore bogus checkpatch warning from this patch. Checkpatch thinks that #include <stdio.h> is a spelling error!