May 30, 2014

Kgdb, Kdb

Using kgdb, kdb and the kernel debugger internals

Kgdb is a debug stub that allows another machine to connect a source-level debugger over a serial link.

kdb reuses kgdb's breakpoint and polled I/O infrastructure in order to implement a machine-level kernel debugger that runs entirely on the machine being debugged.

May 24, 2014

May 21, 2014

May 19, 2014

Kernel. Misc

# Options
sudo sysctl -a
less /usr/include/linux/sysctl.h

ulimit -a # Sets or reports user resource limits.

cat /proc/sys/kernel/ostype
cat /proc/sys/kernel/osrelease

ls /lib/modules/$(uname -r)/kernel/fs
List open files
lsof -p

File
stat text.txt
file arch.tar.xz
fuser -v server.sock

Inode
ls -i
df -i

Port
fuser -v -n tcp 11100

Interrupts


Timing

Page and buffer cache fadvise, madvise, readahead
pdflush