From: Jason Baron <jbaron@redhat.com>
To: Joe Perches <joe@perches.com>
Cc: gregkh@linuxfoundation.org, jim.cromie@gmail.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/3] dynamic_debug: Add print_hex_dump_bytes/debug support and cleanups
Date: Wed, 5 Dec 2012 21:14:53 -0500 [thread overview]
Message-ID: <20121206021453.GA2834@redhat.com> (raw)
In-Reply-To: <1354745106.8320.12.camel@joe-AO722>
On Wed, Dec 05, 2012 at 02:05:06PM -0800, Joe Perches wrote:
> On Wed, 2012-12-05 at 16:48 -0500, Jason Baron wrote:
> > Here's a collection of the latest dynamic debug patches that I have
> > pending.
>
> Any update on the jump table support?
>
I have patches that implement the support, although they are a bit hacky
due to header dependencies. However, the main reason I didn't post them
yet is that the 'data' section increases quite a bit due to the
increased table size (text section is reduced, since we are saving
instructions). On x86_64, the the upper 32-bits of each table entry are
always '0xffffffff', so the table could be reduced by a factor of 2.
Although, I haven't figured out a simple way of doing so. Perhaps, the
'data' section bloat is ok, due to the runtime savings, though. I can
dig out the % increase data.
While we're on new features, I think it would be nice to have the ability
to enable the core dynamic debug library - lib/dynamic_debug.c,
independently from the debug statements that use it. So, having
CONFIG_DYNAMIC_DEBUG would just configure the infrastructure bits, and
something such as CONFIG_DYNAMIC_DEBUG_PRINTK could enable pr_debug() and
friends. In that way subsystems that want to use dynamic output can be
enabled/disabled independently. So they could do:
#ifdef CONFIG_DRIVER_FOO_DEBUG
#define drv_foo_debug() dev_dbg()
#else
#define drv_foo_debug() {}
where CONFIG_DRIVER_FOO_DEBUG would enable CONFIG_DYNAMIC_DEBUG.
Thanks,
-Jason
prev parent reply other threads:[~2012-12-06 2:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-05 21:48 [PATCH 0/3] dynamic_debug: Add print_hex_dump_bytes/debug support and cleanups Jason Baron
2012-12-05 21:48 ` [PATCH 1/3] dynamic_debug: Fix vpr_<foo> logging styles Jason Baron
2012-12-05 21:48 ` [PATCH 3/3] dynamic_debug: add pr_errs before -EINVALs Jason Baron
2012-12-05 21:48 ` [PATCH 2/3] dynamic_debug: dynamic hex dump Jason Baron
2012-12-05 22:05 ` [PATCH 0/3] dynamic_debug: Add print_hex_dump_bytes/debug support and cleanups Joe Perches
2012-12-06 2:14 ` Jason Baron [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=20121206021453.GA2834@redhat.com \
--to=jbaron@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=jim.cromie@gmail.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.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).