From: ariel@twistlock.com
To: eparis@redhat.com
Cc: linux-kernel@vger.kernel.org, Ariel Zelivansky <ariel@twistlock.com>
Subject: [PATCH] Add config option to build fanotify with debug messages
Date: Tue, 22 Aug 2017 14:36:18 +0300 [thread overview]
Message-ID: <1503401778-29291-1-git-send-email-ariel@twistlock.com> (raw)
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
reply other threads:[~2017-08-22 11:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1503401778-29291-1-git-send-email-ariel@twistlock.com \
--to=ariel@twistlock.com \
--cc=eparis@redhat.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
all inboxes | Powered by JetHome®