event-rule: introduce event-rule kprobe
[lttng-tools.git] / src / common / fd-tracker / utils-poll.c
1 /*
2 * Copyright (C) 2018 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 */
7
8 #include <common/compat/poll.h>
9
10 #include "utils.h"
11
12 /*
13 * The epoll variant of the poll compat layer creates an unsuspendable fd which
14 * must be tracked.
15 */
16 int fd_tracker_util_poll_create(struct fd_tracker *tracker,
17 const char *name,
18 struct lttng_poll_event *events,
19 int size,
20 int flags)
21 {
22 return lttng_poll_create(events, size, flags);
23 }
24
25 int fd_tracker_util_poll_clean(
26 struct fd_tracker *tracker, struct lttng_poll_event *events)
27 {
28 lttng_poll_clean(events);
29 return 0;
30 }
This page took 0.029851 seconds and 5 git commands to generate.