5f400747cb1bcb5c3c5070884a330b8de3a3fb3b
1 #ifndef _LTT_WRAPPER_SPLICE_H
2 #define _LTT_WRAPPER_SPLICE_H
5 * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com)
7 * wrapper around vmalloc_sync_all. Using KALLSYMS to get its address when
8 * available, else we need to have a kernel that exports this function to GPL
11 * Dual LGPL v2.1/GPL v2 license.
14 #ifdef CONFIG_KALLSYMS
16 #include <linux/kallsyms.h>
17 #include <linux/splice.h>
20 ssize_t
wrapper_splice_to_pipe(struct pipe_inode_info
*pipe
,
21 struct splice_pipe_desc
*spd
)
23 ssize_t (*splice_to_pipe_sym
)(struct pipe_inode_info
*pipe
,
24 struct splice_pipe_desc
*spd
);
26 splice_to_pipe_sym
= (void *) kallsyms_lookup_name("splice_to_pipe");
27 if (splice_to_pipe_sym
) {
28 return splice_to_pipe_sym(pipe
, spd
);
30 printk(KERN_WARNING
"LTTng: splice_to_pipe symbol lookup failed.\n");
36 #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
);
46 #endif /* _LTT_WRAPPER_SPLICE_H */
This page took 0.040632 seconds and 3 git commands to generate.