# SPDX-License-Identifier: GPL-2.0-only
menuconfig [31mCONFIG_SAMPLES[0m
bool "Sample kernel code"
help
You can build and test sample kernel code here.
if [31mCONFIG_SAMPLES[0m
config [31mCONFIG_SAMPLE_TRACE_EVENTS[0m
tristate "Build trace_events examples -- loadable modules only"
depends on [31mCONFIG_EVENT_TRACING[0m && m
help
This build trace event example modules.
config [31mCONFIG_SAMPLE_TRACE_PRINTK[0m
tristate "Build trace_printk module - tests various trace_printk formats"
depends on [31mCONFIG_EVENT_TRACING[0m && m
help
This builds a module that calls trace_printk() and can be used to
test various trace_printk() calls from a module.
config [31mCONFIG_SAMPLE_KOBJECT[0m
tristate "Build kobject examples"
help
This config option will allow you to build a number of
different kobject sample modules showing how to use kobjects,
ksets, and ktypes properly.
If in doubt, say "N" here.
config [31mCONFIG_SAMPLE_KPROBES[0m
tristate "Build kprobes examples -- loadable modules only"
depends on [31mCONFIG_KPROBES[0m && m
help
This build several kprobes example modules.
config [31mCONFIG_SAMPLE_KRETPROBES[0m
tristate "Build kretprobes example -- loadable modules only"
default m
depends on [31mCONFIG_SAMPLE_KPROBES[0m && [31mCONFIG_KRETPROBES[0m
config [31mCONFIG_SAMPLE_HW_BREAKPOINT[0m
tristate "Build kernel hardware breakpoint examples -- loadable module only"
depends on [31mCONFIG_HAVE_HW_BREAKPOINT[0m && m
help
This builds kernel hardware breakpoint example modules.
config [31mCONFIG_SAMPLE_KFIFO[0m
tristate "Build kfifo examples -- loadable modules only"
depends on m
help
This config option will allow you to build a number of
different kfifo sample modules showing how to use the
generic kfifo API.
If in doubt, say "N" here.
config [31mCONFIG_SAMPLE_KDB[0m
tristate "Build kdb command example -- loadable modules only"
depends on [31mCONFIG_KGDB_KDB[0m && m
help
Build an example of how to dynamically add the hello
command to the kdb shell.
config [31mCONFIG_SAMPLE_QMI_CLIENT[0m
tristate "Build qmi client sample -- loadable modules only"
depends on m
depends on [31mCONFIG_ARCH_QCOM[0m
depends on [31mCONFIG_NET[0m
select [31mCONFIG_QCOM_QMI_HELPERS[0m
help
Build an QMI client sample driver, which demonstrates how to
communicate with a remote [31mCONFIG_QRTR[0m service, using QMI encoded messages.
config [31mCONFIG_SAMPLE_RPMSG_CLIENT[0m
tristate "Build rpmsg client sample -- loadable modules only"
depends on [31mCONFIG_RPMSG[0m && m
help
Build an rpmsg client sample driver, which demonstrates how
to communicate with an AMP-configured remote processor over
the rpmsg bus.
config [31mCONFIG_SAMPLE_LIVEPATCH[0m
tristate "Build live patching samples -- loadable modules only"
depends on [31mCONFIG_LIVEPATCH[0m && m
help
Build sample live patch demonstrations.
config [31mCONFIG_SAMPLE_CONFIGFS[0m
tristate "Build configfs patching sample -- loadable modules only"
depends on [31mCONFIG_CONFIGFS_FS[0m && m
help
Builds a sample configfs interface.
config [31mCONFIG_SAMPLE_CONNECTOR[0m
tristate "Build connector sample -- loadable modules only"
depends on [31mCONFIG_CONNECTOR[0m && [31mCONFIG_HEADERS_INSTALL[0m && m
help
When enabled, this builds both a sample kernel module for
the connector interface and a user space tool to communicate
with it.
See also Documentation/driver-api/connector.rst
config [31mCONFIG_SAMPLE_HIDRAW[0m
bool "hidraw sample"
depends on [31mCONFIG_HEADERS_INSTALL[0m
config [31mCONFIG_SAMPLE_PIDFD[0m
bool "pidfd sample"
depends on [31mCONFIG_HEADERS_INSTALL[0m
config [31mCONFIG_SAMPLE_SECCOMP[0m
bool "Build seccomp sample code"
depends on [31mCONFIG_SECCOMP_FILTER[0m && [31mCONFIG_HEADERS_INSTALL[0m
help
Build samples of seccomp filters using various methods of
[31mCONFIG_BPF[0m filter construction.
config [31mCONFIG_SAMPLE_VFIO_MDEV_MTTY[0m
tristate "Build VFIO mtty example mediated device sample code -- loadable modules only"
depends on [31mCONFIG_VFIO_MDEV_DEVICE[0m && m
help
Build a virtual tty sample driver for use as a [31mCONFIG_VFIO[0m
mediated device
config [31mCONFIG_SAMPLE_VFIO_MDEV_MDPY[0m
tristate "Build VFIO mdpy example mediated device sample code -- loadable modules only"
depends on [31mCONFIG_VFIO_MDEV_DEVICE[0m && m
help
Build a virtual display sample driver for use as a [31mCONFIG_VFIO[0m
mediated device. It is a simple framebuffer and supports
the region display interface (VFIO_GFX_PLANE_TYPE_REGION).
config [31mCONFIG_SAMPLE_VFIO_MDEV_MDPY_FB[0m
tristate "Build VFIO mdpy example guest fbdev driver -- loadable module only"
depends on [31mCONFIG_FB[0m && m
select [31mCONFIG_FB_CFB_FILLRECT[0m
select [31mCONFIG_FB_CFB_COPYAREA[0m
select [31mCONFIG_FB_CFB_IMAGEBLIT[0m
help
Guest fbdev driver for the virtual display sample driver.
config [31mCONFIG_SAMPLE_VFIO_MDEV_MBOCHS[0m
tristate "Build VFIO mdpy example mediated device sample code -- loadable modules only"
depends on [31mCONFIG_VFIO_MDEV_DEVICE[0m && m
select [31mCONFIG_DMA_SHARED_BUFFER[0m
help
Build a virtual display sample driver for use as a [31mCONFIG_VFIO[0m
mediated device. It supports the region display interface
(VFIO_GFX_PLANE_TYPE_DMABUF).
Emulate enough of qemu stdvga to make bochs-drm.ko happy.
That is basically the vram memory bar and the bochs dispi
interface vbe registers in the mmio register bar.
Specifically it does *not* include any legacy vga stuff.
Device looks a lot like "qemu -device secondary-vga".
config [31mCONFIG_SAMPLE_ANDROID_BINDERFS[0m
bool "Build Android binderfs example"
depends on CONFIG_ANDROID_BINDERFS
help
Builds a sample program to illustrate the use of the Android binderfs
filesystem.
config [31mCONFIG_SAMPLE_VFS[0m
bool "Build example programs that use new VFS system calls"
depends on [31mCONFIG_HEADERS_INSTALL[0m
help
Build example userspace programs that use new VFS system calls such
as mount API and statx(). Note that this is restricted to the x86
arch whilst it accesses system calls that aren't yet in all arches.
endif # [31mCONFIG_SAMPLES[0m