X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fsyscalls%2Fheaders%2Fmips-32-syscalls_pointers_override.h;fp=instrumentation%2Fsyscalls%2Fheaders%2Fmips-32-syscalls_pointers_override.h;h=d2d6dfa839a79e4655c9f398e581c7813cae7518;hb=6314c2d3a4ad617f5f122083a7fda007d4319b92;hp=0000000000000000000000000000000000000000;hpb=9143c6d5444e809b9d411c07a8dae94c151668ae;p=lttng-modules.git diff --git a/instrumentation/syscalls/headers/mips-32-syscalls_pointers_override.h b/instrumentation/syscalls/headers/mips-32-syscalls_pointers_override.h new file mode 100644 index 00000000..d2d6dfa8 --- /dev/null +++ b/instrumentation/syscalls/headers/mips-32-syscalls_pointers_override.h @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) */ + +#ifndef CREATE_SYSCALL_TABLE + +#define OVERRIDE_32_sched_setaffinity +SC_LTTNG_TRACEPOINT_EVENT(sched_setaffinity, + TP_PROTO(sc_exit(long ret,) pid_t pid, unsigned int len, unsigned long * user_mask_ptr), + TP_ARGS(sc_exit(ret,) pid, len, user_mask_ptr), + TP_FIELDS(sc_exit(ctf_integer(long, ret, ret)) sc_in(ctf_integer(pid_t, pid, pid)) sc_in(ctf_integer(unsigned int, len, len)) sc_in(ctf_integer(unsigned long *, user_mask_ptr, user_mask_ptr))) +) + +#define OVERRIDE_32_sched_getaffinity +SC_LTTNG_TRACEPOINT_EVENT(sched_getaffinity, + TP_PROTO(sc_exit(long ret,) pid_t pid, unsigned int len, unsigned long * user_mask_ptr), + TP_ARGS(sc_exit(ret,) pid, len, user_mask_ptr), + TP_FIELDS(sc_exit(ctf_integer(long, ret, ret)) sc_in(ctf_integer(pid_t, pid, pid)) sc_in(ctf_integer(unsigned int, len, len)) sc_out(ctf_integer(unsigned long *, user_mask_ptr, user_mask_ptr))) +) + +#else /* CREATE_SYSCALL_TABLE */ + +#define OVERRIDE_TABLE_32_clone +TRACE_SYSCALL_TABLE(clone, clone, 4120, 0) + +#define OVERRIDE_TABLE_32_sys_sched_setaffinity +TRACE_SYSCALL_TABLE(sched_setaffinity, sched_setaffinity, 4239, 3) + +#define OVERRIDE_TABLE_32_sys_sched_getaffinity +TRACE_SYSCALL_TABLE(sched_getaffinity, sched_getaffinity, 4240, 3) + +#endif /* CREATE_SYSCALL_TABLE */