To understand the behavior of the Linux kernel, you need a certain voyeur experience, which can be roughly divided into the following:
1. Use printk
directly in the kernel code or module code you want Peeping somewhere printk some information. This approach requires you to compile the kernel code and compile the kernel module, and install it correctly into the kernel and launch it. Although it takes so much knowledge, this method is more earthy. Unless you have to, you must have a simpler method than this.
2. View dmesg
This method depends on what information the kernel will output. The information displayed by dmesg is generally more important information.
3. Proficient procfs
procfs contains a lot of useful and interesting information, either you look directly (special format, difficult to understand), or through tool analysis, such as rtstat, conntrack, etc. The tools are all parsing the files under proc and displaying them in a readable form. Some statistical information about the kernel has a corresponding stat file for analysis.
4. Using kprobe
This is a debugging method, but it is generally not used and is not used.
5. Use some small means
It depends on your intelligence, come up with some logic of your own, guide or smash the kernel, make it into your trap, confirm your guess.
Computer Store News: Microsoft today pushed Win10 Mobile Build 14342.1004 to Insider Express members
computer store news Wang Zhentang said that the initial success of Windows 8 (hereinafter referred t
The new Intel has become a newcomer. This seems to have changed the habit: the Ivy Bridge architectu
Computer store news When Microsoft decided to adopt the Metro interface in Win8, the impact is earth
Lenovo notebook motherboard BIOS settings have a slight difference with other notebook BIOS settings
Detailed analysis of the usage of the Show command
Windows 8 three hidden new features exposure
Microsoft has delivered Win8.1 DP build 9391 to OEM
iPad nibble market Windows 8 is just "indirect harm"
Microsoft updated Win10 tool Media Creation Tool
Win10 is not safe? Israeli manufacturers create "invulnerable" Windows
Microsoft will release Office 2013 beta next week
Win8 preview will expire in one month.
System automatic upgrade win10 is how to solve the automatic update win10 shutdown method
Win7 system software installation tips Nsis Error how to do
Win7 system play red alert 2 how to display full screen?
How WinXP uses Media Player to view pictures
Win10 application loading failure how to do win10 application loading failure solution
God does not know how to replace the Win XP user password
Simple two-step realization of win 7 Internet automatic dialing
Another way to achieve XP, Vista dual system coexistence
"Device eth0 does not seem to be pres