ilammy / ftrace-hook

Using ftrace for function hooking in Linux kernel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can not work on arm64

xvim opened this issue · comments

commented

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?

ftrace-hook/ftrace_hook.c

Lines 224 to 226 in ff7bad4

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