projects
/
deliverable
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 'kernel_read' wrapper for kernels < v4.14
[deliverable/lttng-modules.git]
/
src
/
wrapper
/
random.c
diff --git
a/src/wrapper/random.c
b/src/wrapper/random.c
index 63a309882da1c60dcb10d795f03e379b94a73986..7a81bea60e588ed99d657131cfe00b50df8b55db 100644
(file)
--- a/
src/wrapper/random.c
+++ b/
src/wrapper/random.c
@@
-12,7
+12,7
@@
/* boot_id depends on sysctl */
#if defined(CONFIG_SYSCTL)
/* boot_id depends on sysctl */
#if defined(CONFIG_SYSCTL)
-#include <
linux
/fs.h>
+#include <
wrapper
/fs.h>
#include <linux/file.h>
#include <linux/sched.h>
#include <linux/uaccess.h>
#include <linux/file.h>
#include <linux/sched.h>
#include <linux/uaccess.h>
@@
-31,7
+31,7
@@
int wrapper_get_bootid(char *bootid)
if (IS_ERR(file))
return PTR_ERR(file);
if (IS_ERR(file))
return PTR_ERR(file);
- len = kernel_read(file, bootid, BOOT_ID_LEN - 1, &file->f_pos);
+ len =
lttng_
kernel_read(file, bootid, BOOT_ID_LEN - 1, &file->f_pos);
if (len != BOOT_ID_LEN - 1) {
ret = -EINVAL;
goto end;
if (len != BOOT_ID_LEN - 1) {
ret = -EINVAL;
goto end;
This page took
0.025177 seconds
and
5
git commands to generate.