• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/Documentation/zh_CN/
1Chinese translated version of Documentation/oops-tracing.txt
2
3If you have any comment or update to the content, please contact the
4original document maintainer directly.  However, if you have a problem
5communicating in English you can also ask the Chinese maintainer for
6help.  Contact the Chinese maintainer if this translation is outdated
7or if there is a problem with the translation.
8
9Chinese maintainer: Dave Young <hidave.darkstar@gmail.com>
10---------------------------------------------------------------------
11Documentation/oops-tracing.txt ���������������
12
13������������������������������������������������������������������������������������������������������
14������������������������������������������������������������������������������������������������������
15������������������������������������������������
16
17��������������������� ������ Dave Young <hidave.darkstar@gmail.com>
18��������������������� ������ Dave Young <hidave.darkstar@gmail.com>
19��������������������� ������ Li Yang <leo@zh-kernel.org>
20               ������ Wang Cong <xiyou.wangcong@gmail.com>
21
22���������������
23---------------------------------------------------------------------
24
25��������� ksymoops ���2.6��������������������� ������������������������Oops(������dmesg���������)���
26���������������������������������������Oops������������������ksymoops��������������������� ������������������������
27ksymoops���������2.6���Oops������������������������������������
28
29������������
30-------------
31
32������Oops������������������������������������������������������������������������������������������������������������
33��������������������������������������������������� ������������������������������������������ ������������oops������
34���������
35
36������������������������������������������ ������linux-kernel@vger.kernel.org������������������Linux
37���������������������
38
39Oops���������?
40----------------------
41
42������Oops���������klogd������������������������������������syslogd������syslogd������syslog������������
43������������/var/log/messages(���������/etc/syslog.conf)���������klogd���������,������������������
44������������dmesg > file������������������������������������������������������ ���������������
45cat /proc/kmsg > file��� ������������������������������������ kmsg������������������������������������������
46���������������������������������������������������������������������������������������:-
47
48���1��� ��������������������������������������������������������������� ���������������������������������������������
49������������������������ ���������������������������������������������������-������������������������������ ���������
50������������������������������������������������������������������������������vga=791������������������������������
51���������������������������vesafb���������������������������oops���������������
52
53���2������������������������������������Documentation/serial-console.txt������������������null
54modem���������������������������������������������������������������Minicom������������������
55
56���3���������Kdump������������Documentation/kdump/kdump.txt������
57���������Documentation/kdump/gdbmacros.txt������������dmesg gdb������������������������������������
58������������������
59
60������������
61----------------
62
63������������������������Linus������������������2.4��������� ������������������������������������������������������
64��������������������������� ������������������������������������ksymoops������������
65
66From: Linus Torvalds <torvalds@osdl.org>
67
68������������Oops.. [���������linux-kernel���������������]
69
70���������������������������������������������oops������������������������;-)
71
72������������������������������������������������������������������������
73
74	gdb /usr/src/linux/vmlinux
75	gdb> disassemble <offending_function>
76
77������������������������������������������������bug���������������������������������������������-������ksymoops
78������oops������������������������������������������
79
80���������������������������������������������������������������������������������������������������
81
82���������������������������������bug������������Code������������ksymoops������������������������������������������
83���������������������������������������������������������
84
85	char str[] = "\xXX\xXX\xXX...";
86	main(){}
87
88������gcc -g������������������������disassemble str������XX������������Oops������������-������������������
89���������������\x���������������-������������������������������������������������������������������������
90
91���������������������scripts/decodecode������shell���������������������������������
92decodecode < oops.txt
93
94���Code������������������������������������������������������������������������������������������������������������
95������������������������������
96
97Code: f9 0f 8d f9 00 00 00 8d 42 0c e8 dd 26 11 c7 a1 60 ea 2b f9 8b 50 08 a1
9864 ea 2b f9 8d 34 82 8b 1e 85 db 74 6d 8b 15 60 ea 2b f9 <8b> 43 04 39 42 54
997e 04 40 89 42 54 8b 43 04 3b 05 00 f6 52 c0
100
101������������������������������������������������������������
102
103	cd /usr/src/linux
104	make fs/buffer.s 	# ���������������BUG���������
105
106���������������gdb���������������������������������������������
107
108���������������������������������������������������������������C���������������������������������������������������
109���������������������������������������������������������������oops���������������������������������-������������������
110���������������������������������������������������������������������������������������������������C������������������
111������
112
113���������������������������������������������������������������Code������������������������������������������������������
114���������������������������������������������������������-������������������������������������������������������������
115���������������������������������������������������������..
116
117������������������������������������������������������������������������������������������������������������������������
118������������������������������������������������������������������������������������������������������������
119������������������������������������������������������������������������������������������������������������������������
120���������������������������������������������������������������������������
121
122_������_������������������������������������������������������������������������ ������������������������������������
123������������������������������������������������������������������������;-)
124
125		Linus
126
127
128---------------------------------------------------------------------------
129������Oops������������������
130
131������������Linus���������������������������klogd���������������������������������������������������������������
132���������������������������������������������1.3-pl3���sysklogd������
133
134���������������������������klogd������������������������������������������������������������������������������������
135������
136
137klogd������������������������������������������������������������������������������������������������ksymoops
138������������System.map������������������������������klogd������������������������������������������system
139map���������������klogd������������map���������������klogd������������
140
141��������������������������������������������������������������� ������������������������������������������������������
142������������������������������������������������������������������������������������������������������������
143
144���������������������������������������������������������������������������������������������������������������������
145klogd������������������������������������������������������������������������������������������
146
147������klogd���������������������������������������������������������������������������������������������������������
148������������������������������������
149
150���������������������������������������������������������������������������������������������������������������klogd
151��������������� ���������������������������������������klogd���������������������������������������������������������
152������������������������������ ���������������������klogd������������
153
154sysklogd������������������������������������modules-2.0.0���������������������������������������������������
155������������klogd���������������������������������������������������������������������������������������������������
156������������������������
157
158������������klogd���������������������������������������������������������������������
159---------------------------------------------------------------------------
160Aug 29 09:51:01 blizard kernel: Unable to handle kernel paging request at virtual address f15e97cc
161Aug 29 09:51:01 blizard kernel: current->tss.cr3 = 0062d000, %cr3 = 0062d000
162Aug 29 09:51:01 blizard kernel: *pde = 00000000
163Aug 29 09:51:01 blizard kernel: Oops: 0002
164Aug 29 09:51:01 blizard kernel: CPU:    0
165Aug 29 09:51:01 blizard kernel: EIP:    0010:[oops:_oops+16/3868]
166Aug 29 09:51:01 blizard kernel: EFLAGS: 00010212
167Aug 29 09:51:01 blizard kernel: eax: 315e97cc   ebx: 003a6f80   ecx: 001be77b   edx: 00237c0c
168Aug 29 09:51:01 blizard kernel: esi: 00000000   edi: bffffdb3   ebp: 00589f90   esp: 00589f8c
169Aug 29 09:51:01 blizard kernel: ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018
170Aug 29 09:51:01 blizard kernel: Process oops_test (pid: 3374, process nr: 21, stackpage=00589000)
171Aug 29 09:51:01 blizard kernel: Stack: 315e97cc 00589f98 0100b0b4 bffffed4 0012e38e 00240c64 003a6f80 00000001
172Aug 29 09:51:01 blizard kernel:        00000000 00237810 bfffff00 0010a7fa 00000003 00000001 00000000 bfffff00
173Aug 29 09:51:01 blizard kernel:        bffffdb3 bffffed4 ffffffda 0000002b 0007002b 0000002b 0000002b 00000036
174Aug 29 09:51:01 blizard kernel: Call Trace: [oops:_oops_ioctl+48/80] [_sys_ioctl+254/272] [_system_call+82/128]
175Aug 29 09:51:01 blizard kernel: Code: c7 00 05 00 00 00 eb 08 90 90 90 90 90 90 90 90 89 ec 5d c3
176---------------------------------------------------------------------------
177
178Dr. G.W. Wettstein           Oncology Research Div. Computing Facility
179Roger Maris Cancer Center    INTERNET: greg@wind.rmcc.com
180820 4th St. N.
181Fargo, ND  58122
182Phone: 701-234-7556
183
184
185---------------------------------------------------------------------------
186������������������
187
188������oops���������������������������������������������'Tainted: '���������������������������������������������
189��������� ������������������������������������������������������������������������������������������������������
190
191  1���'G'���������������������������������GPL������������������������'P'���������������������������������������
192������������MODULE_LICENSE������������insmod������������GPL���������������MODULE_LICENSE������������
193���������������������
194
195  2���'F'������������������������insmod -f������������������������������' '���������������������������������������
196
197  3���'S'������oops���������SMP��������������������������������������������������������������������� ������������
198������������������������������SMP���������������������
199
200  4���'R'���������������������insmod -f���������������������' '���������������������������������������
201
202  5���'M'���������������������������������������������������' '���������������������������������������
203
204  6���'B'������������������������������������������������������������������������������������������
205
206  7���'U'���������������������������������������������������������������������������' '���
207
208  8���'D'������������������������������������OOPS������BUG���
209
210������'Tainted: '������������������������������������������������������������������������������������������������
211������������������������������������������������������������������������������������������������������������������������
212������������������������������������
213