xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xen: Kconfig: Add DEBUG_XEN config option
@ 2017-02-01 11:19 Andrii Anisov
  2017-02-01 12:17 ` Juergen Gross
  0 siblings, 1 reply; 6+ messages in thread
From: Andrii Anisov @ 2017-02-01 11:19 UTC (permalink / raw)
  To: xen-devel; +Cc: julien.grall, sstabellini, andrii_anisov

From: Andrii Anisov <andrii_anisov@epam.com>

Add a debug option to enable xen drivers debug code.

Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
---
 drivers/xen/Kconfig  | 8 ++++++++
 drivers/xen/Makefile | 2 ++
 2 files changed, 10 insertions(+)

diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig
index f15bb3b7..733c433 100644
--- a/drivers/xen/Kconfig
+++ b/drivers/xen/Kconfig
@@ -298,4 +298,12 @@ config XEN_SYMS
 config XEN_HAVE_VPMU
        bool
 
+config DEBUG_XEN
+	bool "XEN Drivers debug"
+	depends on DEBUG_KERNEL
+	help
+	  Say Y here if you want to enable XEN drivers debug code.
+
+	  If you are unsure about this, say N here.
+
 endmenu
diff --git a/drivers/xen/Makefile b/drivers/xen/Makefile
index 8feab810..c886e9d 100644
--- a/drivers/xen/Makefile
+++ b/drivers/xen/Makefile
@@ -42,3 +42,5 @@ xen-evtchn-y				:= evtchn.o
 xen-gntdev-y				:= gntdev.o
 xen-gntalloc-y				:= gntalloc.o
 xen-privcmd-y				:= privcmd.o
+
+ccflags-$(CONFIG_DEBUG_XEN) := -DDEBUG
\ No newline at end of file
-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-02-01 14:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-01 11:19 [PATCH] xen: Kconfig: Add DEBUG_XEN config option Andrii Anisov
2017-02-01 12:17 ` Juergen Gross
2017-02-01 12:55   ` Julien Grall
2017-02-01 13:12     ` Juergen Gross
2017-02-01 14:11       ` Konrad Rzeszutek Wilk
2017-02-01 12:58   ` Andrii Anisov

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).