Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. menuconfig SAMPLES
  2. bool "Sample kernel code"
  3. help
  4. You can build and test sample kernel code here.
  5. if SAMPLES
  6. config SAMPLE_TRACE_EVENTS
  7. tristate "Build trace_events examples -- loadable modules only"
  8. depends on EVENT_TRACING && m
  9. help
  10. This build trace event example modules.
  11. config SAMPLE_TRACE_PRINTK
  12. tristate "Build trace_printk module - tests various trace_printk formats"
  13. depends on EVENT_TRACING && m
  14. help
  15. This builds a module that calls trace_printk() and can be used to
  16. test various trace_printk() calls from a module.
  17. config SAMPLE_KOBJECT
  18. tristate "Build kobject examples -- loadable modules only"
  19. depends on m
  20. help
  21. This config option will allow you to build a number of
  22. different kobject sample modules showing how to use kobjects,
  23. ksets, and ktypes properly.
  24. If in doubt, say "N" here.
  25. config SAMPLE_KPROBES
  26. tristate "Build kprobes examples -- loadable modules only"
  27. depends on KPROBES && m
  28. help
  29. This build several kprobes example modules.
  30. config SAMPLE_KRETPROBES
  31. tristate "Build kretprobes example -- loadable modules only"
  32. default m
  33. depends on SAMPLE_KPROBES && KRETPROBES
  34. config SAMPLE_HW_BREAKPOINT
  35. tristate "Build kernel hardware breakpoint examples -- loadable module only"
  36. depends on HAVE_HW_BREAKPOINT && m
  37. help
  38. This builds kernel hardware breakpoint example modules.
  39. config SAMPLE_KFIFO
  40. tristate "Build kfifo examples -- loadable modules only"
  41. depends on m
  42. help
  43. This config option will allow you to build a number of
  44. different kfifo sample modules showing how to use the
  45. generic kfifo API.
  46. If in doubt, say "N" here.
  47. config SAMPLE_KDB
  48. tristate "Build kdb command example -- loadable modules only"
  49. depends on KGDB_KDB && m
  50. help
  51. Build an example of how to dynamically add the hello
  52. command to the kdb shell.
  53. config SAMPLE_QMI_CLIENT
  54. tristate "Build qmi client sample -- loadable modules only"
  55. depends on m
  56. depends on ARCH_QCOM
  57. depends on NET
  58. select QCOM_QMI_HELPERS
  59. help
  60. Build an QMI client sample driver, which demonstrates how to
  61. communicate with a remote QRTR service, using QMI encoded messages.
  62. config SAMPLE_RPMSG_CLIENT
  63. tristate "Build rpmsg client sample -- loadable modules only"
  64. depends on RPMSG && m
  65. help
  66. Build an rpmsg client sample driver, which demonstrates how
  67. to communicate with an AMP-configured remote processor over
  68. the rpmsg bus.
  69. config SAMPLE_LIVEPATCH
  70. tristate "Build live patching samples -- loadable modules only"
  71. depends on LIVEPATCH && m
  72. help
  73. Build sample live patch demonstrations.
  74. config SAMPLE_CONFIGFS
  75. tristate "Build configfs patching sample -- loadable modules only"
  76. depends on CONFIGFS_FS && m
  77. help
  78. Builds a sample configfs interface.
  79. config SAMPLE_CONNECTOR
  80. tristate "Build connector sample -- loadable modules only"
  81. depends on CONNECTOR && m
  82. help
  83. When enabled, this builds both a sample kernel module for
  84. the connector interface and a user space tool to communicate
  85. with it.
  86. See also Documentation/connector/connector.txt
  87. config SAMPLE_SECCOMP
  88. tristate "Build seccomp sample code -- loadable modules only"
  89. depends on SECCOMP_FILTER && m
  90. help
  91. Build samples of seccomp filters using various methods of
  92. BPF filter construction.
  93. config SAMPLE_VFIO_MDEV_MTTY
  94. tristate "Build VFIO mtty example mediated device sample code -- loadable modules only"
  95. depends on VFIO_MDEV_DEVICE && m
  96. help
  97. Build a virtual tty sample driver for use as a VFIO
  98. mediated device
  99. config SAMPLE_VFIO_MDEV_MDPY
  100. tristate "Build VFIO mdpy example mediated device sample code -- loadable modules only"
  101. depends on VFIO_MDEV_DEVICE && m
  102. help
  103. Build a virtual display sample driver for use as a VFIO
  104. mediated device. It is a simple framebuffer and supports
  105. the region display interface (VFIO_GFX_PLANE_TYPE_REGION).
  106. config SAMPLE_VFIO_MDEV_MDPY_FB
  107. tristate "Build VFIO mdpy example guest fbdev driver -- loadable module only"
  108. depends on FB && m
  109. select FB_CFB_FILLRECT
  110. select FB_CFB_COPYAREA
  111. select FB_CFB_IMAGEBLIT
  112. help
  113. Guest fbdev driver for the virtual display sample driver.
  114. config SAMPLE_VFIO_MDEV_MBOCHS
  115. tristate "Build VFIO mdpy example mediated device sample code -- loadable modules only"
  116. depends on VFIO_MDEV_DEVICE && m
  117. select DMA_SHARED_BUFFER
  118. help
  119. Build a virtual display sample driver for use as a VFIO
  120. mediated device. It supports the region display interface
  121. (VFIO_GFX_PLANE_TYPE_DMABUF).
  122. Emulate enough of qemu stdvga to make bochs-drm.ko happy.
  123. That is basically the vram memory bar and the bochs dispi
  124. interface vbe registers in the mmio register bar.
  125. Specifically it does *not* include any legacy vga stuff.
  126. Device looks a lot like "qemu -device secondary-vga".
  127. config SAMPLE_STATX
  128. bool "Build example extended-stat using code"
  129. depends on BROKEN
  130. help
  131. Build example userspace program to use the new extended-stat syscall.
  132. endif # SAMPLES