I wanted to measure the time taken between some statements in my driver code(Linux version 3.4). I am using jiffies to record the start and end of the counter and then converting to milliseconds.
By default the HZ value is defined as 128 which gives the precision of only 7ms(ie for each increment in the counter by 1 ,the corresponding time will be incremented by 7ms)
If I increase the value of HZ to 1000,I can get a precision of 1ms.
I should modify some statements in kernel code.
So far I have tried these things but in vain In arch/arm/include/asm/param.h #define HZ CONFIG_HZ was replaced with #define HZ 256.
Are there any other statements to be modified?