New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I get the filename from page fault? #3097
Comments
This won't work. For kretprobe, there is no guarantee that at times of func exit, the first argument is still kept in the same register. That register may have been reused in the function body. The better way is to use kfunc_exit. |
Can I get the filename where pagefault is occuring using kprobe(Not kretprobe)? |
I want to know the source of file where the page fault occurs? I have tried the code below but not successfull.
|
You probably want to double check whether you got 0 for any of the following statements.
|
Thank you very much for kind support. This is the last version of the program which counts page faults based on filename :
|
I want to know the source of file where the page fault occurs? I have tried the code below but not successfull.
I am attaching handle_mm_fault on front-end.
The text was updated successfully, but these errors were encountered: