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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-25-2011 #1
- Join Date
- Apr 2011
How to calculate how many times a function runs ?????
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 #2
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...