update kernel related codes

1) move kernel related codes to kernel/
2) add test_proc