Merge tag 'fsnotify_for_v5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / samples / Kconfig
index b0503ef..bec3528 100644 (file)
@@ -26,7 +26,7 @@ config SAMPLE_TRACE_PRINTK
 config SAMPLE_FTRACE_DIRECT
        tristate "Build register_ftrace_direct() example"
        depends on DYNAMIC_FTRACE_WITH_DIRECT_CALLS && m
-       depends on X86_64 # has x86_64 inlined asm
+       depends on HAVE_SAMPLE_FTRACE_DIRECT
        help
          This builds an ftrace direct function example
          that hooks to wake_up_process and prints the parameters.
@@ -120,6 +120,15 @@ config SAMPLE_CONNECTOR
          with it.
          See also Documentation/driver-api/connector.rst
 
+config SAMPLE_FANOTIFY_ERROR
+       bool "Build fanotify error monitoring sample"
+       depends on FANOTIFY && CC_CAN_LINK && HEADERS_INSTALL
+       help
+         When enabled, this builds an example code that uses the
+         FAN_FS_ERROR fanotify mechanism to monitor filesystem
+         errors.
+         See also Documentation/admin-guide/filesystem-monitoring.rst.
+
 config SAMPLE_HIDRAW
        bool "hidraw sample"
        depends on CC_CAN_LINK && HEADERS_INSTALL
@@ -224,3 +233,9 @@ config SAMPLE_WATCH_QUEUE
          sb_notify() syscalls and the KEYCTL_WATCH_KEY keyctl() function.
 
 endif # SAMPLES
+
+config HAVE_SAMPLE_FTRACE_DIRECT
+       bool
+
+config HAVE_SAMPLE_FTRACE_MULTI_DIRECT
+       bool