X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Fftrace.h;h=ace33c54100daf91235b611ee275d4727d4c575e;hb=c539a324b020171c10d0fcb100892ac93c17e9e7;hp=9c18cc5648424667f5a907a1170e2714685ce651;hpb=974a27a60b6a63fe8064555f3ae053272af662de;p=lttng-modules.git diff --git a/wrapper/ftrace.h b/wrapper/ftrace.h index 9c18cc56..ace33c54 100644 --- a/wrapper/ftrace.h +++ b/wrapper/ftrace.h @@ -16,6 +16,7 @@ #ifdef CONFIG_KALLSYMS #include +#include "kallsyms.h" static inline int wrapper_register_ftrace_function_probe(char *glob, @@ -24,7 +25,7 @@ int wrapper_register_ftrace_function_probe(char *glob, int (*register_ftrace_function_probe_sym)(char *glob, struct ftrace_probe_ops *ops, void *data); - register_ftrace_function_probe_sym = (void *) kallsyms_lookup_name("register_ftrace_function_probe"); + register_ftrace_function_probe_sym = (void *) kallsyms_lookup_funcptr("register_ftrace_function_probe"); if (register_ftrace_function_probe_sym) { return register_ftrace_function_probe_sym(glob, ops, data); } else { @@ -40,7 +41,7 @@ void wrapper_unregister_ftrace_function_probe(char *glob, void (*unregister_ftrace_function_probe_sym)(char *glob, struct ftrace_probe_ops *ops, void *data); - unregister_ftrace_function_probe_sym = (void *) kallsyms_lookup_name("unregister_ftrace_function_probe"); + unregister_ftrace_function_probe_sym = (void *) kallsyms_lookup_funcptr("unregister_ftrace_function_probe"); if (unregister_ftrace_function_probe_sym) { unregister_ftrace_function_probe_sym(glob, ops, data); } else {