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,
)
#endif /* defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM64) || defined(CONFIG_ARM) */
+#if (defined(CONFIG_X86_64) && !defined(LTTNG_SC_COMPAT)) || defined(CONFIG_ARM64) || defined(CONFIG_ARM)
+#define OVERRIDE_32_socketpair
+#define OVERRIDE_64_socketpair
+SC_LTTNG_TRACEPOINT_EVENT(socketpair,
+ TP_PROTO(sc_exit(long ret,) int family, int type, int protocol, int *usockvec),
+ TP_ARGS(sc_exit(ret,) family, type, protocol, usockvec),
+ TP_FIELDS(
+ sc_exit(ctf_integer(long, ret, ret))
+ sc_in(ctf_integer(int, family, family))
+ sc_in(ctf_integer(int, type, type))
+ sc_in(ctf_integer(int, protocol, protocol))
+ sc_out(ctf_user_array(int, socket, usockvec, 2))
+ )
+)
+#endif /* (defined(CONFIG_X86_64) && !defined(LTTNG_SC_COMPAT)) || defined(CONFIG_ARM64) || defined(CONFIG_ARM) */
+
#endif /* CREATE_SYSCALL_TABLE */