ftrace-hook
ftrace-hook copied to clipboard
can not work on arm64
I want to function hooking on arm64 but the code build fail
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?
https://github.com/ilammy/ftrace-hook/blob/ff7bad4cd3de3d5ed8fe2baf8a1676d1cec7b5d8/ftrace_hook.c#L224-L226