From: Steven Rostedt <srostedt@redhat.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: chrisw@sous-sol.org, xen-devel@lists.xensource.com
Subject: Re: [PATCH - resend] addition of loglevel for printf in Xen HV
Date: Thu, 26 Oct 2006 11:16:46 -0400 [thread overview]
Message-ID: <4540D15E.6020901@redhat.com> (raw)
In-Reply-To: <C166827A.353E%Keir.Fraser@cl.cam.ac.uk>
Keir Fraser wrote:
>
> I think yet-another-little-tool in dom0 is the right way to go. We can add a
> sysctl to get/set the parameters. It can pretty-print the current parameters
> and also provide a way of changing them. I don't think there's any benefit
> to integration with xm -- it's not like this needs to be integrated with
> xend or anything like that.
That should be easy enough. What's the best way to communicate between
dom0 and the HV? Add a hypercall for this?
>
> Yes, we should also have a way to set them as a boot parameter. I suggest we
> should only enact those explicit parameters when dom0 starts to boot though
> (no need to stop Xen being noisy in initial boot). We could have an extra
> parameter (e.g., 'quiet') to override that if someone really cares.
Yeah, but this can be handled after the initial work is done.
>
> It'd be nice to have debug-key support for changing it too, but actually
> that's probably not so important if we have the dom0 tool.
My original patch included a debug key for log level. I'm sure it won't
be too hard to add something to change the thresholds too. (for those
that only communicate to the machine via a serial console).
>
> Everything you said I agree with, so please do go hack it up. :-)
Thanks! Will start hacking!
>
> Another thought... By pushing the rate-limiting into printk() itself, we
> lose the ability to print all-or-nothing for related blocks of printk (e.g.,
> register dumps). We might want a 'same as previous line' specifier, which
> would print/not-print same as previous output line?
>
Hmm, I wonder if we should have a XENLOG_CRASH level which is above
XENLOG_ERR. This will be when the system is actually taking a dump, and
we want to show everything. Or just simply force the thresholds to max
just before showing the crash print outputs. Or add a variable to know
we are in the process of crashing, and have printk ignore the print rate
limit if that's the case, similar to the oops_in_progress of Linux.
-- Steve
next prev parent reply other threads:[~2006-10-26 15:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-20 19:23 [PATCH - resend] addition of loglevel for printf in Xen HV Steven Rostedt
2006-10-25 11:13 ` Keir Fraser
2006-10-26 13:30 ` Steven Rostedt
2006-10-26 14:19 ` Keir Fraser
2006-10-26 15:16 ` Steven Rostedt [this message]
2006-10-26 16:28 ` Keir Fraser
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=4540D15E.6020901@redhat.com \
--to=srostedt@redhat.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=chrisw@sous-sol.org \
--cc=xen-devel@lists.xensource.com \
/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.