projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: build x86 kvm probes on kernels >= 4.1-rc1
[lttng-modules.git]
/
lttng-abi.c
diff --git
a/lttng-abi.c
b/lttng-abi.c
index 381a73904dfe60e6e6d0a8bc66a0cecf5fd65bf8..5823a1db042d6fa8aa5e88bef4a35235bf5eea4e 100644
(file)
--- a/
lttng-abi.c
+++ b/
lttng-abi.c
@@
-49,6
+49,7
@@
#include "wrapper/ringbuffer/backend.h"
#include "wrapper/ringbuffer/frontend.h"
#include "wrapper/poll.h"
#include "wrapper/ringbuffer/backend.h"
#include "wrapper/ringbuffer/frontend.h"
#include "wrapper/poll.h"
+#include "wrapper/file.h"
#include "lttng-abi.h"
#include "lttng-abi-old.h"
#include "lttng-events.h"
#include "lttng-abi.h"
#include "lttng-abi-old.h"
#include "lttng-events.h"
@@
-83,7
+84,7
@@
int lttng_abi_create_session(void)
session = lttng_session_create();
if (!session)
return -ENOMEM;
session = lttng_session_create();
if (!session)
return -ENOMEM;
- session_fd = get_unused_fd();
+ session_fd =
lttng_
get_unused_fd();
if (session_fd < 0) {
ret = session_fd;
goto fd_error;
if (session_fd < 0) {
ret = session_fd;
goto fd_error;
@@
-112,7
+113,7
@@
int lttng_abi_tracepoint_list(void)
struct file *tracepoint_list_file;
int file_fd, ret;
struct file *tracepoint_list_file;
int file_fd, ret;
- file_fd = get_unused_fd();
+ file_fd =
lttng_
get_unused_fd();
if (file_fd < 0) {
ret = file_fd;
goto fd_error;
if (file_fd < 0) {
ret = file_fd;
goto fd_error;
@@
-332,7
+333,7
@@
int lttng_abi_create_channel(struct file *session_file,
int chan_fd;
int ret = 0;
int chan_fd;
int ret = 0;
- chan_fd = get_unused_fd();
+ chan_fd =
lttng_
get_unused_fd();
if (chan_fd < 0) {
ret = chan_fd;
goto fd_error;
if (chan_fd < 0) {
ret = chan_fd;
goto fd_error;
@@
-783,7
+784,7
@@
int lttng_abi_create_stream_fd(struct file *channel_file, void *stream_priv,
int stream_fd, ret;
struct file *stream_file;
int stream_fd, ret;
struct file *stream_file;
- stream_fd = get_unused_fd();
+ stream_fd =
lttng_
get_unused_fd();
if (stream_fd < 0) {
ret = stream_fd;
goto fd_error;
if (stream_fd < 0) {
ret = stream_fd;
goto fd_error;
@@
-920,7
+921,7
@@
int lttng_abi_create_event(struct file *channel_file,
}
switch (event_param->instrumentation) {
default:
}
switch (event_param->instrumentation) {
default:
- event_fd = get_unused_fd();
+ event_fd =
lttng_
get_unused_fd();
if (event_fd < 0) {
ret = event_fd;
goto fd_error;
if (event_fd < 0) {
ret = event_fd;
goto fd_error;
This page took
0.023526 seconds
and
4
git commands to generate.