Results 1 to 2 of 2
Hi all:
I have a function in kernel module and I want to see how many times it is called and runs per second. I add a counter in the ...
- 09-25-2011 #1Just Joined!
- Join Date
- Apr 2011
- Posts
- 8
How to calculate how many times a function runs ?????
Hi all:
I have a function in kernel module and I want to see how many times it is called and runs per second. I add a counter in the function so once it runs, counter+=1; is there any timer or something which can check this counter every second???Thanks very much.Last edited by neyshule; 09-25-2011 at 06:01 AM. Reason: not precise
- 09-26-2011 #2Just Joined!
- Join Date
- Apr 2010
- Posts
- 69
You could spit out a log entry every time it runs and include the count and the time in the log.
Otherwise, the second timer you request is there, though I cannot remember the name. Boy, what a useless reply...
N


Reply With Quote