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 65*842891beSBjorn Anderssonconfig SAMPLE_QMI_CLIENT 66*842891beSBjorn Andersson tristate "Build qmi client sample -- loadable modules only" 67*842891beSBjorn Andersson depends on m 68*842891beSBjorn Andersson depends on ARCH_QCOM 69*842891beSBjorn Andersson select QCOM_QMI_HELPERS 70*842891beSBjorn Andersson help 71*842891beSBjorn Andersson Build an QMI client sample driver, which demonstrates how to 72*842891beSBjorn Andersson communicate with a remote QRTR service, using QMI encoded messages. 73*842891beSBjorn Andersson 74779b96d2SOhad Ben-Cohenconfig SAMPLE_RPMSG_CLIENT 75779b96d2SOhad Ben-Cohen tristate "Build rpmsg client sample -- loadable modules only" 76779b96d2SOhad Ben-Cohen depends on RPMSG && m 77779b96d2SOhad Ben-Cohen help 78779b96d2SOhad Ben-Cohen Build an rpmsg client sample driver, which demonstrates how 79779b96d2SOhad Ben-Cohen to communicate with an AMP-configured remote processor over 80779b96d2SOhad Ben-Cohen the rpmsg bus. 81779b96d2SOhad Ben-Cohen 8212cf89b5SJosh Poimboeufconfig SAMPLE_LIVEPATCH 83439e7271SJoe Lawrence tristate "Build live patching samples -- loadable modules only" 8412cf89b5SJosh Poimboeuf depends on LIVEPATCH && m 8513d1cf7eSSeth Jennings help 86439e7271SJoe Lawrence Build sample live patch demonstrations. 8713d1cf7eSSeth Jennings 8851798222SChristoph Hellwigconfig SAMPLE_CONFIGFS 8951798222SChristoph Hellwig tristate "Build configfs patching sample -- loadable modules only" 9051798222SChristoph Hellwig depends on CONFIGFS_FS && m 9151798222SChristoph Hellwig help 9251798222SChristoph Hellwig Builds a sample configfs interface. 9351798222SChristoph Hellwig 9414fbff6bSArnd Bergmannconfig SAMPLE_CONNECTOR 9514fbff6bSArnd Bergmann tristate "Build connector sample -- loadable modules only" 9614fbff6bSArnd Bergmann depends on CONNECTOR && m 9714fbff6bSArnd Bergmann help 9814fbff6bSArnd Bergmann When enabled, this builds both a sample kernel module for 9914fbff6bSArnd Bergmann the connector interface and a user space tool to communicate 10014fbff6bSArnd Bergmann with it. 10114fbff6bSArnd Bergmann See also Documentation/connector/connector.txt 10214fbff6bSArnd Bergmann 103f6041c1dSOlof Johanssonconfig SAMPLE_SECCOMP 104f6041c1dSOlof Johansson tristate "Build seccomp sample code -- loadable modules only" 105f6041c1dSOlof Johansson depends on SECCOMP_FILTER && m 106f6041c1dSOlof Johansson help 107f6041c1dSOlof Johansson Build samples of seccomp filters using various methods of 108f6041c1dSOlof Johansson BPF filter construction. 109f6041c1dSOlof Johansson 11018489292SShuah Khanconfig SAMPLE_BLACKFIN_GPTIMERS 11118489292SShuah Khan tristate "Build blackfin gptimers sample code -- loadable modules only" 11218489292SShuah Khan depends on BLACKFIN && BFIN_GPTIMERS && m 11318489292SShuah Khan help 11418489292SShuah Khan Build samples of blackfin gptimers sample module. 11518489292SShuah Khan 11608c1a4efSAlex Williamsonconfig SAMPLE_VFIO_MDEV_MTTY 11708c1a4efSAlex Williamson tristate "Build VFIO mtty example mediated device sample code -- loadable modules only" 11808c1a4efSAlex Williamson depends on VFIO_MDEV_DEVICE && m 11908c1a4efSAlex Williamson help 12008c1a4efSAlex Williamson Build a virtual tty sample driver for use as a VFIO 12108c1a4efSAlex Williamson mediated device 12208c1a4efSAlex Williamson 123a528d35eSDavid Howellsconfig SAMPLE_STATX 124a528d35eSDavid Howells bool "Build example extended-stat using code" 125a528d35eSDavid Howells depends on BROKEN 126a528d35eSDavid Howells help 127a528d35eSDavid Howells Build example userspace program to use the new extended-stat syscall. 128a528d35eSDavid Howells 129267c4025SMathieu Desnoyersendif # SAMPLES 130