xref: /openbmc/linux/samples/Kconfig (revision 439e7271)
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
65779b96d2SOhad Ben-Cohenconfig SAMPLE_RPMSG_CLIENT
66779b96d2SOhad Ben-Cohen	tristate "Build rpmsg client sample -- loadable modules only"
67779b96d2SOhad Ben-Cohen	depends on RPMSG && m
68779b96d2SOhad Ben-Cohen	help
69779b96d2SOhad Ben-Cohen	  Build an rpmsg client sample driver, which demonstrates how
70779b96d2SOhad Ben-Cohen	  to communicate with an AMP-configured remote processor over
71779b96d2SOhad Ben-Cohen	  the rpmsg bus.
72779b96d2SOhad Ben-Cohen
7312cf89b5SJosh Poimboeufconfig SAMPLE_LIVEPATCH
74439e7271SJoe Lawrence	tristate "Build live patching samples -- loadable modules only"
7512cf89b5SJosh Poimboeuf	depends on LIVEPATCH && m
7613d1cf7eSSeth Jennings	help
77439e7271SJoe Lawrence	  Build sample live patch demonstrations.
7813d1cf7eSSeth Jennings
7951798222SChristoph Hellwigconfig SAMPLE_CONFIGFS
8051798222SChristoph Hellwig	tristate "Build configfs patching sample -- loadable modules only"
8151798222SChristoph Hellwig	depends on CONFIGFS_FS && m
8251798222SChristoph Hellwig	help
8351798222SChristoph Hellwig	  Builds a sample configfs interface.
8451798222SChristoph Hellwig
8514fbff6bSArnd Bergmannconfig SAMPLE_CONNECTOR
8614fbff6bSArnd Bergmann	tristate "Build connector sample -- loadable modules only"
8714fbff6bSArnd Bergmann	depends on CONNECTOR && m
8814fbff6bSArnd Bergmann	help
8914fbff6bSArnd Bergmann	  When enabled, this builds both a sample kernel module for
9014fbff6bSArnd Bergmann	  the connector interface and a user space tool to communicate
9114fbff6bSArnd Bergmann	  with it.
9214fbff6bSArnd Bergmann	  See also Documentation/connector/connector.txt
9314fbff6bSArnd Bergmann
94f6041c1dSOlof Johanssonconfig SAMPLE_SECCOMP
95f6041c1dSOlof Johansson	tristate "Build seccomp sample code -- loadable modules only"
96f6041c1dSOlof Johansson	depends on SECCOMP_FILTER && m
97f6041c1dSOlof Johansson	help
98f6041c1dSOlof Johansson	  Build samples of seccomp filters using various methods of
99f6041c1dSOlof Johansson	  BPF filter construction.
100f6041c1dSOlof Johansson
10118489292SShuah Khanconfig SAMPLE_BLACKFIN_GPTIMERS
10218489292SShuah Khan	tristate "Build blackfin gptimers sample code -- loadable modules only"
10318489292SShuah Khan	depends on BLACKFIN && BFIN_GPTIMERS && m
10418489292SShuah Khan	help
10518489292SShuah Khan	  Build samples of blackfin gptimers sample module.
10618489292SShuah Khan
10708c1a4efSAlex Williamsonconfig SAMPLE_VFIO_MDEV_MTTY
10808c1a4efSAlex Williamson	tristate "Build VFIO mtty example mediated device sample code -- loadable modules only"
10908c1a4efSAlex Williamson	depends on VFIO_MDEV_DEVICE && m
11008c1a4efSAlex Williamson	help
11108c1a4efSAlex Williamson	  Build a virtual tty sample driver for use as a VFIO
11208c1a4efSAlex Williamson	  mediated device
11308c1a4efSAlex Williamson
114a528d35eSDavid Howellsconfig SAMPLE_STATX
115a528d35eSDavid Howells	bool "Build example extended-stat using code"
116a528d35eSDavid Howells	depends on BROKEN
117a528d35eSDavid Howells	help
118a528d35eSDavid Howells	  Build example userspace program to use the new extended-stat syscall.
119a528d35eSDavid Howells
120267c4025SMathieu Desnoyersendif # SAMPLES
121