https://www.myfreax.com/dmesg-command-in-linux/#google_vignette
dmesg -H -P
以人类可读模式,且不使用pager(pager会从最开始开始显示,你可以用上下键翻页)
-H, –human
Enable human-readable output. See also –color, –reltime and –nopager.
-P, –nopager
Do not pipe output into a pager. A pager is enabled by default for –human output
输出比如:
[Feb23 21:05] gldbc_local_ops[4115205]: segfault at 0 ip 000055f7b28fa975 sp 00007eafaa5fc9e0 error 4 in gldbc_local_ops[55f7b265b000+4a4000]
[ +0.000007] Code: 8b 44 24 08 48 89 44 24 38 48 85 c0 74 12 48 83 3d 2f 36 34 00 00 0f 84 49 01 00 00 f0 ff 40 08 48 8b 44 24 28 48 8b 54 24 08 <8b> 30 48 8d 4c 24 30 4c 89 ef e8 8c 7c 05 00 48 8b 7c 24 38 48 85
[Feb24 10:33] gldbc_local_ops[627595]: segfault at 0 ip 00005610dbd7b975 sp 00007e63391fa9e0 error 4 in gldbc_local_ops[5610dbadc000+4a4000]
[ +0.000007] Code: 8b 44 24 08 48 89 44 24 38 48 85 c0 74 12 48 83 3d 2f 36 34 00 00 0f 84 49 01 00 00 f0 ff 40 08 48 8b 44 24 28 48 8b 54 24 08 <8b> 30 48 8d 4c 24 30 4c 89 ef e8 8c 7c 05 00 48 8b 7c 24 38 48 85