Re: kernel space: finding cpu usage of individual process/thread

2022-03-24 Thread Greg KH
On Wed, Mar 23, 2022 at 09:15:16PM +0530, Pintu Agarwal wrote: > Hi, > > For one of my requirements I need to find cpu usage or load_avg of an > individual process or thread using "for_each_process_thread(process, > thread)" where process/thread is a pointer to "task_struct". Who is making such

kernel space: finding cpu usage of individual process/thread

2022-03-23 Thread Pintu Agarwal
Hi, For one of my requirements I need to find cpu usage or load_avg of an individual process or thread using "for_each_process_thread(process, thread)" where process/thread is a pointer to "task_struct". But, currently I am not able to figure out which is the right field from task_struct to get