Re: arm64 code looking for variable rodata_enabled when STRICT_KERNEL_RWX = n

2022-03-23 Thread Pavel Skripkin
Hi Chan, On 3/18/22 09:03, Chan Kim wrote: Hello all, [...] But now since CONFIG_STRICT_KERNEL_RWX=n, it is not defined here(CONFIG_STRICT_MODULE_RWX=n too). and arch/arm64/mm/mmu.c code is still using `rodata_enabled`. Is this a bug of the code? Or am I missing something? If arch s

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 t