1267c4025SMathieu Desnoyersmenuconfig SAMPLES 2267c4025SMathieu Desnoyers bool "Sample kernel code" 3267c4025SMathieu Desnoyers help 4267c4025SMathieu Desnoyers You can build and test sample kernel code here. 5267c4025SMathieu Desnoyers 6267c4025SMathieu Desnoyersif SAMPLES 7267c4025SMathieu Desnoyers 89cfe06f8SSteven Rostedtconfig SAMPLE_TRACE_EVENTS 996d17980SLi Zefan tristate "Build trace_events examples -- loadable modules only" 1096d17980SLi Zefan depends on EVENT_TRACING && m 119cfe06f8SSteven Rostedt help 129cfe06f8SSteven Rostedt This build trace event example modules. 139cfe06f8SSteven Rostedt 14aad108aaSSteven Rostedt (Red Hat)config SAMPLE_TRACE_PRINTK 15aad108aaSSteven Rostedt (Red Hat) tristate "Build trace_printk module - tests various trace_printk formats" 16aad108aaSSteven Rostedt (Red Hat) depends on EVENT_TRACING && m 17aad108aaSSteven Rostedt (Red Hat) help 18aad108aaSSteven Rostedt (Red Hat) This builds a module that calls trace_printk() and can be used to 19aad108aaSSteven Rostedt (Red Hat) test various trace_printk() calls from a module. 20aad108aaSSteven Rostedt (Red Hat) 2140efcb05SGreg Kroah-Hartmanconfig SAMPLE_KOBJECT 22c4c01684SMichal Marek tristate "Build kobject examples -- loadable modules only" 23c4c01684SMichal Marek depends on m 2440efcb05SGreg Kroah-Hartman help 2540efcb05SGreg Kroah-Hartman This config option will allow you to build a number of 2640efcb05SGreg Kroah-Hartman different kobject sample modules showing how to use kobjects, 2740efcb05SGreg Kroah-Hartman ksets, and ktypes properly. 2840efcb05SGreg Kroah-Hartman 2940efcb05SGreg Kroah-Hartman If in doubt, say "N" here. 3040efcb05SGreg Kroah-Hartman 31804defeaSAnanth N Mavinakayanahalliconfig SAMPLE_KPROBES 32804defeaSAnanth N Mavinakayanahalli tristate "Build kprobes examples -- loadable modules only" 33804defeaSAnanth N Mavinakayanahalli depends on KPROBES && m 34804defeaSAnanth N Mavinakayanahalli help 35804defeaSAnanth N Mavinakayanahalli This build several kprobes example modules. 36804defeaSAnanth N Mavinakayanahalli 37804defeaSAnanth N Mavinakayanahalliconfig SAMPLE_KRETPROBES 38804defeaSAnanth N Mavinakayanahalli tristate "Build kretprobes example -- loadable modules only" 39804defeaSAnanth N Mavinakayanahalli default m 40804defeaSAnanth N Mavinakayanahalli depends on SAMPLE_KPROBES && KRETPROBES 41804defeaSAnanth N Mavinakayanahalli 4243203993SK.Prasadconfig SAMPLE_HW_BREAKPOINT 4343203993SK.Prasad tristate "Build kernel hardware breakpoint examples -- loadable module only" 4443203993SK.Prasad depends on HAVE_HW_BREAKPOINT && m 4543203993SK.Prasad help 4643203993SK.Prasad This builds kernel hardware breakpoint example modules. 4743203993SK.Prasad 485bf2b193SStefani Seiboldconfig SAMPLE_KFIFO 495bf2b193SStefani Seibold tristate "Build kfifo examples -- loadable modules only" 505bf2b193SStefani Seibold depends on m 515bf2b193SStefani Seibold help 525bf2b193SStefani Seibold This config option will allow you to build a number of 535bf2b193SStefani Seibold different kfifo sample modules showing how to use the 545bf2b193SStefani Seibold generic kfifo API. 555bf2b193SStefani Seibold 565bf2b193SStefani Seibold If in doubt, say "N" here. 575bf2b193SStefani Seibold 584aad8f51SJason Wesselconfig SAMPLE_KDB 5925985edcSLucas De Marchi tristate "Build kdb command example -- loadable modules only" 604aad8f51SJason Wessel depends on KGDB_KDB && m 614aad8f51SJason Wessel help 624aad8f51SJason Wessel Build an example of how to dynamically add the hello 634aad8f51SJason Wessel command to the kdb shell. 644aad8f51SJason Wessel 65842891beSBjorn Anderssonconfig SAMPLE_QMI_CLIENT 66842891beSBjorn Andersson tristate "Build qmi client sample -- loadable modules only" 67842891beSBjorn Andersson depends on m 68842891beSBjorn Andersson depends on ARCH_QCOM 69dea4bd19SArnd Bergmann depends on NET 70842891beSBjorn Andersson select QCOM_QMI_HELPERS 71842891beSBjorn Andersson help 72842891beSBjorn Andersson Build an QMI client sample driver, which demonstrates how to 73842891beSBjorn Andersson communicate with a remote QRTR service, using QMI encoded messages. 74842891beSBjorn Andersson 75779b96d2SOhad Ben-Cohenconfig SAMPLE_RPMSG_CLIENT 76779b96d2SOhad Ben-Cohen tristate "Build rpmsg client sample -- loadable modules only" 77779b96d2SOhad Ben-Cohen depends on RPMSG && m 78779b96d2SOhad Ben-Cohen help 79779b96d2SOhad Ben-Cohen Build an rpmsg client sample driver, which demonstrates how 80779b96d2SOhad Ben-Cohen to communicate with an AMP-configured remote processor over 81779b96d2SOhad Ben-Cohen the rpmsg bus. 82779b96d2SOhad Ben-Cohen 8312cf89b5SJosh Poimboeufconfig SAMPLE_LIVEPATCH 84439e7271SJoe Lawrence tristate "Build live patching samples -- loadable modules only" 8512cf89b5SJosh Poimboeuf depends on LIVEPATCH && m 8613d1cf7eSSeth Jennings help 87439e7271SJoe Lawrence Build sample live patch demonstrations. 8813d1cf7eSSeth Jennings 8951798222SChristoph Hellwigconfig SAMPLE_CONFIGFS 9051798222SChristoph Hellwig tristate "Build configfs patching sample -- loadable modules only" 9151798222SChristoph Hellwig depends on CONFIGFS_FS && m 9251798222SChristoph Hellwig help 9351798222SChristoph Hellwig Builds a sample configfs interface. 9451798222SChristoph Hellwig 9514fbff6bSArnd Bergmannconfig SAMPLE_CONNECTOR 9614fbff6bSArnd Bergmann tristate "Build connector sample -- loadable modules only" 9714fbff6bSArnd Bergmann depends on CONNECTOR && m 9814fbff6bSArnd Bergmann help 9914fbff6bSArnd Bergmann When enabled, this builds both a sample kernel module for 10014fbff6bSArnd Bergmann the connector interface and a user space tool to communicate 10114fbff6bSArnd Bergmann with it. 10214fbff6bSArnd Bergmann See also Documentation/connector/connector.txt 10314fbff6bSArnd Bergmann 104f6041c1dSOlof Johanssonconfig SAMPLE_SECCOMP 105f6041c1dSOlof Johansson tristate "Build seccomp sample code -- loadable modules only" 106f6041c1dSOlof Johansson depends on SECCOMP_FILTER && m 107f6041c1dSOlof Johansson help 108f6041c1dSOlof Johansson Build samples of seccomp filters using various methods of 109f6041c1dSOlof Johansson BPF filter construction. 110f6041c1dSOlof Johansson 11108c1a4efSAlex Williamsonconfig SAMPLE_VFIO_MDEV_MTTY 11208c1a4efSAlex Williamson tristate "Build VFIO mtty example mediated device sample code -- loadable modules only" 11308c1a4efSAlex Williamson depends on VFIO_MDEV_DEVICE && m 11408c1a4efSAlex Williamson help 11508c1a4efSAlex Williamson Build a virtual tty sample driver for use as a VFIO 11608c1a4efSAlex Williamson mediated device 11708c1a4efSAlex Williamson 118d61fc96fSGerd Hoffmannconfig SAMPLE_VFIO_MDEV_MDPY 119d61fc96fSGerd Hoffmann tristate "Build VFIO mdpy example mediated device sample code -- loadable modules only" 120d61fc96fSGerd Hoffmann depends on VFIO_MDEV_DEVICE && m 121d61fc96fSGerd Hoffmann help 122d61fc96fSGerd Hoffmann Build a virtual display sample driver for use as a VFIO 123d61fc96fSGerd Hoffmann mediated device. It is a simple framebuffer and supports 124d61fc96fSGerd Hoffmann the region display interface (VFIO_GFX_PLANE_TYPE_REGION). 125d61fc96fSGerd Hoffmann 126cacade19SGerd Hoffmannconfig SAMPLE_VFIO_MDEV_MDPY_FB 127cacade19SGerd Hoffmann tristate "Build VFIO mdpy example guest fbdev driver -- loadable module only" 128cacade19SGerd Hoffmann depends on FB && m 129cacade19SGerd Hoffmann select FB_CFB_FILLRECT 130cacade19SGerd Hoffmann select FB_CFB_COPYAREA 131cacade19SGerd Hoffmann select FB_CFB_IMAGEBLIT 132cacade19SGerd Hoffmann help 133cacade19SGerd Hoffmann Guest fbdev driver for the virtual display sample driver. 134cacade19SGerd Hoffmann 135a5e6e650SGerd Hoffmannconfig SAMPLE_VFIO_MDEV_MBOCHS 136a5e6e650SGerd Hoffmann tristate "Build VFIO mdpy example mediated device sample code -- loadable modules only" 137a5e6e650SGerd Hoffmann depends on VFIO_MDEV_DEVICE && m 138c1abca96SArnd Bergmann select DMA_SHARED_BUFFER 139a5e6e650SGerd Hoffmann help 140a5e6e650SGerd Hoffmann Build a virtual display sample driver for use as a VFIO 141a5e6e650SGerd Hoffmann mediated device. It supports the region display interface 142a5e6e650SGerd Hoffmann (VFIO_GFX_PLANE_TYPE_DMABUF). 143a5e6e650SGerd Hoffmann Emulate enough of qemu stdvga to make bochs-drm.ko happy. 144a5e6e650SGerd Hoffmann That is basically the vram memory bar and the bochs dispi 145a5e6e650SGerd Hoffmann interface vbe registers in the mmio register bar. 146a5e6e650SGerd Hoffmann Specifically it does *not* include any legacy vga stuff. 147a5e6e650SGerd Hoffmann Device looks a lot like "qemu -device secondary-vga". 148a5e6e650SGerd Hoffmann 149a528d35eSDavid Howellsconfig SAMPLE_STATX 150a528d35eSDavid Howells bool "Build example extended-stat using code" 151a528d35eSDavid Howells depends on BROKEN 152a528d35eSDavid Howells help 153a528d35eSDavid Howells Build example userspace program to use the new extended-stat syscall. 154a528d35eSDavid Howells 155267c4025SMathieu Desnoyersendif # SAMPLES 156