* [PATCH] Add config option to build fanotify with debug messages
@ 2017-08-22 11:36 ariel
0 siblings, 0 replies; only message in thread
From: ariel @ 2017-08-22 11:36 UTC (permalink / raw)
To: eparis; +Cc: linux-kernel, Ariel Zelivansky
From: Ariel Zelivansky <ariel@twistlock.com>
Signed-off-by: Ariel Zelivansky <ariel@twistlock.com>
---
fs/notify/fanotify/Kconfig | 9 +++++++++
fs/notify/fanotify/Makefile | 1 +
2 files changed, 10 insertions(+)
diff --git a/fs/notify/fanotify/Kconfig b/fs/notify/fanotify/Kconfig
index e5f911b..80b670f 100644
--- a/fs/notify/fanotify/Kconfig
+++ b/fs/notify/fanotify/Kconfig
@@ -24,3 +24,12 @@ config FANOTIFY_ACCESS_PERMISSIONS
hierarchical storage managent systems.
If unsure, say N.
+
+config FANOTIFY_DEBUG
+ bool "fanotify debug messages"
+ depends on FANOTIFY
+ default n
+ ---help---
+ Say Y here to enable kernel debug messages (pr_debug) for fanotify.
+
+ If unsure, say N.
diff --git a/fs/notify/fanotify/Makefile b/fs/notify/fanotify/Makefile
index 0999213..5043e75 100644
--- a/fs/notify/fanotify/Makefile
+++ b/fs/notify/fanotify/Makefile
@@ -1 +1,2 @@
obj-$(CONFIG_FANOTIFY) += fanotify.o fanotify_user.o
+ccflags-$(CONFIG_FANOTIFY_DEBUG) += -DDEBUG
--
2.7.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-22 11:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-22 11:36 [PATCH] Add config option to build fanotify with debug messages ariel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®