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

access registers with PT_REGS macros & add LINUX_ARCH flags #12

Merged
merged 3 commits into from
Mar 27, 2022

Conversation

chriskaliX
Copy link
Contributor

access registers with PT_REGS macros and add LINUX_ARCH flags to makefile.

@@ -44,7 +44,7 @@ int mysql56_query(struct pt_regs *ctx) {
return 0;
}

uint64_t len = (uint64_t) (ctx)->cx;
uint64_t len = (uint64_t)PT_REGS_PARM1(ctx);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(ctx)->cx macros is PT_REGS_PARM4 .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! it's a mistake 👍

correct for PT_REGS_PARM4
@chriskaliX
Copy link
Contributor Author

it's updated now

@cfc4n cfc4n merged commit ff485c3 into gojue:master Mar 27, 2022
@cfc4n
Copy link
Member

cfc4n commented Mar 27, 2022

LGTM, thanks.

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

Successfully merging this pull request may close these issues.

2 participants