I am facing a problem with getrusage(). I was trying to get the time taken by a device driver for doing IO. My device driver is using kernel_thread() to create new threads at kernel level. I used RUSAGE_CHILDREN option with getrusage().
I need some help!!!
I tried using fork() to create a child process at user level and get the time taken by child process using RUSAGE_CHILDREN option. It is working fine.