![]() |
EpiRootkit
By STDBOOL
|
Go to the source code of this file.
Functions | |
| static void notrace | fh_ftrace_thunk (unsigned long ip, unsigned long parent_ip, struct ftrace_ops *ops, struct ftrace_regs *regs) |
| ftrace callback that redirects execution to the hook function. | |
| int | fh_install_hook (struct ftrace_hook *hook) |
| Install an individual ftrace hook. | |
| void | fh_remove_hook (struct ftrace_hook *hook) |
| Remove an individual ftrace hook. | |
| int | fh_install_hooks (struct ftrace_hook *hooks, size_t count) |
| Install multiple ftrace hooks. | |
| void | fh_remove_hooks (struct ftrace_hook *hooks, size_t count) |
| Remove multiple ftrace hooks. | |
Variables | |
| unsigned long(*)(const char *) | fh_init_kallsyms_lookup (void) |
| Retrieve the address of kallsyms_lookup_name via kprobe. | |
|
static |
ftrace callback that redirects execution to the hook function.
| ip | The instruction pointer. |
| parent_ip | The parent instruction pointer. |
| ops | Pointer to ftrace_ops structure. |
| regs | Pointer to ftrace_regs structure. |
| int fh_install_hook | ( | struct ftrace_hook * | hook | ) |
Install an individual ftrace hook.
| hook | Pointer to an ftrace_hook structure. |
Definition at line 58 of file ftrace.c.
| int fh_install_hooks | ( | struct ftrace_hook * | hooks, |
| size_t | count | ||
| ) |
Install multiple ftrace hooks.
| hooks | Pointer to an array of ftrace_hook structures. |
| count | Number of hooks in the array. |
Definition at line 116 of file ftrace.c.
| void fh_remove_hook | ( | struct ftrace_hook * | hook | ) |
Remove an individual ftrace hook.
| hook | Pointer to an ftrace_hook structure. |
| void fh_remove_hooks | ( | struct ftrace_hook * | hooks, |
| size_t | count | ||
| ) |
Remove multiple ftrace hooks.
| hooks | Pointer to an array of ftrace_hook structures. |
| count | Number of hooks in the array. |
| unsigned long(*)(const char *) fh_init_kallsyms_lookup(void) | ( | void | ) |
Retrieve the address of kallsyms_lookup_name via kprobe.
This function registers a temporary kprobe on "kallsyms_lookup_name", caches the pointer, and returns it.
Definition at line 13 of file ftrace.c.