All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Tim Deegan <tim@xen.org>, Keir Fraser <keir@xen.org>,
	Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH v3 4/5] xen/console: Provide timestamps as an offset since boot
Date: Fri, 7 Mar 2014 10:27:49 +0000	[thread overview]
Message-ID: <53199F25.7050809@citrix.com> (raw)
In-Reply-To: <5319A3C30200007800121D87@nat28.tlf.novell.com>

On 07/03/14 09:47, Jan Beulich wrote:
>>>> On 06.03.14 at 20:28, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
>> --- a/docs/misc/xen-command-line.markdown
>> +++ b/docs/misc/xen-command-line.markdown
>> @@ -275,11 +275,20 @@ cleared.  This allows a single port to be shared by two 
>> subsystems
>>  makes sense on its own.
>>  
>>  ### console\_timestamps
>> -> `= <boolean>`
>> +> `= none | date | boot`
>>  
>> -> Default: `false`
>> +> Default: `boot`
> I'd prefer the default to remain "no time stamps". They're useful
> occasionally but not generally, and they consume serial console
> bandwidth.

I would disgree with usefulness, but can see your point - I shall revert
the default back to none.

>
>> +static void __init parse_console_timestamps(char *s)
>> +{
>> +    if ( *s == '\0' || /* Compat for old booleanparam() */
>> +         !strcmp(s, "date") )
>> +        opt_con_timestamp_mode = TSM_DATE;
>> +    else if ( !strcmp(s, "boot") )
>> +        opt_con_timestamp_mode = TSM_BOOT;
>> +    else if ( !strcmp(s, "none") )
>> +        opt_con_timestamp_mode = TSM_NONE;
>> +    else
>> +        printk(XENLOG_ERR "Unrecognised timestamp mode '%s'\n", s);
> Printing from command line parsing routines is IIRC rather pointless
> (i.e. ISTR it goes no-where), and in the majority of other cases I
> think we don't warn about improper arguments of options. With
> the command line being logged as a whole, there's also not much
> point since the incorrect value can be easily determined by looking
> there.
>
> Jan
>

It appears at the top of xl dmesg, but not on the serial console.  I
shall drop it.

~Andrew

  reply	other threads:[~2014-03-07 10:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06 19:28 [PATCH v3 0/5] Improvements to console timestamps Andrew Cooper
2014-03-06 19:28 ` [PATCH v3 1/5] xen/time: Move wallclock_time() declaration into common code Andrew Cooper
2014-03-06 19:28 ` [PATCH v3 2/5] x86/time: Always count s_time from Xen boot Andrew Cooper
2014-03-06 19:28 ` [PATCH v3 3/5] x86/time: Initialise time earlier during start_secondary() Andrew Cooper
2014-03-06 19:28 ` [PATCH v3 4/5] xen/console: Provide timestamps as an offset since boot Andrew Cooper
2014-03-07  9:47   ` Jan Beulich
2014-03-07 10:27     ` Andrew Cooper [this message]
2014-03-06 19:28 ` [PATCH v3 5/5] xen/console: Traditional console timestamps including milliseconds Andrew Cooper
2014-03-06 23:54   ` Don Slutz
2014-03-07  0:41     ` Andrew Cooper
2014-03-07 23:33       ` Don Slutz
2014-03-11 10:43         ` Ian Campbell
2014-03-11 11:32           ` Andrew Cooper
2014-03-11 11:39             ` Tim Deegan
2014-03-11 12:47             ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53199F25.7050809@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=keir@xen.org \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.