event-rule: introduce event-rule kprobe
[lttng-tools.git] / src / common / fd-tracker / utils-poll.c
CommitLineData
184597e3 1/*
ab5be9fa 2 * Copyright (C) 2018 Jérémie Galarneau <jeremie.galarneau@efficios.com>
184597e3 3 *
ab5be9fa 4 * SPDX-License-Identifier: GPL-2.0-only
184597e3 5 *
184597e3
JG
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 */
5c1f54d1
JG
16int 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)
184597e3
JG
21{
22 return lttng_poll_create(events, size, flags);
23}
24
5c1f54d1
JG
25int fd_tracker_util_poll_clean(
26 struct fd_tracker *tracker, struct lttng_poll_event *events)
184597e3
JG
27{
28 lttng_poll_clean(events);
29 return 0;
30}
This page took 0.031913 seconds and 5 git commands to generate.