aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug28
1 files changed, 20 insertions, 8 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index d85be90d5888..e722e9d62221 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -898,6 +898,18 @@ config LKDTM
898 Documentation on how to use the module can be found in 898 Documentation on how to use the module can be found in
899 Documentation/fault-injection/provoke-crashes.txt 899 Documentation/fault-injection/provoke-crashes.txt
900 900
901config CPU_NOTIFIER_ERROR_INJECT
902 tristate "CPU notifier error injection module"
903 depends on HOTPLUG_CPU && DEBUG_KERNEL
904 help
905 This option provides a kernel module that can be used to test
906 the error handling of the cpu notifiers
907
908 To compile this code as a module, choose M here: the module will
909 be called cpu-notifier-error-inject.
910
911 If unsure, say N.
912
901config FAULT_INJECTION 913config FAULT_INJECTION
902 bool "Fault-injection framework" 914 bool "Fault-injection framework"
903 depends on DEBUG_KERNEL 915 depends on DEBUG_KERNEL
@@ -1039,10 +1051,10 @@ config DYNAMIC_DEBUG
1039 1051
1040 Usage: 1052 Usage:
1041 1053
1042 Dynamic debugging is controlled via the 'dynamic_debug/ddebug' file, 1054 Dynamic debugging is controlled via the 'dynamic_debug/control' file,
1043 which is contained in the 'debugfs' filesystem. Thus, the debugfs 1055 which is contained in the 'debugfs' filesystem. Thus, the debugfs
1044 filesystem must first be mounted before making use of this feature. 1056 filesystem must first be mounted before making use of this feature.
1045 We refer the control file as: <debugfs>/dynamic_debug/ddebug. This 1057 We refer the control file as: <debugfs>/dynamic_debug/control. This
1046 file contains a list of the debug statements that can be enabled. The 1058 file contains a list of the debug statements that can be enabled. The
1047 format for each line of the file is: 1059 format for each line of the file is:
1048 1060
@@ -1057,7 +1069,7 @@ config DYNAMIC_DEBUG
1057 1069
1058 From a live system: 1070 From a live system:
1059 1071
1060 nullarbor:~ # cat <debugfs>/dynamic_debug/ddebug 1072 nullarbor:~ # cat <debugfs>/dynamic_debug/control
1061 # filename:lineno [module]function flags format 1073 # filename:lineno [module]function flags format
1062 fs/aio.c:222 [aio]__put_ioctx - "__put_ioctx:\040freeing\040%p\012" 1074 fs/aio.c:222 [aio]__put_ioctx - "__put_ioctx:\040freeing\040%p\012"
1063 fs/aio.c:248 [aio]ioctx_alloc - "ENOMEM:\040nr_events\040too\040high\012" 1075 fs/aio.c:248 [aio]ioctx_alloc - "ENOMEM:\040nr_events\040too\040high\012"
@@ -1067,23 +1079,23 @@ config DYNAMIC_DEBUG
1067 1079
1068 // enable the message at line 1603 of file svcsock.c 1080 // enable the message at line 1603 of file svcsock.c
1069 nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' > 1081 nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' >
1070 <debugfs>/dynamic_debug/ddebug 1082 <debugfs>/dynamic_debug/control
1071 1083
1072 // enable all the messages in file svcsock.c 1084 // enable all the messages in file svcsock.c
1073 nullarbor:~ # echo -n 'file svcsock.c +p' > 1085 nullarbor:~ # echo -n 'file svcsock.c +p' >
1074 <debugfs>/dynamic_debug/ddebug 1086 <debugfs>/dynamic_debug/control
1075 1087
1076 // enable all the messages in the NFS server module 1088 // enable all the messages in the NFS server module
1077 nullarbor:~ # echo -n 'module nfsd +p' > 1089 nullarbor:~ # echo -n 'module nfsd +p' >
1078 <debugfs>/dynamic_debug/ddebug 1090 <debugfs>/dynamic_debug/control
1079 1091
1080 // enable all 12 messages in the function svc_process() 1092 // enable all 12 messages in the function svc_process()
1081 nullarbor:~ # echo -n 'func svc_process +p' > 1093 nullarbor:~ # echo -n 'func svc_process +p' >
1082 <debugfs>/dynamic_debug/ddebug 1094 <debugfs>/dynamic_debug/control
1083 1095
1084 // disable all 12 messages in the function svc_process() 1096 // disable all 12 messages in the function svc_process()
1085 nullarbor:~ # echo -n 'func svc_process -p' > 1097 nullarbor:~ # echo -n 'func svc_process -p' >
1086 <debugfs>/dynamic_debug/ddebug 1098 <debugfs>/dynamic_debug/control
1087 1099
1088 See Documentation/dynamic-debug-howto.txt for additional information. 1100 See Documentation/dynamic-debug-howto.txt for additional information.
1089 1101