Commit 2b2f68b5383ea107295d7f1483256866e2daa1e3
Committed by
Linus Torvalds
1 parent
ea46c8f774
Exists in
master
and in
7 other branches
DYNAMIC_DEBUG: fix documentation errors
[akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Florian Ragwitz <rafl@debian.org> Cc: Jason Baron <jbaron@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 2 changed files with 9 additions and 9 deletions Side-by-side Diff
include/linux/dynamic_debug.h
... | ... | @@ -28,7 +28,7 @@ |
28 | 28 | /* |
29 | 29 | * The flags field controls the behaviour at the callsite. |
30 | 30 | * The bits here are changed dynamically when the user |
31 | - * writes commands to <debugfs>/dynamic_debug/ddebug | |
31 | + * writes commands to <debugfs>/dynamic_debug/control | |
32 | 32 | */ |
33 | 33 | #define _DPRINTK_FLAGS_PRINT (1<<0) /* printk() a message using the format */ |
34 | 34 | #define _DPRINTK_FLAGS_DEFAULT 0 |
lib/Kconfig.debug
... | ... | @@ -1039,10 +1039,10 @@ |
1039 | 1039 | |
1040 | 1040 | Usage: |
1041 | 1041 | |
1042 | - Dynamic debugging is controlled via the 'dynamic_debug/ddebug' file, | |
1042 | + Dynamic debugging is controlled via the 'dynamic_debug/control' file, | |
1043 | 1043 | which is contained in the 'debugfs' filesystem. Thus, the debugfs |
1044 | 1044 | filesystem must first be mounted before making use of this feature. |
1045 | - We refer the control file as: <debugfs>/dynamic_debug/ddebug. This | |
1045 | + We refer the control file as: <debugfs>/dynamic_debug/control. This | |
1046 | 1046 | file contains a list of the debug statements that can be enabled. The |
1047 | 1047 | format for each line of the file is: |
1048 | 1048 | |
... | ... | @@ -1057,7 +1057,7 @@ |
1057 | 1057 | |
1058 | 1058 | From a live system: |
1059 | 1059 | |
1060 | - nullarbor:~ # cat <debugfs>/dynamic_debug/ddebug | |
1060 | + nullarbor:~ # cat <debugfs>/dynamic_debug/control | |
1061 | 1061 | # filename:lineno [module]function flags format |
1062 | 1062 | fs/aio.c:222 [aio]__put_ioctx - "__put_ioctx:\040freeing\040%p\012" |
1063 | 1063 | fs/aio.c:248 [aio]ioctx_alloc - "ENOMEM:\040nr_events\040too\040high\012" |
1064 | 1064 | |
1065 | 1065 | |
1066 | 1066 | |
1067 | 1067 | |
... | ... | @@ -1067,23 +1067,23 @@ |
1067 | 1067 | |
1068 | 1068 | // enable the message at line 1603 of file svcsock.c |
1069 | 1069 | nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' > |
1070 | - <debugfs>/dynamic_debug/ddebug | |
1070 | + <debugfs>/dynamic_debug/control | |
1071 | 1071 | |
1072 | 1072 | // enable all the messages in file svcsock.c |
1073 | 1073 | nullarbor:~ # echo -n 'file svcsock.c +p' > |
1074 | - <debugfs>/dynamic_debug/ddebug | |
1074 | + <debugfs>/dynamic_debug/control | |
1075 | 1075 | |
1076 | 1076 | // enable all the messages in the NFS server module |
1077 | 1077 | nullarbor:~ # echo -n 'module nfsd +p' > |
1078 | - <debugfs>/dynamic_debug/ddebug | |
1078 | + <debugfs>/dynamic_debug/control | |
1079 | 1079 | |
1080 | 1080 | // enable all 12 messages in the function svc_process() |
1081 | 1081 | nullarbor:~ # echo -n 'func svc_process +p' > |
1082 | - <debugfs>/dynamic_debug/ddebug | |
1082 | + <debugfs>/dynamic_debug/control | |
1083 | 1083 | |
1084 | 1084 | // disable all 12 messages in the function svc_process() |
1085 | 1085 | nullarbor:~ # echo -n 'func svc_process -p' > |
1086 | - <debugfs>/dynamic_debug/ddebug | |
1086 | + <debugfs>/dynamic_debug/control | |
1087 | 1087 | |
1088 | 1088 | See Documentation/dynamic-debug-howto.txt for additional information. |
1089 | 1089 |