projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove kernel version from syscall headers name
[lttng-modules.git]
/
instrumentation
/
syscalls
/
headers
/
syscalls_pointers_override.h
diff --git
a/instrumentation/syscalls/headers/syscalls_pointers_override.h
b/instrumentation/syscalls/headers/syscalls_pointers_override.h
index 8e4d4c7f31776651527080ac754cdaf6e6255767..e6821214679ab8ff89a1b0a5e8b099159187508f 100644
(file)
--- a/
instrumentation/syscalls/headers/syscalls_pointers_override.h
+++ b/
instrumentation/syscalls/headers/syscalls_pointers_override.h
@@
-1,3
+1,5
@@
+/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) */
+
#ifndef CREATE_SYSCALL_TABLE
#define OVERRIDE_32_execve
#ifndef CREATE_SYSCALL_TABLE
#define OVERRIDE_32_execve
@@
-100,9
+102,8
@@
SC_LTTNG_TRACEPOINT_EVENT(pipe2,
} \
\
if (inp) { \
} \
\
if (inp) { \
- tp_locvar->fds_in = kmalloc( \
- tp_locvar->nr_ulong * sizeof(unsigned long), \
- GFP_ATOMIC | GFP_NOWAIT); \
+ tp_locvar->fds_in = lttng_tp_mempool_alloc( \
+ tp_locvar->nr_ulong * sizeof(unsigned long)); \
if (!tp_locvar->fds_in) \
goto error; \
\
if (!tp_locvar->fds_in) \
goto error; \
\
@@
-113,9
+114,8
@@
SC_LTTNG_TRACEPOINT_EVENT(pipe2,
goto error; \
} \
if (outp) { \
goto error; \
} \
if (outp) { \
- tp_locvar->fds_out = kmalloc( \
- tp_locvar->nr_ulong * sizeof(unsigned long), \
- GFP_ATOMIC | GFP_NOWAIT); \
+ tp_locvar->fds_out = lttng_tp_mempool_alloc( \
+ tp_locvar->nr_ulong * sizeof(unsigned long)); \
if (!tp_locvar->fds_out) \
goto error; \
\
if (!tp_locvar->fds_out) \
goto error; \
\
@@
-126,9
+126,8
@@
SC_LTTNG_TRACEPOINT_EVENT(pipe2,
goto error; \
} \
if (exp) { \
goto error; \
} \
if (exp) { \
- tp_locvar->fds_ex = kmalloc( \
- tp_locvar->nr_ulong * sizeof(unsigned long), \
- GFP_ATOMIC | GFP_NOWAIT); \
+ tp_locvar->fds_ex = lttng_tp_mempool_alloc( \
+ tp_locvar->nr_ulong * sizeof(unsigned long)); \
if (!tp_locvar->fds_ex) \
goto error; \
\
if (!tp_locvar->fds_ex) \
goto error; \
\
@@
-221,9
+220,9
@@
end: ; /* Label at end of compound statement. */ \
)
#define LTTNG_SYSCALL_SELECT_code_post \
)
#define LTTNG_SYSCALL_SELECT_code_post \
-
k
free(tp_locvar->fds_in); \
-
k
free(tp_locvar->fds_out); \
-
k
free(tp_locvar->fds_ex);
+
lttng_tp_mempool_
free(tp_locvar->fds_in); \
+
lttng_tp_mempool_
free(tp_locvar->fds_out); \
+
lttng_tp_mempool_
free(tp_locvar->fds_ex);
#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM)
#define OVERRIDE_32_select
#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM)
#define OVERRIDE_32_select
@@
-260,7
+259,7
@@
SC_LTTNG_TRACEPOINT_EVENT_CODE(select,
LTTNG_SYSCALL_SELECT_code_post
)
)
LTTNG_SYSCALL_SELECT_code_post
)
)
-#endif /* defined(CONFIG_X86_32) || defined(CONFIG_X86_64) */
+#endif /* defined(CONFIG_X86_32) || defined(CONFIG_X86_64)
|| defined(CONFIG_ARM)
*/
#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM64) || defined(CONFIG_ARM)
#define OVERRIDE_32_pselect6
#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM64) || defined(CONFIG_ARM)
#define OVERRIDE_32_pselect6
@@
-413,8
+412,7
@@
static struct lttng_type lttng_pollfd_elem = {
{ \
int err; \
\
{ \
int err; \
\
- tp_locvar->fds = kmalloc(tp_locvar->alloc_fds, \
- GFP_ATOMIC | GFP_NOWAIT); \
+ tp_locvar->fds = lttng_tp_mempool_alloc(tp_locvar->alloc_fds); \
if (!tp_locvar->fds) \
goto error; \
err = lib_ring_buffer_copy_from_user_check_nofault( \
if (!tp_locvar->fds) \
goto error; \
err = lib_ring_buffer_copy_from_user_check_nofault( \
@@
-494,7
+492,7
@@
end: \
)
#define LTTNG_SYSCALL_POLL_code_post \
)
#define LTTNG_SYSCALL_POLL_code_post \
-
k
free(tp_locvar->fds);
+
lttng_tp_mempool_
free(tp_locvar->fds);
#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM)
#define OVERRIDE_32_poll
#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM)
#define OVERRIDE_32_poll
@@
-521,7
+519,7
@@
SC_LTTNG_TRACEPOINT_EVENT_CODE(poll,
LTTNG_SYSCALL_POLL_code_post
)
)
LTTNG_SYSCALL_POLL_code_post
)
)
-#endif /* defined(CONFIG_X86_32) || defined(CONFIG_X86_64) */
+#endif /* defined(CONFIG_X86_32) || defined(CONFIG_X86_64)
|| defined(CONFIG_ARM)
*/
#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM64) || defined(CONFIG_ARM)
#define OVERRIDE_32_ppoll
#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM64) || defined(CONFIG_ARM)
#define OVERRIDE_32_ppoll
@@
-761,9
+759,8
@@
static struct lttng_type lttng_epoll_wait_elem = {
tp_locvar->fds_length = ret; \
} \
\
tp_locvar->fds_length = ret; \
} \
\
- tp_locvar->events = kmalloc( \
- maxalloc * sizeof(struct epoll_event), \
- GFP_ATOMIC | GFP_NOWAIT); \
+ tp_locvar->events = lttng_tp_mempool_alloc( \
+ maxalloc * sizeof(struct epoll_event)); \
if (!tp_locvar->events) { \
tp_locvar->fds_length = 0; \
goto skip_code; \
if (!tp_locvar->events) { \
tp_locvar->fds_length = 0; \
goto skip_code; \
@@
-805,7
+802,7
@@
static struct lttng_type lttng_epoll_wait_elem = {
#define LTTNG_SYSCALL_EPOLL_WAIT_code_post \
sc_out( \
#define LTTNG_SYSCALL_EPOLL_WAIT_code_post \
sc_out( \
-
k
free(tp_locvar->events); \
+
lttng_tp_mempool_
free(tp_locvar->events); \
)
)
@@
-837,7
+834,7
@@
SC_LTTNG_TRACEPOINT_EVENT_CODE(epoll_wait,
LTTNG_SYSCALL_EPOLL_WAIT_code_post
)
)
LTTNG_SYSCALL_EPOLL_WAIT_code_post
)
)
-#endif /* defined(CONFIG_X86_32) || defined(CONFIG_X86_64) */
+#endif /* defined(CONFIG_X86_32) || defined(CONFIG_X86_64)
|| defined(CONFIG_ARM)
*/
#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM64) || defined(CONFIG_ARM)
#define OVERRIDE_32_epoll_pwait
#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_ARM64) || defined(CONFIG_ARM)
#define OVERRIDE_32_epoll_pwait
This page took
0.026519 seconds
and
4
git commands to generate.