Add ThreadManForKernel and ModuleForKernel

Sample log:https://gist.github.com/sum2012/3bb5deb1a806ef18f5f3