1

I am facing a performance issue on my embedded box which is x86 based. I have installed valgrind on it, but so far it looks that it gives the performance data for application program but if I want to check the performance data for the kernel drivers, how can I do that?

Is there any tool which can help do that, by rebuilding the kernel with some options or anything..

Really appreciate any help!!

Viks
  • 760
  • 4
  • 12
  • 26
  • What you need to know is which statements in *your code* are costing the most time, whether or not the cost is in the form of system calls. That's what [*random pausing*](http://stackoverflow.com/a/378024/23771) does. It won't do any good to have visibility into the kernel, because you can't change anything in there. You need to know about the code *you* can fix. – Mike Dunlavey Apr 05 '13 at 00:07
  • Thanks, but , my Kernel has some customized modules, which can be modified by me, so is there any tool I can port on my embedded box which is X86 based to do kernel level profiling. – Viks Apr 05 '13 at 16:17
  • OK, in that case I stand corrected. You need samples that reach into the kernel. When I did that, ages ago, I used an in-circuit-emulator. It wasn't easy, but it did find the problems. – Mike Dunlavey Apr 05 '13 at 17:04

1 Answers1

1

Have a look at perf. Apparently there is also some effort going on to implement a callgrind converter.

redblackbit
  • 816
  • 8
  • 12