RE: [PATCH v9 5/5] eal: add option to put timestamp on console output

2024-03-20 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, 20 March 2024 15.39 > > On Wed, 20 Mar 2024 09:34:21 +0100 > Morten Brørup wrote: > > > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > > Sent: Wednesday, 20 March 2024 04.34 > > > > > > On Tue, 19

Re: [PATCH v9 5/5] eal: add option to put timestamp on console output

2024-03-20 Thread Stephen Hemminger
On Wed, 20 Mar 2024 09:34:21 +0100 Morten Brørup wrote: > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Wednesday, 20 March 2024 04.34 > > > > On Tue, 19 Mar 2024 17:13:35 +0100 > > Morten Brørup wrote: > > > > > > From: Stephen Hemminger [mailto:step...@networkplum

RE: [PATCH v9 5/5] eal: add option to put timestamp on console output

2024-03-20 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, 20 March 2024 04.34 > > On Tue, 19 Mar 2024 17:13:35 +0100 > Morten Brørup wrote: > > > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > > Sent: Tuesday, 19 March 2024 16.52 > > > > > > On Tue, 19 M

Re: [PATCH v9 5/5] eal: add option to put timestamp on console output

2024-03-19 Thread Stephen Hemminger
On Tue, 19 Mar 2024 17:13:35 +0100 Morten Brørup wrote: > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Tuesday, 19 March 2024 16.52 > > > > On Tue, 19 Mar 2024 08:37:30 +0100 > > Morten Brørup wrote: > > > > > > static ssize_t > > > > console_log_write(__rte_unus

RE: [PATCH v9 5/5] eal: add option to put timestamp on console output

2024-03-19 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Tuesday, 19 March 2024 16.52 > > On Tue, 19 Mar 2024 08:37:30 +0100 > Morten Brørup wrote: > > > > static ssize_t > > > console_log_write(__rte_unused void *c, const char *buf, size_t > size) > > > { > > > + struct timespec

Re: [PATCH v9 5/5] eal: add option to put timestamp on console output

2024-03-19 Thread Stephen Hemminger
On Tue, 19 Mar 2024 08:37:30 +0100 Morten Brørup wrote: > > static ssize_t > > console_log_write(__rte_unused void *c, const char *buf, size_t size) > > { > > + struct timespec ts; > > ssize_t ret; > > > > - /* write on stderr */ > > - ret = fwrite(buf, 1, size, stderr); > > + if

RE: [PATCH v9 5/5] eal: add option to put timestamp on console output

2024-03-19 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, 18 March 2024 23.03 > > 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 t

[PATCH v9 5/5] eal: add option to put timestamp on console output

2024-03-18 Thread Stephen Hemminger
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. The timestamp format is chosen to look like the default Linux dmesg timestamp. The first few lines a