[PATCH v21 11/14] log: add timestamp option
Stephen Hemminger
stephen at networkplumber.org
Tue Jun 4 04:33:01 CEST 2024
On Mon, 3 Jun 2024 17:44:59 -0700
Stephen Hemminger <stephen at 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 <stephen at networkplumber.org>
Ignore bogus checkpatch warning from this patch.
Checkpatch thinks that #include <stdio.h> is a spelling error!
More information about the dev
mailing list