at commit 205cccd0
| 1 | ================ |
| 2 | /proc/sys/debug/ |
| 3 | ================ |
| 4 | |
| 5 | These files show up in ``/proc/sys/debug/``, depending on the |
| 6 | kernel configuration: |
| 7 | |
| 8 | .. contents:: :local: |
| 9 | |
| 10 | exception-trace |
| 11 | =============== |
| 12 | |
| 13 | This flag controls whether the kernel prints information about unhandled |
| 14 | signals (like segmentation faults) to the kernel log (``dmesg``). |
| 15 | |
| 16 | - ``0``: Unhandled signals are not traced. |
| 17 | - ``1``: Information about unhandled signals is printed. |
| 18 | |
| 19 | The default value is ``1`` on most architectures (like x86, MIPS, RISC-V), |
| 20 | but it is ``0`` on **arm64**. |
| 21 | |
| 22 | The actual information printed and the context provided varies |
| 23 | significantly depending on the CPU architecture. For example: |
| 24 | |
| 25 | - On **x86**, it typically prints the instruction pointer (IP), error |
| 26 | code, and address that caused a page fault. |
| 27 | - On **PowerPC**, it may print the next instruction pointer (NIP), |
| 28 | link register (LR), and other relevant registers. |
| 29 | |
| 30 | When enabled, this feature is often rate-limited to prevent the kernel |
| 31 | log from being flooded during a crash loop. |
| 32 | |
| 33 | kprobes-optimization |
| 34 | ==================== |
| 35 | |
| 36 | This flag enables or disables the optimization of Kprobes on certain |
| 37 | architectures (like x86). |
| 38 | |
| 39 | - ``0``: Kprobes optimization is turned off. |
| 40 | - ``1``: Kprobes optimization is turned on (default). |
| 41 | |
| 42 | For more details on Kprobes and its optimization, please refer to |
| 43 | Documentation/trace/kprobes.rst. |
| 44 | |
| 45 | Copyright (c) 2026, Shubham Chakraborty <chakrabortyshubham66@gmail.com> |
| 46 | |
| 47 | For general info and legal blurb, please look in |
| 48 | Documentation/admin-guide/sysctl/index.rst. |
| 49 | |
| 50 | .. See scripts/check-sysctl-docs to keep this up to date: |
| 51 | .. scripts/check-sysctl-docs -vtable="debug" \ |
| 52 | .. $(git grep -l register_sysctl_) |