2 * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com)
4 * wrapper around vmalloc_sync_all. Using KALLSYMS to get its address when
5 * available, else we need to have a kernel that exports this function to GPL
8 * Dual LGPL v2.1/GPL v2 license.
11 #ifdef CONFIG_KALLSYMS
13 #include <linux/kallsyms.h>
15 #include <linux/splice.h>
18 ssize_t (*splice_to_pipe_sym
)(struct pipe_inode_info
*pipe
,
19 struct splice_pipe_desc
*spd
);
21 ssize_t
wrapper_splice_to_pipe(struct pipe_inode_info
*pipe
,
22 struct splice_pipe_desc
*spd
)
24 if (!splice_to_pipe_sym
)
25 splice_to_pipe_sym
= (void *) kallsyms_lookup_name("splice_to_pipe");
26 if (splice_to_pipe_sym
) {
27 return splice_to_pipe_sym(pipe
, spd
);
29 printk(KERN_WARNING
"LTTng: splice_to_pipe symbol lookup failed.\n");
37 #include <linux/splice.h>
39 ssize_t
wrapper_splice_to_pipe(struct pipe_inode_info
*pipe
,
40 struct splice_pipe_desc
*spd
)
42 return splice_to_pipe(pipe
, spd
);
This page took 0.040179 seconds and 4 git commands to generate.