#include "ltt-events.h"
#include "wrapper/ringbuffer/frontend_types.h"
#include "wrapper/vmalloc.h"
+#include "wrapper/kallsyms.h"
#include "ltt-tracer.h"
static
int wrapper_task_prio_init(void)
{
- wrapper_task_prio_sym = (void *) kallsyms_lookup_name("task_prio");
+ wrapper_task_prio_sym = (void *) kallsyms_lookup_funcptr("task_prio");
if (!wrapper_task_prio_sym) {
printk(KERN_WARNING "LTTng: task_prio symbol lookup failed.\n");
return -EINVAL;
#ifdef CONFIG_KALLSYMS
#include <linux/kallsyms.h>
+#include "kallsyms.h"
static inline
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 {
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 {
#include <linux/kallsyms.h>
#include <linux/fs.h>
#include <linux/splice.h>
+#include "kallsyms.h"
static
ssize_t (*splice_to_pipe_sym)(struct pipe_inode_info *pipe,
struct splice_pipe_desc *spd)
{
if (!splice_to_pipe_sym)
- splice_to_pipe_sym = (void *) kallsyms_lookup_name("splice_to_pipe");
+ splice_to_pipe_sym = (void *) kallsyms_lookup_funcptr("splice_to_pipe");
if (splice_to_pipe_sym) {
return splice_to_pipe_sym(pipe, spd);
} else {
#ifdef CONFIG_KALLSYMS
#include <linux/kallsyms.h>
+#include "kallsyms.h"
static inline
void wrapper_vmalloc_sync_all(void)
{
void (*vmalloc_sync_all_sym)(void);
- vmalloc_sync_all_sym = (void *) kallsyms_lookup_name("vmalloc_sync_all");
+ vmalloc_sync_all_sym = (void *) kallsyms_lookup_funcptr("vmalloc_sync_all");
if (vmalloc_sync_all_sym) {
vmalloc_sync_all_sym();
} else {