Navigation: Linux Kernel Driver DataBase - web LKDDB: Main index - R index

CONFIG_RING_BUFFER_PERSISTENT_INJECT: Enable persistent ring buffer error injection test

General informations

The Linux kernel configuration item CONFIG_RING_BUFFER_PERSISTENT_INJECT:

Help text

This option will have the kernel check if the persistent ring buffer is named "ptracingtest". and if so, it will corrupt some of its pages on a kernel panic. This is used to test if the persistent ring buffer can recover from some of its sub-buffers being corrupted. To use this, boot a kernel with a "ptracingtest" persistent ring buffer, e.g.

reserve_mem=20M:2M:trace trace_instance=ptracingtest@trace panic=1

And after the 1st boot, run the following commands:

cd /sys/kernel/tracing/instances/ptracingtest echo 1 > events/enable echo 1 > tracing_on sleep 3 echo c > /proc/sysrq-trigger

After the panic message, the kernel will reboot and will show the test results in the console output.

Note that events for the test ring buffer needs to be enabled prior to crashing the kernel so that the ring buffer has content that the test will corrupt. As the test will corrupt events in the "ptracingtest" persistent ring buffer, it should not be used for any other purpose other than this test.

If unsure, say N

Hardware

LKDDb

Raw data from LKDDb:

Sources

This page is automaticly generated with free (libre, open) software lkddb(see lkddb-sources).

The data is retrived from:

Automatic links from Google (and ads)

Custom Search

Popular queries:

Navigation: Linux Kernel Driver DataBase - web LKDDB: main index - R index

Automatically generated (in year 2026). See also LKDDb sources on GitLab