projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wrapper: remove lttng_access_ok() wrapper
[lttng-modules.git]
/
lttng-filter-interpreter.c
diff --git
a/lttng-filter-interpreter.c
b/lttng-filter-interpreter.c
index c7ce7d331bd2dc4eb8639751d7b38377ed451fca..811a262296190ef60e52481fa333c823f9a76886 100644
(file)
--- a/
lttng-filter-interpreter.c
+++ b/
lttng-filter-interpreter.c
@@
-7,7
+7,7
@@
* Copyright (C) 2010-2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
* Copyright (C) 2010-2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
-#include <
wrapper
/uaccess.h>
+#include <
linux
/uaccess.h>
#include <wrapper/frame.h>
#include <wrapper/types.h>
#include <linux/swab.h>
#include <wrapper/frame.h>
#include <wrapper/types.h>
#include <linux/swab.h>
@@
-30,8
+30,7
@@
char get_char(struct estack_entry *reg, size_t offset)
char c;
/* Handle invalid access as end of string. */
char c;
/* Handle invalid access as end of string. */
- if (unlikely(!lttng_access_ok(VERIFY_READ,
- reg->u.s.user_str + offset,
+ if (unlikely(!access_ok(reg->u.s.user_str + offset,
sizeof(c))))
return '\0';
/* Handle fault (nonzero return value) as end of string. */
sizeof(c))))
return '\0';
/* Handle fault (nonzero return value) as end of string. */
This page took
0.023238 seconds
and
4
git commands to generate.