|
@@ -69,24 +69,6 @@ notrace int ftrace_update_ftrace_func(ftrace_func_t func)
|
|
|
return ftrace_modify_code(ip, old, new);
|
|
|
}
|
|
|
|
|
|
-notrace int ftrace_mcount_set(unsigned long *data)
|
|
|
-{
|
|
|
- unsigned long ip = (long)(&mcount_call);
|
|
|
- unsigned long *addr = data;
|
|
|
- unsigned char old[MCOUNT_INSN_SIZE], *new;
|
|
|
-
|
|
|
- /*
|
|
|
- * Replace the mcount stub with a pointer to the
|
|
|
- * ip recorder function.
|
|
|
- */
|
|
|
- memcpy(old, &mcount_call, MCOUNT_INSN_SIZE);
|
|
|
- new = ftrace_call_replace(ip, *addr);
|
|
|
- *addr = ftrace_modify_code(ip, old, new);
|
|
|
-
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
int __init ftrace_dyn_arch_init(void *data)
|
|
|
{
|
|
|
ftrace_mcount_set(data);
|