From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>, Keir Fraser <keir@xen.org>
Subject: Re: [PATCH v2 2/2] Xen/x86: Improve information from domain_crash_synchronous
Date: Mon, 9 Sep 2013 14:49:33 +0100 [thread overview]
Message-ID: <522DD1ED.4010702@citrix.com> (raw)
In-Reply-To: <522DED0402000078000F1873@nat28.tlf.novell.com>
On 09/09/13 14:45, Jan Beulich wrote:
>>>> On 09.09.13 at 14:46, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
>> +void asm_domain_crash_synchronous(unsigned long addr)
>> +{
>> + if ( addr == 0 )
>> + addr = this_cpu(last_extable_addr);
>> +
>> + printk("domain_crash_sync called from entry.S\n"
>> + " fault at %p: ", _p(addr));
>> + print_symbol("%s\n", addr);
> I'd prefer if all output went on a single line, so that grep-ing
> though a log would turn up the fault locations. Perhaps the
> "fault at" could go in parentheses at the end of the original
> message?
Certainly - I shall respin.
>
>> #define UNLIKELY_START(cond, tag) \
>> + .Lunlikely.entry.tag: \
>> j##cond .Lunlikely.tag; \
>> .subsection 1; \
>> .Lunlikely.tag:
> I have to admit that I still dislike this dead label, albeit in the v2
> shape it doesn't look as bad anymore. Nevertheless - why can't
> you just use .Llikely.tag? That is in the original function, always
> available (i.e. even - as done here - when using __UNLIKELY_END()),
> and only very slightly off (pointing past the conditional branch
> rather than at it).
>
> And if we decided to stay with it, it still ask for it to be named
> sensibly: It is not marking the entry of an unlikely code section
> (as it sits in the "normal" code flow).
>
> Jan
I suppose pointing at the end of the unlikely section is ok, but I still
prefer pointing to the actual instruction which made the decsion.
What name would you suggest? I admit that UNLIKELY_ENTRY_LABEL() is not
the best name but I couldn't think of a better name.
~Andrew
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-09-09 13:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-09 12:46 [PATCH v2 0/2] Improvements for domain_crash_synchronous Andrew Cooper
2013-09-09 12:46 ` [PATCH v2 1/2] x86/traps: Record last extable faulting address Andrew Cooper
2013-09-09 12:46 ` [PATCH v2 2/2] Xen/x86: Improve information from domain_crash_synchronous Andrew Cooper
2013-09-09 13:45 ` Jan Beulich
2013-09-09 13:49 ` Andrew Cooper [this message]
2013-09-09 14:06 ` Jan Beulich
2013-09-09 13:44 ` [PATCH v2 0/2] Improvements for domain_crash_synchronous 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=522DD1ED.4010702@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xenproject.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.