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] common/symbols: Drop '+0/<len>' when printing function pointer symbols.
Date: Fri, 4 Oct 2013 11:18:08 +0100 [thread overview]
Message-ID: <524E95E0.6070603@citrix.com> (raw)
In-Reply-To: <524EB14F02000078000F8D18@nat28.tlf.novell.com>
On 04/10/13 11:15, Jan Beulich wrote:
>>>> On 04.10.13 at 12:02, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
>> Introduce print_function() with the same semantics as print_symbol(). The
>> underlying __print_symbol() now takes an extra boolean indicating whether we
>> are expecting to print a function pointer. In the case that we are
>> expecting
>> a function pointer, and the offset is 0, drop the offset and length.
>>
>> The requirement for offset being 0 is for the (hopefully never, but we
>> really
>> want to know if it does happen) case where a Xen function pointer is not
>> actually pointing at the start of a function.
>>
>> The relevent print_symbol() functions are updated to print_function()
> There's no reason why the same couldn't apply to data symbols.
> Rather than doing it this way (and with a mis-named function), I'd
> much prefer going the printk() format string extensions route that
> Linux went. This would at once allow re-combining the broken up
> printing when symbols are involved into single invocations of printk().
> This has been on my (mental) to-do list for quite some time, but
> hasn't been important enough for me to ever get to it.
>
> Jan
>
Right - that is two very quick recommendations for %pS and %pF. I will
see what I can do in my next bit of free time. (FWIW, this patch came
about from frustration during my HPET interrupt debugging work, and I
was looking for a momentary break from the HPET code itself)
~Andrew
prev parent reply other threads:[~2013-10-04 10:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-04 10:02 [PATCH] common/symbols: Drop '+0/<len>' when printing function pointer symbols Andrew Cooper
2013-10-04 10:12 ` Ian Campbell
2013-10-04 10:15 ` Jan Beulich
2013-10-04 10:18 ` Andrew Cooper [this message]
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=524E95E0.6070603@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).