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 uprobes wrapper
[lttng-modules.git]
/
lttng-syscalls.c
diff --git
a/lttng-syscalls.c
b/lttng-syscalls.c
index fb14f6b043a877a77176e94a5ff3926a4b180b07..bdbaa5e9536462ac8ed1179be569b9a802822e1e 100644
(file)
--- a/
lttng-syscalls.c
+++ b/
lttng-syscalls.c
@@
-1,4
+1,4
@@
-/* SPDX-License-Identifier: (GPL-2.0
or LGPL-2.1
)
+/* SPDX-License-Identifier: (GPL-2.0
-only or LGPL-2.1-only
)
*
* lttng-syscalls.c
*
*
* lttng-syscalls.c
*
@@
-18,15
+18,15
@@
#include <linux/stringify.h>
#include <linux/file.h>
#include <linux/anon_inodes.h>
#include <linux/stringify.h>
#include <linux/file.h>
#include <linux/anon_inodes.h>
+#include <linux/fcntl.h>
#include <asm/ptrace.h>
#include <asm/syscall.h>
#include <lib/bitfield.h>
#include <asm/ptrace.h>
#include <asm/syscall.h>
#include <lib/bitfield.h>
-#include <wrapper/tracepoint.h>
-#include <wrapper/file.h>
#include <wrapper/rcu.h>
#include <wrapper/syscall.h>
#include <lttng-events.h>
#include <wrapper/rcu.h>
#include <wrapper/syscall.h>
#include <lttng-events.h>
+#include "lttng-tracepoint.h"
#ifndef CONFIG_COMPAT
# ifndef is_compat_task
#ifndef CONFIG_COMPAT
# ifndef is_compat_task
@@
-760,8
+760,6
@@
int lttng_syscalls_register(struct lttng_channel *chan, void *filter)
struct lttng_kernel_event ev;
int ret;
struct lttng_kernel_event ev;
int ret;
- wrapper_vmalloc_sync_all();
-
if (!chan->sc_table) {
/* create syscall table mapping syscall to events */
chan->sc_table = kzalloc(sizeof(struct lttng_event *)
if (!chan->sc_table) {
/* create syscall table mapping syscall to events */
chan->sc_table = kzalloc(sizeof(struct lttng_event *)
@@
-884,7
+882,7
@@
int lttng_syscalls_register(struct lttng_channel *chan, void *filter)
return ret;
#endif
if (!chan->sys_enter_registered) {
return ret;
#endif
if (!chan->sys_enter_registered) {
- ret = lttng_
wrapper_
tracepoint_probe_register("sys_enter",
+ ret = lttng_tracepoint_probe_register("sys_enter",
(void *) syscall_entry_probe, chan);
if (ret)
return ret;
(void *) syscall_entry_probe, chan);
if (ret)
return ret;
@@
-895,10
+893,10
@@
int lttng_syscalls_register(struct lttng_channel *chan, void *filter)
* conflict with sys_exit syscall entry.
*/
if (!chan->sys_exit_registered) {
* conflict with sys_exit syscall entry.
*/
if (!chan->sys_exit_registered) {
- ret = lttng_
wrapper_
tracepoint_probe_register("sys_exit",
+ ret = lttng_tracepoint_probe_register("sys_exit",
(void *) syscall_exit_probe, chan);
if (ret) {
(void *) syscall_exit_probe, chan);
if (ret) {
- WARN_ON_ONCE(lttng_
wrapper_
tracepoint_probe_unregister("sys_enter",
+ WARN_ON_ONCE(lttng_tracepoint_probe_unregister("sys_enter",
(void *) syscall_entry_probe, chan));
return ret;
}
(void *) syscall_entry_probe, chan));
return ret;
}
@@
-917,14
+915,14
@@
int lttng_syscalls_unregister(struct lttng_channel *chan)
if (!chan->sc_table)
return 0;
if (chan->sys_enter_registered) {
if (!chan->sc_table)
return 0;
if (chan->sys_enter_registered) {
- ret = lttng_
wrapper_
tracepoint_probe_unregister("sys_enter",
+ ret = lttng_tracepoint_probe_unregister("sys_enter",
(void *) syscall_entry_probe, chan);
if (ret)
return ret;
chan->sys_enter_registered = 0;
}
if (chan->sys_exit_registered) {
(void *) syscall_entry_probe, chan);
if (ret)
return ret;
chan->sys_enter_registered = 0;
}
if (chan->sys_exit_registered) {
- ret = lttng_
wrapper_
tracepoint_probe_unregister("sys_exit",
+ ret = lttng_tracepoint_probe_unregister("sys_exit",
(void *) syscall_exit_probe, chan);
if (ret)
return ret;
(void *) syscall_exit_probe, chan);
if (ret)
return ret;
@@
-1296,7
+1294,7
@@
int lttng_abi_syscall_list(void)
struct file *syscall_list_file;
int file_fd, ret;
struct file *syscall_list_file;
int file_fd, ret;
- file_fd =
lttng_get_unused_fd(
);
+ file_fd =
get_unused_fd_flags(0
);
if (file_fd < 0) {
ret = file_fd;
goto fd_error;
if (file_fd < 0) {
ret = file_fd;
goto fd_error;
This page took
0.025019 seconds
and
4
git commands to generate.