X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fpoll.h;h=6dca76d81827324f3767efc90bd06948a7b22fba;hp=a7766400d95adcc5a4b8ed9fb5bb4ce7d0bd21b3;hb=990570edd474b304d4c935d82be6201d872025e4;hpb=3cede4fe1597481f6cbf508ddf3d24e024405ed2 diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h index a7766400d..6dca76d81 100644 --- a/src/common/compat/poll.h +++ b/src/common/compat/poll.h @@ -21,13 +21,7 @@ #include #include -#include - -/* - * Value taken from the hard limit allowed by the kernel when using setrlimit - * with RLIMIT_NOFILE on an Intel i7 CPU and Linux 3.0.3. - */ -#define LTTNG_POLL_DEFAULT_SIZE 65535 +#include /* * Maximum number of fd we can monitor. @@ -58,7 +52,7 @@ static inline void __lttng_poll_free(void *events) #include /* See man epoll(7) for this define path */ -#define LTTNG_EPOLL_PROC_PATH "/proc/sys/fs/epoll/max_user_watches" +#define COMPAT_EPOLL_PROC_PATH "/proc/sys/fs/epoll/max_user_watches" enum { /* Polling variables compatibility for epoll */