Kconfig

CONFIG_SAMPLES Sample kernel code

On

You can build and test sample kernel code here.

If SAMPLES

CONFIG_SAMPLE_TRACE_EVENTS Build trace_events examples -- loadable modules only

  • Off
  • Module
  • Built in

This builds the trace event example module.

CONFIG_SAMPLE_TRACE_CUSTOM_EVENTS Build custom trace event example -- loadable modules only

  • Off
  • Module
  • Built in

This builds the custom trace event example module.

CONFIG_SAMPLE_TRACE_PRINTK Build trace_printk module - tests various trace_printk formats

  • Off
  • Module
  • Built in

This builds a module that calls trace_printk() and can be used to test various trace_printk() calls from a module.

CONFIG_SAMPLE_FTRACE_OPS Build custom ftrace ops example

  • Off
  • Module
  • Built in

This builds an ftrace ops example that hooks two functions and measures the time taken to invoke one function a number of times.

CONFIG_SAMPLE_TRACE_ARRAY Build sample module for kernel access to Ftrace instances

  • Off
  • Module
  • Built in

This builds a module that demonstrates the use of various APIs to access Ftrace instances from within the kernel.

CONFIG_SAMPLE_KOBJECT Build kobject examples

  • Off
  • Module
  • Built in

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_SAMPLE_KPROBES Build kprobes examples -- loadable modules only

  • Off
  • Module
  • Built in

This build several kprobes example modules.

If SAMPLE_KPROBES

CONFIG_SAMPLE_HW_BREAKPOINT Build kernel hardware breakpoint examples -- loadable module only

  • Off
  • Module
  • Built in

This builds kernel hardware breakpoint example modules.

CONFIG_SAMPLE_FPROBE Build fprobe examples -- loadable modules only

  • Off
  • Module
  • Built in

This builds a fprobe example module. This module has an option 'symbol'. You can specify a probed symbol or symbols separated with ','.

CONFIG_SAMPLE_KFIFO Build kfifo examples -- loadable modules only

  • Off
  • Module
  • Built in

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_SAMPLE_KDB Build kdb command example -- loadable modules only

  • Off
  • Module
  • Built in

Build an example of how to dynamically add the hello command to the kdb shell.

CONFIG_SAMPLE_QMI_CLIENT Build qmi client sample -- loadable modules only

  • Off
  • Module
  • Built in
Unknown

Build an QMI client sample driver, which demonstrates how to communicate with a remote QRTR service, using QMI encoded messages.

CONFIG_SAMPLE_RPMSG_CLIENT Build rpmsg client sample -- loadable modules only

  • Off
  • Module
  • Built in

Build an rpmsg client sample driver, which demonstrates how to communicate with an AMP-configured remote processor over the rpmsg bus.

CONFIG_SAMPLE_LIVEPATCH Build live patching samples -- loadable modules only

  • Off
  • Module
  • Built in
Unknown

Build sample live patch demonstrations.

CONFIG_SAMPLE_CONFIGFS Build configfs patching sample -- loadable modules only

  • Off
  • Module
  • Built in

Builds a sample configfs interface.

CONFIG_SAMPLE_LANDLOCK Landlock example

On

Build a Landlock sandbox manager able to start a process restricted by user-defined filesystem, network, scope, namespace, and capability policies.

The optional libcap development headers and library enable capability names. Without them, the sample still builds, accepts capability numbers, and warns when capability settings are used.

If SAMPLE_LANDLOCK

CONFIG_SAMPLE_VFIO_MDEV_MTTY Build VFIO mtty example mediated device sample code

  • Off
  • Module
  • Built in

Build a virtual tty sample driver for use as a VFIO mediated device

CONFIG_SAMPLE_VFIO_MDEV_MDPY Build VFIO mdpy example mediated device sample code

  • Off
  • Module
  • Built in

Build a virtual display sample driver for use as a VFIO mediated device. It is a simple framebuffer and supports the region display interface (VFIO_GFX_PLANE_TYPE_REGION).

CONFIG_SAMPLE_VFIO_MDEV_MDPY_FB Build VFIO mdpy example guest fbdev driver

  • Off
  • Module
  • Built in

Guest fbdev driver for the virtual display sample driver.

CONFIG_SAMPLE_VFIO_MDEV_MBOCHS Build VFIO mbochs example mediated device sample code

  • Off
  • Module
  • Built in

Build a virtual display sample driver for use as a VFIO 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_SAMPLE_ANDROID_BINDERFS Build Android binderfs example

On

Builds a sample program to illustrate the use of the Android binderfs filesystem.

CONFIG_SAMPLE_VFS Build example programs that use new VFS system calls

On

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.

CONFIG_SAMPLE_TPS6594_PFSM Build example program working with TPS6594 PFSM driver

On

Build a sample program to work with PFSM devices.

CONFIG_SAMPLE_WATCH_QUEUE Build example watch_queue notification API consumer

On

Build example userspace program to use the new mount_notify(), sb_notify() syscalls and the KEYCTL_WATCH_KEY keyctl() function.

CONFIG_SAMPLE_CORESIGHT_SYSCFG Build example loadable module for CoreSight config

  • Off
  • Module
  • Built in
Unknown

Build an example loadable module that adds new CoreSight features and configuration using the CoreSight system configuration API. This demonstrates how a user may create their own CoreSight configurations and easily load them into the system at runtime.

CONFIG_SAMPLE_KMEMLEAK Simple test for the kernel memory leak detector

  • Off
  • Module
  • Built in

Build a sample program which have explicitly leaks memory to test kmemleak.

CONFIG_SAMPLE_CHECK_EXEC Exec secure bits examples

On

Build a tool to easily configure SECBIT_EXEC_RESTRICT_FILE and SECBIT_EXEC_DENY_INTERACTIVE, and a simple script interpreter to demonstrate how they should be used with execveat(2) + AT_EXECVE_CHECK.

CONFIG_SAMPLE_HUNG_TASK Hung task detector test code

  • Off
  • Module
  • Built in

Build a module that provides debugfs files (e.g., mutex, semaphore, rw_semaphore_read, rw_semaphore_write) under <debugfs>/hung_task. Reading these files with multiple processes triggers hung task detection by holding locks for a long time (256 seconds).

Includesamples/rust/Kconfig Open file
Includesamples/damon/Kconfig Open file

CONFIG_HAVE_SAMPLE_FTRACE_DIRECT

On

CONFIG_HAVE_SAMPLE_FTRACE_DIRECT_MULTI

On