net/socket.c
合入文件及代码:
https://gitee.com/r77683962/linux-6.9.0/commit/d9aca07352311a9c185cbc2d3c39894e02f10df3
开机后dmesg命令运行效果:
这也是一部分,不过从这里看出来,添加打印日志的地方不太好,另一个问题比较奇怪,操作系统在运行的时候,什么也没操作,操作系统也在不断的调用网络的接口。
[ 85.995306] net/socket.c __sys_recvmsg
[ 85.995384] net/socket.c __do_sys_sendmsg
[ 85.995422] net/socket.c __sys_recvmsg
[ 86.003295] net/socket.c __do_sys_sendmsg
[ 86.003395] net/socket.c __sys_recvmsg
[ 86.003451] net/socket.c __do_sys_sendmsg
[ 86.003507] net/socket.c __sys_recvmsg
[ 86.005303] net/socket.c __sys_recvmsg
[ 86.005375] net/socket.c __sys_recvmsg
[ 86.005388] net/socket.c __sys_recvmsg
[ 86.014216] net/socket.c __do_sys_sendmsg
[ 86.014341] net/socket.c __sys_recvmsg
[ 86.014407] net/socket.c __do_sys_sendmsg
[ 86.014488] net/socket.c __sys_recvmsg
[ 86.035860] net/socket.c __do_sys_sendmsg
[ 86.035989] net/socket.c __sys_recvmsg
[ 86.036061] net/socket.c __do_sys_sendmsg
[ 86.036214] net/socket.c __sys_recvmsg
[ 86.043622] net/socket.c __do_sys_sendmsg
[ 86.043706] net/socket.c __sys_recvmsg
[ 86.043761] net/socket.c __do_sys_sendmsg
[ 86.043795] net/socket.c __sys_recvmsg
[ 86.059153] net/socket.c __do_sys_sendmsg
[ 86.059295] net/socket.c __sys_recvmsg
[ 86.059357] net/socket.c __do_sys_sendmsg
[ 86.059456] net/socket.c __sys_recvmsg
[ 86.067144] net/socket.c __do_sys_sendmsg
[ 86.067297] net/socket.c __sys_recvmsg
[ 86.067361] net/socket.c __do_sys_sendmsg
[ 86.067419] net/socket.c __sys_recvmsg
[ 86.075605] net/socket.c __do_sys_sendmsg
[ 86.075700] net/socket.c __sys_recvmsg
[ 86.075854] net/socket.c __do_sys_sendmsg
[ 86.076701] net/socket.c __sys_recvmsg
[ 86.502164] net/socket.c __do_sys_sendmsg
[ 86.502263] net/socket.c __sys_recvmsg
[ 86.502299] net/socket.c __sys_recvmsg
[ 86.502330] net/socket.c __do_sys_sendmsg
[ 86.502429] net/socket.c __sys_recvmsg
[ 86.502450] net/socket.c __sys_recvmsg
[ 86.502724] net/socket.c __do_sys_sendmsg
[ 86.502841] net/socket.c __do_sys_sendmsg
[ 86.520982] net/socket.c __sys_recvmsg
[ 86.521062] net/socket.c __sys_recvmsg
[ 86.521076] net/socket.c __sys_recvmsg
[ 86.521123] net/socket.c __sys_recvmsg
[ 86.521320] net/socket.c __do_sys_sendmsg
[ 86.521397] net/socket.c __sys_recvmsg
[ 86.521408] net/socket.c __sys_recvmsg
[ 86.521440] net/socket.c __do_sys_sendmsg
[ 86.521454] net/socket.c __sys_recvmsg
[ 86.521693] net/socket.c __do_sys_sendmsg
[ 86.521740] net/socket.c __sys_recvmsg
[ 86.521763] net/socket.c __sys_recvmsg
[ 86.521853] net/socket.c __do_sys_sendmsg
[ 86.521887] net/socket.c __sys_recvmsg
[ 86.521896] net/socket.c __sys_recvmsg
[ 86.521910] net/socket.c __sys_recvmsg
[ 86.521916] net/socket.c __sys_recvmsg
[ 86.521944] net/socket.c __do_sys_sendmsg
[ 86.521959] net/socket.c __sys_recvmsg
[ 86.521982] net/socket.c __sys_recvmsg
[ 86.522000] net/socket.c __sys_recvmsg
[ 86.522258] net/socket.c __do_sys_sendmsg
[ 86.522291] net/socket.c __sys_recvmsg
[ 86.522299] net/socket.c __sys_recvmsg
[ 86.522338] net/socket.c __do_sys_sendmsg
[ 86.522350] net/socket.c __sys_recvmsg
[ 86.522389] net/socket.c __sys_recvmsg
[ 86.522415] net/socket.c __sys_recvmsg
[ 86.522540] net/socket.c __do_sys_sendmsg
[ 86.522595] net/socket.c __sys_recvmsg
[ 86.522619] net/socket.c __sys_recvmsg
[ 86.529343] net/socket.c __do_sys_sendmsg
[ 86.529619] net/socket.c __sys_recvmsg
[ 86.529649] net/socket.c __sys_recvmsg
[ 86.529737] net/socket.c __do_sys_sendmsg
[ 86.530050] net/socket.c __sys_recvmsg
[ 86.530075] net/socket.c __sys_recvmsg
[ 86.530536] net/socket.c __do_sys_sendmsg
[ 86.531250] net/socket.c __sys_recvmsg
[ 86.531285] net/socket.c __sys_recvmsg
[ 86.531397] net/socket.c __do_sys_sendmsg
[ 86.531806] net/socket.c __sys_recvmsg
[ 86.531829] net/socket.c __sys_recvmsg
[ 86.532368] net/socket.c __do_sys_sendmsg
[ 86.535282] net/socket.c __sys_recvmsg
[ 86.535318] net/socket.c __sys_recvmsg
[ 86.535442] net/socket.c __do_sys_sendmsg
[ 86.535499] net/socket.c __sys_recvmsg
[ 86.535522] net/socket.c __sys_recvmsg
[ 86.539019] net/socket.c __do_sys_sendmsg
[ 86.539459] net/socket.c __sys_recvmsg
[ 86.539495] net/socket.c __sys_recvmsg
[ 86.539636] net/socket.c __do_sys_sendmsg
[ 86.539831] net/socket.c __sys_recvmsg
[ 86.539859] net/socket.c __sys_recvmsg
[ 86.541156] net/socket.c __do_sys_sendmsg
[ 86.541469] net/socket.c __sys_recvmsg
[ 86.541493] net/socket.c __sys_recvmsg
[ 86.541561] net/socket.c __do_sys_sendmsg
[ 86.541644] net/socket.c __sys_recvmsg
[ 86.541663] net/socket.c __sys_recvmsg
[ 86.543268] net/socket.c __do_sys_sendmsg
[ 86.543368] net/socket.c __sys_recvmsg
[ 86.543396] net/socket.c __sys_recvmsg
[ 86.543450] net/socket.c __do_sys_sendmsg
[ 86.543526] net/socket.c __sys_recvmsg
[ 86.543536] net/socket.c __sys_recvmsg
[ 86.543566] net/socket.c __do_sys_sendmsg
[ 86.543627] net/socket.c __sys_recvmsg
[ 86.543652] net/socket.c __sys_recvmsg
[ 86.543750] net/socket.c __do_sys_sendmsg
[ 86.544402] net/socket.c __do_sys_sendmsg
[ 86.544417] net/socket.c __sys_recvmsg
[ 86.544966] net/socket.c __sys_recvmsg
[ 86.545011] net/socket.c __sys_recvmsg
[ 86.545338] net/socket.c __do_sys_sendmsg
[ 86.545438] net/socket.c __sys_recvmsg
[ 86.545469] net/socket.c __sys_recvmsg
[ 86.545498] net/socket.c __do_sys_sendmsg
[ 86.545570] net/socket.c __sys_recvmsg
[ 86.545588] net/socket.c __sys_recvmsg
[ 86.546277] net/socket.c __sys_recvmsg
[ 86.546312] net/socket.c __sys_recvmsg
[ 86.546408] net/socket.c __do_sys_sendmsg
[ 86.546552] net/socket.c __sys_recvmsg
[ 86.546563] net/socket.c __sys_recvmsg
[ 86.546605] net/socket.c __do_sys_sendmsg
[ 86.550188] net/socket.c __sys_recvmsg
[ 86.550204] net/socket.c __sys_recvmsg
[ 86.550241] net/socket.c __sys_recvmsg
[ 86.550415] net/socket.c __do_sys_sendmsg
[ 86.550489] net/socket.c __sys_recvmsg
[ 86.550511] net/socket.c __sys_recvmsg
[ 86.550575] net/socket.c __do_sys_sendmsg
[ 86.550608] net/socket.c __sys_recvmsg
[ 86.550626] net/socket.c __sys_recvmsg
[ 86.550689] net/socket.c __do_sys_sendmsg
[ 86.550789] net/socket.c __sys_recvmsg
[ 86.550801] net/socket.c __sys_recvmsg
[ 86.550833] net/socket.c __do_sys_sendmsg
[ 86.551058] net/socket.c __sys_recvmsg
[ 86.551074] net/socket.c __sys_recvmsg
[ 86.551093] net/socket.c __sys_recvmsg
[ 86.551244] net/socket.c __do_sys_sendmsg
[ 86.551300] net/socket.c __sys_recvmsg
[ 86.551309] net/socket.c __sys_recvmsg
[ 86.551351] net/socket.c __do_sys_sendmsg
[ 86.551390] net/socket.c __sys_recvmsg
[ 86.551438] net/socket.c __sys_recvmsg
[ 86.551470] net/socket.c __sys_recvmsg
[ 86.551561] net/socket.c __do_sys_sendmsg
[ 86.551628] net/socket.c __sys_recvmsg
[ 86.551652] net/socket.c __sys_recvmsg
[ 86.561015] net/socket.c __do_sys_sendmsg
[ 86.561086] net/socket.c __sys_recvmsg
[ 86.561120] net/socket.c __sys_recvmsg
[ 86.561280] net/socket.c __do_sys_sendmsg
[ 86.561340] net/socket.c __sys_recvmsg
[ 86.561358] net/socket.c __sys_recvmsg
[ 86.562687] net/socket.c __do_sys_sendmsg
[ 86.563102] net/socket.c __sys_recvmsg
[ 86.563146] net/socket.c __sys_recvmsg
[ 86.563307] net/socket.c __do_sys_sendmsg
[ 86.563456] net/socket.c __sys_recvmsg
[ 86.563482] net/socket.c __sys_recvmsg
[ 86.566689] net/socket.c __do_sys_sendmsg
[ 86.566771] net/socket.c __sys_recvmsg
[ 86.566797] net/socket.c __sys_recvmsg
[ 86.566890] net/socket.c __do_sys_sendmsg
[ 86.566979] net/socket.c __sys_recvmsg
[ 86.566996] net/socket.c __sys_recvmsg
[ 86.568012] net/socket.c __do_sys_sendmsg
[ 86.568088] net/socket.c __sys_recvmsg
[ 86.568114] net/socket.c __sys_recvmsg
[ 86.568208] net/socket.c __do_sys_sendmsg
[ 86.568251] net/socket.c __sys_recvmsg
[ 86.568265] net/socket.c __sys_recvmsg
[ 86.577366] net/socket.c __do_sys_sendmsg
[ 86.577434] net/socket.c __sys_recvmsg
[ 86.577465] net/socket.c __sys_recvmsg
[ 86.577564] net/socket.c __do_sys_sendmsg
[ 86.577627] net/socket.c __sys_recvmsg
[ 86.577642] net/socket.c __sys_recvmsg
[ 86.583318] net/socket.c __do_sys_sendmsg
[ 86.583427] net/socket.c __sys_recvmsg
[ 86.583460] net/socket.c __sys_recvmsg
[ 86.583530] net/socket.c __do_sys_sendmsg
[ 86.583635] net/socket.c __sys_recvmsg
[ 86.583649] net/socket.c __sys_recvmsg
[ 86.583688] net/socket.c __do_sys_sendmsg
[ 86.583815] net/socket.c __sys_recvmsg
[ 86.583838] net/socket.c __sys_recvmsg
[ 86.584264] net/socket.c __do_sys_sendmsg
[ 86.584678] net/socket.c __sys_recvmsg
[ 86.584703] net/socket.c __sys_recvmsg
[ 86.846010] net/socket.c __do_sys_sendmsg
[ 86.846237] net/socket.c __sys_recvmsg
[ 86.964997] net/socket.c __sys_getsockopt
[ 87.065608] net/socket.c __sys_recvmsg
[ 87.065650] net/socket.c __sys_recvmsg
[ 87.065662] net/socket.c __sys_recvmsg
[ 87.965816] net/socket.c __sys_getsockopt
[ 88.013801] net/socket.c __sys_recvmsg
[ 88.013829] net/socket.c __sys_recvmsg
由于打印日志非常多,dmsg的缓冲区感觉不断被后边日志冲掉。
这里上传了一个正常些的,一个日志量非常大的。
从另一个角度表示,添加日志打印也要注意。
还有随便修改内核代码容易导致系统起不来,这两天碰到些(建议使用vm的快照和快照恢复功能)。。。。内核代码比较复杂