Re: How to calculate page address to PFN in user space.
On Saturday, 6 April 2019 2:57 AM, Valdis Klētnieks wrote: On Fri, 05 Apr 2019 10:54:47 -, Pankaj Suryawanshi said: > I have PFN of all processes in user space, how to calculate page address to > PFN. *All* user processes? That's going to be a lot of PFN's. What problem are you trying to solve here? I am trying to solve problem with cma allocation failure, and try to find process who pinned the pages from cma reserved area. When cma allocation failed it dumped the information and it contains flags and page address, before failing i have information/PFN of processes who aquires pages from cma area. Now i want to find exact PFN of the dumped pages who is responsible for allocation failure. Note: I have got the pfn from /tools/vm/page-types.c in user space and i have start pfn of cma reserved area, so i filter the cma area pfn. (Hint - under what cases does the kernel care about the PFN of *any* user page?) ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: How to calculate page address to PFN in user space.
On Fri, 05 Apr 2019 10:54:47 -, Pankaj Suryawanshi said: > I have PFN of all processes in user space, how to calculate page address to > PFN. *All* user processes? That's going to be a lot of PFN's. What problem are you trying to solve here? (Hint - under what cases does the kernel care about the PFN of *any* user page?) ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
How to calculate page address to PFN in user space.
Hello, I have PFN of all processes in user space, how to calculate page address to PFN. eg . page address :bf05febc in kernel space. I have PFN no for user space processes as below. 8a81b 69da0 88cf4 88d06 88d07 9549f 952d0 9734a 87c7d 87ca0 How to calculate/match page address to PFN ? Regards, Pankaj ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies