fd-tracker: add epoll/poll management wrappers to fd-tracker
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 22 Nov 2019 23:46:47 +0000 (18:46 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 23 Nov 2019 01:11:40 +0000 (20:11 -0500)
commit184597e3d22331d64e93acab4691670534f218cb
treec00839d2b00e63a36ee5396247620f50ee0ee053
parentdf038819ef174fb8b0d5a76c293a3b94ce2a43b9
fd-tracker: add epoll/poll management wrappers to fd-tracker

Add wrappers which create an lttng_poll_event object, tracking
any file descriptor created in the process of initializing
the object.

When the build is configured to use the epoll interface, the
underlying epoll fd is tracked by the fd-tracker.

If the build is configured to use the poll interace, the fd tracker is
not involved in the process and the utility will simply defer the call
to lttng_poll_create() directly.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/fd-tracker/Makefile.am
src/common/fd-tracker/utils-epoll.c [new file with mode: 0644]
src/common/fd-tracker/utils-poll.c [new file with mode: 0644]
src/common/fd-tracker/utils.h
This page took 0.025892 seconds and 4 git commands to generate.