From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Julien Grall <julien.grall@arm.com>
Cc: Tim Deegan <tim@xen.org>,
sstabellini@kernel.org, Wei Liu <wei.liu2@citrix.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
xen-devel@lists.xen.org, Jan Beulich <jbeulich@suse.com>,
Doug Goldstein <cardoe@cardoe.com>
Subject: Re: [for-4.8 1/2] xen/arm: Convert DEBUG_DT to Kconfig
Date: Tue, 24 May 2016 09:38:50 -0400 [thread overview]
Message-ID: <20160524133850.GC29391@char.us.oracle.com> (raw)
In-Reply-To: <1464085241-12929-2-git-send-email-julien.grall@arm.com>
On Tue, May 24, 2016 at 11:20:40AM +0100, Julien Grall wrote:
> Convert device-tree debugging to 'Kconfig' as
> CONFIG_DEBUG_TREE_DEBUG.
>
> The option is not enabled by default because the output is very
> verbose.
>
> Signed-off-by: Julien Grall <julien.grall@arm.com>
>
> ---
> Cc: Andrew Cooper <andrew.cooper3@citrix.com>
> Cc: George Dunlap <George.Dunlap@eu.citrix.com>
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> Cc: Stefano Stabellini <sstabellini@kernel.org>
> Cc: Tim Deegan <tim@xen.org>
> Cc: Wei Liu <wei.liu2@citrix.com>
> Cc: Doug Goldstein <cardoe@cardoe.com>
> ---
> xen/Kconfig.debug | 7 +++++++
> xen/arch/arm/domain_build.c | 4 +---
> xen/common/device_tree.c | 4 +---
> 3 files changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug
> index 303bf36..59be34d 100644
> --- a/xen/Kconfig.debug
> +++ b/xen/Kconfig.debug
> @@ -55,6 +55,13 @@ config VERBOSE_DEBUG
> Guest output from HYPERVISOR_console_io and hypervisor parsing
> ELF images (dom0) is logged in the Xen ring buffer.
>
> +config DEVICE_TREE_DEBUG
> + bool "Device tree debug messages"
> + depends on HAS_DEVICE_TREE
> + ---help---
> + Device tree parsing and DOM0 device tree building messages is
> + logged in the Xen ring buffer
s/is logged/are logged/
Also missing stop at the end.
Perhaps also add:
"If unsure, say N here."
Or could this be part of the VERBOSE one (which spews out data about
ELF parsing and allows guests to do the console_io_write hypercalls?).
> +
> endif # DEBUG || EXPERT
>
> endmenu
> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> index 00dc07a..fb035ff 100644
> --- a/xen/arch/arm/domain_build.c
> +++ b/xen/arch/arm/domain_build.c
> @@ -42,9 +42,7 @@ static void __init parse_dom0_mem(const char *s)
> }
> custom_param("dom0_mem", parse_dom0_mem);
>
> -//#define DEBUG_DT
> -
> -#ifdef DEBUG_DT
> +#ifdef CONFIG_DEVICE_TREE_DEBUG
> # define DPRINT(fmt, args...) printk(XENLOG_DEBUG fmt, ##args)
> #else
> # define DPRINT(fmt, args...) do {} while ( 0 )
> diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c
> index 06a2837..0df2e4b 100644
> --- a/xen/common/device_tree.c
> +++ b/xen/common/device_tree.c
> @@ -54,9 +54,7 @@ struct dt_alias_prop {
>
> static LIST_HEAD(aliases_lookup);
>
> -// #define DEBUG_DT
> -
> -#ifdef DEBUG_DT
> +#ifdef CONFIG_DEVICE_TREE_DEBUG
> # define dt_dprintk(fmt, args...) printk(XENLOG_DEBUG fmt, ##args)
> static void dt_dump_addr(const char *s, const __be32 *addr, int na)
> {
> --
> 1.9.1
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-05-24 13:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-24 10:20 [for-4.8 0/2] xen/arm: Convert DEBUG_DT to Kconfig Julien Grall
2016-05-24 10:20 ` [for-4.8 1/2] " Julien Grall
2016-05-24 13:38 ` Konrad Rzeszutek Wilk [this message]
2016-05-24 14:44 ` Julien Grall
2016-05-24 14:16 ` Edgar E. Iglesias
2016-05-24 10:20 ` [for-4.8 2/2] xen/arm: Provide device tree debugging helper in a single place Julien Grall
2016-05-24 13:40 ` Konrad Rzeszutek Wilk
2016-05-24 14:17 ` Edgar E. Iglesias
2016-05-24 10:21 ` [for-4.8 0/2] xen/arm: Convert DEBUG_DT to Kconfig Julien Grall
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=20160524133850.GC29391@char.us.oracle.com \
--to=konrad.wilk@oracle.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=cardoe@cardoe.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=julien.grall@arm.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=wei.liu2@citrix.com \
--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 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).