Why does the kernprof command say,”kernprof: kernel does not support call graph mode”?
If kernprof (and the kernel) works for “-t pc” mode, but for “-t cg”, “-t scg”, and various other modes you see the error kernprof: kernel does not support call graph mode, then you have probably built the kernel with CONFIG_MCOUNT turned off. Turn on this option (in the “Kernel hacks” subsection). However, for i386 kernels you must apply the gcc patch prior to building the kernel with CONFIG_MCOUNT turned on.