kfree(tp_locvar->fds_out); \
kfree(tp_locvar->fds_ex);
-#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64)
+#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM)
#define OVERRIDE_32_select
#define OVERRIDE_64_select
SC_LTTNG_TRACEPOINT_EVENT_CODE(select,
if (!tp_locvar->fds) \
goto error; \
err = lib_ring_buffer_copy_from_user_check_nofault( \
- tp_locvar->fds, ufds, \
- nfds * sizeof(struct pollfd)); \
+ tp_locvar->fds, ufds, tp_locvar->alloc_fds); \
if (err != 0) \
goto error; \
} \
#define LTTNG_SYSCALL_POLL_code_post \
kfree(tp_locvar->fds);
-#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64)
+#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM)
#define OVERRIDE_32_poll
#define OVERRIDE_64_poll
SC_LTTNG_TRACEPOINT_EVENT_CODE(poll,
\
err = lib_ring_buffer_copy_from_user_check_nofault( \
tp_locvar->events, uevents, \
- maxevents * sizeof(struct epoll_event)); \
+ maxalloc * sizeof(struct epoll_event)); \
if (err != 0) \
tp_locvar->fds_length = 0; \
} \
)
-#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64)
+#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM)
#define OVERRIDE_32_epoll_wait
#define OVERRIDE_64_epoll_wait
SC_LTTNG_TRACEPOINT_EVENT_CODE(epoll_wait,