Skip to content
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

PT_REGS_PARM1 return value is not "this" pointer when uprobing C++ class function #5058

Open
ZhangJiaQiao opened this issue Jul 10, 2024 · 0 comments

Comments

@ZhangJiaQiao
Copy link

What I want to probe is MongoDB server 'ServiceEntryPointMongod::handleRequest' function. 'this' pointer should be the first argument of the function. However, I used bcc 'PT_REGS_PARM1' macro to get the first argument of the function and found that it was not 'this' pointer. Finally, I got the 'this' pointer by the 'PT_REGS_PARM1' macro successfully as showed below.

image

image

And my question is what is the first argument I got and why 'this' pointer is the second argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant