date [-d @int|str] [+%s|"+%F %T"] netstat -ltunp sar -n DEV 1
log_buf(ring buffer)(syslog)(printk)
printk 的输出都是保存在log_buf里的
How to read it the ring buffer? Here is a beautiful illustration from IBM Developerworks
dmesg would be your first resort! How does dmesg accomplish its task? By a call to syslog()! How does syslog do its job? Through the system call interface which in turn call do_syslog(). do_syslog() does the finishing act like this