X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-statedump-impl.c;h=fcbdfa58e99427b03456af07d080bec985f2e9f2;hb=ad0f251f77f7eb5162b187a91f6ce3dee2280fef;hp=2c7fc17853b1b3310faeca057f83db0d8bdc6682;hpb=2a5c234d1afcc98b07a349e919284ae8148d672d;p=lttng-modules.git diff --git a/lttng-statedump-impl.c b/lttng-statedump-impl.c index 2c7fc178..fcbdfa58 100644 --- a/lttng-statedump-impl.c +++ b/lttng-statedump-impl.c @@ -57,6 +57,7 @@ #include "wrapper/tracepoint.h" #include "wrapper/genhd.h" #include "wrapper/file.h" +#include "wrapper/time.h" #ifdef CONFIG_LTTNG_HAS_LIST_IRQ #include @@ -215,18 +216,6 @@ int lttng_enumerate_network_ip_interface(struct lttng_session *session) } #endif /* CONFIG_INET */ -#ifdef FD_ISSET /* For old kernels lacking close_on_exec() */ -static inline bool lttng_close_on_exec(int fd, const struct fdtable *fdt) -{ - return FD_ISSET(fd, fdt->close_on_exec); -} -#else -static inline bool lttng_close_on_exec(int fd, const struct fdtable *fdt) -{ - return close_on_exec(fd, fdt); -} -#endif - static int lttng_dump_one_fd(const void *p, struct file *file, unsigned int fd) {