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

can not work on arm64 #11

Open
xvim opened this issue Nov 25, 2021 · 2 comments
Open

can not work on arm64 #11

xvim opened this issue Nov 25, 2021 · 2 comments

Comments

@xvim
Copy link

xvim commented Nov 25, 2021

I want to function hooking on arm64 but the code build fail

@xvim xvim closed this as completed Nov 25, 2021
@xvim xvim reopened this Nov 25, 2021
@ilammy
Copy link
Owner

ilammy commented Nov 27, 2021

Uh... Yeah, I've tested this only on x86_64 since that's the hardware I have. Sorry, I was not an expert at arm64 at the time and I'm not one now either. I believe it has a chance at working on arm64 though, if you let the code compile there, ftrace is a generic framework after all.

Have you tried removing the CONFIG_X86_64 guard check?

ftrace-hook/ftrace_hook.c

Lines 224 to 226 in ff7bad4

#ifndef CONFIG_X86_64
#error Currently only x86_64 architecture is supported
#endif

@tfoldi
Copy link

tfoldi commented Sep 13, 2024

hey, I added ARM64 support in #15. some of the flags were not compatible with arm cpu. also, on the ARM64 architecture, the equivalent of regs->ip on x86 would be regs->pc (instruction pointer to program counter).

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

3 participants