Commit | Line | Data |
---|---|---|
184597e3 JG |
1 | /* |
2 | * Copyright (C) 2018 - Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify it | |
5 | * under the terms of the GNU General Public License, version 2 only, as | |
6 | * published by the Free Software Foundation. | |
7 | * | |
8 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
11 | * more details. | |
12 | * | |
13 | * You should have received a copy of the GNU General Public License along with | |
14 | * this program; if not, write to the Free Software Foundation, Inc., 51 | |
15 | * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
16 | */ | |
17 | ||
18 | #include <common/compat/poll.h> | |
19 | ||
20 | #include "utils.h" | |
21 | ||
22 | /* | |
23 | * The epoll variant of the poll compat layer creates an unsuspendable fd which | |
24 | * must be tracked. | |
25 | */ | |
26 | int fd_tracker_util_poll_create(struct fd_tracker *tracker, const char *name, | |
27 | struct lttng_poll_event *events, int size, int flags) | |
28 | { | |
29 | return lttng_poll_create(events, size, flags); | |
30 | } | |
31 | ||
32 | int fd_tracker_util_poll_clean(struct fd_tracker *tracker, | |
33 | struct lttng_poll_event *events) | |
34 | { | |
35 | lttng_poll_clean(events); | |
36 | return 0; | |
37 | } |