ghostkadost
ghostkadost

Reputation: 502

Measuring execution time of functions and call count in linux module

I am maintaining a kernel module on linux 2.6.18 (RHEL 5.5) kernel and we are seeing some performance issues.

I am trying to use oprofile for general profiling but it does not provide (or I do not know the option) statistics regarding how many times a function was called or how much time it took to execute a particular function. I can write my own code for measuring time taken in executing each function but it would be difficult to insert this into each function.

Is there a profiler that can accomplish this?

Upvotes: 2

Views: 3665

Answers (1)

man3
man3

Reputation: 171

Try also using the latest flamegraphs.

Upvotes: 1

Related Questions