From: Mathieu Desnoyers Date: Tue, 27 Sep 2011 22:29:16 +0000 (-0400) Subject: Support detailed compat syscalls on x86_64 X-Git-Tag: v2.0-pre9~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a93244f8421385c560a70d0308a69e7c9289916e;p=lttng-modules.git Support detailed compat syscalls on x86_64 Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/syscalls/headers/syscalls_unknown.h b/instrumentation/syscalls/headers/syscalls_unknown.h index 7050387f..4582d03d 100644 --- a/instrumentation/syscalls/headers/syscalls_unknown.h +++ b/instrumentation/syscalls/headers/syscalls_unknown.h @@ -1,6 +1,3 @@ -#undef TRACE_SYSTEM -#define TRACE_SYSTEM syscalls_unknown - #if !defined(_TRACE_SYSCALLS_UNKNOWN_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_SYSCALLS_UNKNOWN_H diff --git a/instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_integers.h b/instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_integers.h index 2b24d0db..d01611a9 100644 --- a/instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_integers.h +++ b/instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_integers.h @@ -1,9 +1,6 @@ /* THIS FILE IS AUTO-GENERATED. DO NOT EDIT */ #ifndef CREATE_SYSCALL_TABLE -#undef TRACE_SYSTEM -#define TRACE_SYSTEM syscalls_integers - #if !defined(_TRACE_SYSCALLS_INTEGERS_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_SYSCALLS_INTEGERS_H @@ -11,76 +8,76 @@ #include #include "x86-32-syscalls-3.1.0-rc6_integers_override.h" -DECLARE_EVENT_CLASS_NOARGS(syscalls_noargs, +SC_DECLARE_EVENT_CLASS_NOARGS(syscalls_noargs, TP_STRUCT__entry(), TP_fast_assign(), TP_printk() ) #ifndef OVERRIDE_sys_restart_syscall -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_restart_syscall) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_restart_syscall) #endif #ifndef OVERRIDE_sys_getpid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getpid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getpid) #endif #ifndef OVERRIDE_sys_getuid16 -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getuid16) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getuid16) #endif #ifndef OVERRIDE_sys_pause -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_pause) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_pause) #endif #ifndef OVERRIDE_sys_sync -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sync) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sync) #endif #ifndef OVERRIDE_sys_getgid16 -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getgid16) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getgid16) #endif #ifndef OVERRIDE_sys_geteuid16 -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_geteuid16) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_geteuid16) #endif #ifndef OVERRIDE_sys_getegid16 -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getegid16) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getegid16) #endif #ifndef OVERRIDE_sys_getppid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getppid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getppid) #endif #ifndef OVERRIDE_sys_getpgrp -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getpgrp) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getpgrp) #endif #ifndef OVERRIDE_sys_setsid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_setsid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_setsid) #endif #ifndef OVERRIDE_sys_sgetmask -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sgetmask) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sgetmask) #endif #ifndef OVERRIDE_sys_vhangup -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_vhangup) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_vhangup) #endif #ifndef OVERRIDE_sys_munlockall -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_munlockall) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_munlockall) #endif #ifndef OVERRIDE_sys_sched_yield -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sched_yield) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sched_yield) #endif #ifndef OVERRIDE_sys_getuid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getuid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getuid) #endif #ifndef OVERRIDE_sys_getgid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getgid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getgid) #endif #ifndef OVERRIDE_sys_geteuid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_geteuid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_geteuid) #endif #ifndef OVERRIDE_sys_getegid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getegid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getegid) #endif #ifndef OVERRIDE_sys_gettid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_gettid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_gettid) #endif #ifndef OVERRIDE_sys_inotify_init -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_inotify_init) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_inotify_init) #endif #ifndef OVERRIDE_sys_exit -TRACE_EVENT(sys_exit, +SC_TRACE_EVENT(sys_exit, TP_PROTO(int error_code), TP_ARGS(error_code), TP_STRUCT__entry(__field(int, error_code)), @@ -89,7 +86,7 @@ TRACE_EVENT(sys_exit, ) #endif #ifndef OVERRIDE_sys_close -TRACE_EVENT(sys_close, +SC_TRACE_EVENT(sys_close, TP_PROTO(unsigned int fd), TP_ARGS(fd), TP_STRUCT__entry(__field(unsigned int, fd)), @@ -98,7 +95,7 @@ TRACE_EVENT(sys_close, ) #endif #ifndef OVERRIDE_sys_setuid16 -TRACE_EVENT(sys_setuid16, +SC_TRACE_EVENT(sys_setuid16, TP_PROTO(old_uid_t uid), TP_ARGS(uid), TP_STRUCT__entry(__field(old_uid_t, uid)), @@ -107,7 +104,7 @@ TRACE_EVENT(sys_setuid16, ) #endif #ifndef OVERRIDE_sys_alarm -TRACE_EVENT(sys_alarm, +SC_TRACE_EVENT(sys_alarm, TP_PROTO(unsigned int seconds), TP_ARGS(seconds), TP_STRUCT__entry(__field(unsigned int, seconds)), @@ -116,7 +113,7 @@ TRACE_EVENT(sys_alarm, ) #endif #ifndef OVERRIDE_sys_nice -TRACE_EVENT(sys_nice, +SC_TRACE_EVENT(sys_nice, TP_PROTO(int increment), TP_ARGS(increment), TP_STRUCT__entry(__field(int, increment)), @@ -125,7 +122,7 @@ TRACE_EVENT(sys_nice, ) #endif #ifndef OVERRIDE_sys_dup -TRACE_EVENT(sys_dup, +SC_TRACE_EVENT(sys_dup, TP_PROTO(unsigned int fildes), TP_ARGS(fildes), TP_STRUCT__entry(__field(unsigned int, fildes)), @@ -134,7 +131,7 @@ TRACE_EVENT(sys_dup, ) #endif #ifndef OVERRIDE_sys_brk -TRACE_EVENT(sys_brk, +SC_TRACE_EVENT(sys_brk, TP_PROTO(unsigned long brk), TP_ARGS(brk), TP_STRUCT__entry(__field(unsigned long, brk)), @@ -143,7 +140,7 @@ TRACE_EVENT(sys_brk, ) #endif #ifndef OVERRIDE_sys_setgid16 -TRACE_EVENT(sys_setgid16, +SC_TRACE_EVENT(sys_setgid16, TP_PROTO(old_gid_t gid), TP_ARGS(gid), TP_STRUCT__entry(__field(old_gid_t, gid)), @@ -152,7 +149,7 @@ TRACE_EVENT(sys_setgid16, ) #endif #ifndef OVERRIDE_sys_umask -TRACE_EVENT(sys_umask, +SC_TRACE_EVENT(sys_umask, TP_PROTO(int mask), TP_ARGS(mask), TP_STRUCT__entry(__field(int, mask)), @@ -161,7 +158,7 @@ TRACE_EVENT(sys_umask, ) #endif #ifndef OVERRIDE_sys_ssetmask -TRACE_EVENT(sys_ssetmask, +SC_TRACE_EVENT(sys_ssetmask, TP_PROTO(int newmask), TP_ARGS(newmask), TP_STRUCT__entry(__field(int, newmask)), @@ -170,7 +167,7 @@ TRACE_EVENT(sys_ssetmask, ) #endif #ifndef OVERRIDE_sys_fsync -TRACE_EVENT(sys_fsync, +SC_TRACE_EVENT(sys_fsync, TP_PROTO(unsigned int fd), TP_ARGS(fd), TP_STRUCT__entry(__field(unsigned int, fd)), @@ -179,7 +176,7 @@ TRACE_EVENT(sys_fsync, ) #endif #ifndef OVERRIDE_sys_getpgid -TRACE_EVENT(sys_getpgid, +SC_TRACE_EVENT(sys_getpgid, TP_PROTO(pid_t pid), TP_ARGS(pid), TP_STRUCT__entry(__field(pid_t, pid)), @@ -188,7 +185,7 @@ TRACE_EVENT(sys_getpgid, ) #endif #ifndef OVERRIDE_sys_fchdir -TRACE_EVENT(sys_fchdir, +SC_TRACE_EVENT(sys_fchdir, TP_PROTO(unsigned int fd), TP_ARGS(fd), TP_STRUCT__entry(__field(unsigned int, fd)), @@ -197,7 +194,7 @@ TRACE_EVENT(sys_fchdir, ) #endif #ifndef OVERRIDE_sys_personality -TRACE_EVENT(sys_personality, +SC_TRACE_EVENT(sys_personality, TP_PROTO(unsigned int personality), TP_ARGS(personality), TP_STRUCT__entry(__field(unsigned int, personality)), @@ -206,7 +203,7 @@ TRACE_EVENT(sys_personality, ) #endif #ifndef OVERRIDE_sys_setfsuid16 -TRACE_EVENT(sys_setfsuid16, +SC_TRACE_EVENT(sys_setfsuid16, TP_PROTO(old_uid_t uid), TP_ARGS(uid), TP_STRUCT__entry(__field(old_uid_t, uid)), @@ -215,7 +212,7 @@ TRACE_EVENT(sys_setfsuid16, ) #endif #ifndef OVERRIDE_sys_setfsgid16 -TRACE_EVENT(sys_setfsgid16, +SC_TRACE_EVENT(sys_setfsgid16, TP_PROTO(old_gid_t gid), TP_ARGS(gid), TP_STRUCT__entry(__field(old_gid_t, gid)), @@ -224,7 +221,7 @@ TRACE_EVENT(sys_setfsgid16, ) #endif #ifndef OVERRIDE_sys_getsid -TRACE_EVENT(sys_getsid, +SC_TRACE_EVENT(sys_getsid, TP_PROTO(pid_t pid), TP_ARGS(pid), TP_STRUCT__entry(__field(pid_t, pid)), @@ -233,7 +230,7 @@ TRACE_EVENT(sys_getsid, ) #endif #ifndef OVERRIDE_sys_fdatasync -TRACE_EVENT(sys_fdatasync, +SC_TRACE_EVENT(sys_fdatasync, TP_PROTO(unsigned int fd), TP_ARGS(fd), TP_STRUCT__entry(__field(unsigned int, fd)), @@ -242,7 +239,7 @@ TRACE_EVENT(sys_fdatasync, ) #endif #ifndef OVERRIDE_sys_mlockall -TRACE_EVENT(sys_mlockall, +SC_TRACE_EVENT(sys_mlockall, TP_PROTO(int flags), TP_ARGS(flags), TP_STRUCT__entry(__field(int, flags)), @@ -251,7 +248,7 @@ TRACE_EVENT(sys_mlockall, ) #endif #ifndef OVERRIDE_sys_sched_getscheduler -TRACE_EVENT(sys_sched_getscheduler, +SC_TRACE_EVENT(sys_sched_getscheduler, TP_PROTO(pid_t pid), TP_ARGS(pid), TP_STRUCT__entry(__field(pid_t, pid)), @@ -260,7 +257,7 @@ TRACE_EVENT(sys_sched_getscheduler, ) #endif #ifndef OVERRIDE_sys_sched_get_priority_max -TRACE_EVENT(sys_sched_get_priority_max, +SC_TRACE_EVENT(sys_sched_get_priority_max, TP_PROTO(int policy), TP_ARGS(policy), TP_STRUCT__entry(__field(int, policy)), @@ -269,7 +266,7 @@ TRACE_EVENT(sys_sched_get_priority_max, ) #endif #ifndef OVERRIDE_sys_sched_get_priority_min -TRACE_EVENT(sys_sched_get_priority_min, +SC_TRACE_EVENT(sys_sched_get_priority_min, TP_PROTO(int policy), TP_ARGS(policy), TP_STRUCT__entry(__field(int, policy)), @@ -278,7 +275,7 @@ TRACE_EVENT(sys_sched_get_priority_min, ) #endif #ifndef OVERRIDE_sys_setuid -TRACE_EVENT(sys_setuid, +SC_TRACE_EVENT(sys_setuid, TP_PROTO(uid_t uid), TP_ARGS(uid), TP_STRUCT__entry(__field(uid_t, uid)), @@ -287,7 +284,7 @@ TRACE_EVENT(sys_setuid, ) #endif #ifndef OVERRIDE_sys_setgid -TRACE_EVENT(sys_setgid, +SC_TRACE_EVENT(sys_setgid, TP_PROTO(gid_t gid), TP_ARGS(gid), TP_STRUCT__entry(__field(gid_t, gid)), @@ -296,7 +293,7 @@ TRACE_EVENT(sys_setgid, ) #endif #ifndef OVERRIDE_sys_setfsuid -TRACE_EVENT(sys_setfsuid, +SC_TRACE_EVENT(sys_setfsuid, TP_PROTO(uid_t uid), TP_ARGS(uid), TP_STRUCT__entry(__field(uid_t, uid)), @@ -305,7 +302,7 @@ TRACE_EVENT(sys_setfsuid, ) #endif #ifndef OVERRIDE_sys_setfsgid -TRACE_EVENT(sys_setfsgid, +SC_TRACE_EVENT(sys_setfsgid, TP_PROTO(gid_t gid), TP_ARGS(gid), TP_STRUCT__entry(__field(gid_t, gid)), @@ -314,7 +311,7 @@ TRACE_EVENT(sys_setfsgid, ) #endif #ifndef OVERRIDE_sys_io_destroy -TRACE_EVENT(sys_io_destroy, +SC_TRACE_EVENT(sys_io_destroy, TP_PROTO(aio_context_t ctx), TP_ARGS(ctx), TP_STRUCT__entry(__field(aio_context_t, ctx)), @@ -323,7 +320,7 @@ TRACE_EVENT(sys_io_destroy, ) #endif #ifndef OVERRIDE_sys_exit_group -TRACE_EVENT(sys_exit_group, +SC_TRACE_EVENT(sys_exit_group, TP_PROTO(int error_code), TP_ARGS(error_code), TP_STRUCT__entry(__field(int, error_code)), @@ -332,7 +329,7 @@ TRACE_EVENT(sys_exit_group, ) #endif #ifndef OVERRIDE_sys_epoll_create -TRACE_EVENT(sys_epoll_create, +SC_TRACE_EVENT(sys_epoll_create, TP_PROTO(int size), TP_ARGS(size), TP_STRUCT__entry(__field(int, size)), @@ -341,7 +338,7 @@ TRACE_EVENT(sys_epoll_create, ) #endif #ifndef OVERRIDE_sys_timer_getoverrun -TRACE_EVENT(sys_timer_getoverrun, +SC_TRACE_EVENT(sys_timer_getoverrun, TP_PROTO(timer_t timer_id), TP_ARGS(timer_id), TP_STRUCT__entry(__field(timer_t, timer_id)), @@ -350,7 +347,7 @@ TRACE_EVENT(sys_timer_getoverrun, ) #endif #ifndef OVERRIDE_sys_timer_delete -TRACE_EVENT(sys_timer_delete, +SC_TRACE_EVENT(sys_timer_delete, TP_PROTO(timer_t timer_id), TP_ARGS(timer_id), TP_STRUCT__entry(__field(timer_t, timer_id)), @@ -359,7 +356,7 @@ TRACE_EVENT(sys_timer_delete, ) #endif #ifndef OVERRIDE_sys_unshare -TRACE_EVENT(sys_unshare, +SC_TRACE_EVENT(sys_unshare, TP_PROTO(unsigned long unshare_flags), TP_ARGS(unshare_flags), TP_STRUCT__entry(__field(unsigned long, unshare_flags)), @@ -368,7 +365,7 @@ TRACE_EVENT(sys_unshare, ) #endif #ifndef OVERRIDE_sys_eventfd -TRACE_EVENT(sys_eventfd, +SC_TRACE_EVENT(sys_eventfd, TP_PROTO(unsigned int count), TP_ARGS(count), TP_STRUCT__entry(__field(unsigned int, count)), @@ -377,7 +374,7 @@ TRACE_EVENT(sys_eventfd, ) #endif #ifndef OVERRIDE_sys_epoll_create1 -TRACE_EVENT(sys_epoll_create1, +SC_TRACE_EVENT(sys_epoll_create1, TP_PROTO(int flags), TP_ARGS(flags), TP_STRUCT__entry(__field(int, flags)), @@ -386,7 +383,7 @@ TRACE_EVENT(sys_epoll_create1, ) #endif #ifndef OVERRIDE_sys_inotify_init1 -TRACE_EVENT(sys_inotify_init1, +SC_TRACE_EVENT(sys_inotify_init1, TP_PROTO(int flags), TP_ARGS(flags), TP_STRUCT__entry(__field(int, flags)), @@ -395,7 +392,7 @@ TRACE_EVENT(sys_inotify_init1, ) #endif #ifndef OVERRIDE_sys_syncfs -TRACE_EVENT(sys_syncfs, +SC_TRACE_EVENT(sys_syncfs, TP_PROTO(int fd), TP_ARGS(fd), TP_STRUCT__entry(__field(int, fd)), @@ -404,7 +401,7 @@ TRACE_EVENT(sys_syncfs, ) #endif #ifndef OVERRIDE_sys_kill -TRACE_EVENT(sys_kill, +SC_TRACE_EVENT(sys_kill, TP_PROTO(pid_t pid, int sig), TP_ARGS(pid, sig), TP_STRUCT__entry(__field(pid_t, pid) __field(int, sig)), @@ -413,7 +410,7 @@ TRACE_EVENT(sys_kill, ) #endif #ifndef OVERRIDE_sys_signal -TRACE_EVENT(sys_signal, +SC_TRACE_EVENT(sys_signal, TP_PROTO(int sig, __sighandler_t handler), TP_ARGS(sig, handler), TP_STRUCT__entry(__field(int, sig) __field(__sighandler_t, handler)), @@ -422,7 +419,7 @@ TRACE_EVENT(sys_signal, ) #endif #ifndef OVERRIDE_sys_setpgid -TRACE_EVENT(sys_setpgid, +SC_TRACE_EVENT(sys_setpgid, TP_PROTO(pid_t pid, pid_t pgid), TP_ARGS(pid, pgid), TP_STRUCT__entry(__field(pid_t, pid) __field(pid_t, pgid)), @@ -431,7 +428,7 @@ TRACE_EVENT(sys_setpgid, ) #endif #ifndef OVERRIDE_sys_dup2 -TRACE_EVENT(sys_dup2, +SC_TRACE_EVENT(sys_dup2, TP_PROTO(unsigned int oldfd, unsigned int newfd), TP_ARGS(oldfd, newfd), TP_STRUCT__entry(__field(unsigned int, oldfd) __field(unsigned int, newfd)), @@ -440,7 +437,7 @@ TRACE_EVENT(sys_dup2, ) #endif #ifndef OVERRIDE_sys_setreuid16 -TRACE_EVENT(sys_setreuid16, +SC_TRACE_EVENT(sys_setreuid16, TP_PROTO(old_uid_t ruid, old_uid_t euid), TP_ARGS(ruid, euid), TP_STRUCT__entry(__field(old_uid_t, ruid) __field(old_uid_t, euid)), @@ -449,7 +446,7 @@ TRACE_EVENT(sys_setreuid16, ) #endif #ifndef OVERRIDE_sys_setregid16 -TRACE_EVENT(sys_setregid16, +SC_TRACE_EVENT(sys_setregid16, TP_PROTO(old_gid_t rgid, old_gid_t egid), TP_ARGS(rgid, egid), TP_STRUCT__entry(__field(old_gid_t, rgid) __field(old_gid_t, egid)), @@ -458,7 +455,7 @@ TRACE_EVENT(sys_setregid16, ) #endif #ifndef OVERRIDE_sys_munmap -TRACE_EVENT(sys_munmap, +SC_TRACE_EVENT(sys_munmap, TP_PROTO(unsigned long addr, size_t len), TP_ARGS(addr, len), TP_STRUCT__entry(__field_hex(unsigned long, addr) __field(size_t, len)), @@ -467,7 +464,7 @@ TRACE_EVENT(sys_munmap, ) #endif #ifndef OVERRIDE_sys_ftruncate -TRACE_EVENT(sys_ftruncate, +SC_TRACE_EVENT(sys_ftruncate, TP_PROTO(unsigned int fd, unsigned long length), TP_ARGS(fd, length), TP_STRUCT__entry(__field(unsigned int, fd) __field(unsigned long, length)), @@ -476,7 +473,7 @@ TRACE_EVENT(sys_ftruncate, ) #endif #ifndef OVERRIDE_sys_fchmod -TRACE_EVENT(sys_fchmod, +SC_TRACE_EVENT(sys_fchmod, TP_PROTO(unsigned int fd, mode_t mode), TP_ARGS(fd, mode), TP_STRUCT__entry(__field(unsigned int, fd) __field(mode_t, mode)), @@ -485,7 +482,7 @@ TRACE_EVENT(sys_fchmod, ) #endif #ifndef OVERRIDE_sys_getpriority -TRACE_EVENT(sys_getpriority, +SC_TRACE_EVENT(sys_getpriority, TP_PROTO(int which, int who), TP_ARGS(which, who), TP_STRUCT__entry(__field(int, which) __field(int, who)), @@ -494,7 +491,7 @@ TRACE_EVENT(sys_getpriority, ) #endif #ifndef OVERRIDE_sys_bdflush -TRACE_EVENT(sys_bdflush, +SC_TRACE_EVENT(sys_bdflush, TP_PROTO(int func, long data), TP_ARGS(func, data), TP_STRUCT__entry(__field(int, func) __field(long, data)), @@ -503,7 +500,7 @@ TRACE_EVENT(sys_bdflush, ) #endif #ifndef OVERRIDE_sys_flock -TRACE_EVENT(sys_flock, +SC_TRACE_EVENT(sys_flock, TP_PROTO(unsigned int fd, unsigned int cmd), TP_ARGS(fd, cmd), TP_STRUCT__entry(__field(unsigned int, fd) __field(unsigned int, cmd)), @@ -512,7 +509,7 @@ TRACE_EVENT(sys_flock, ) #endif #ifndef OVERRIDE_sys_mlock -TRACE_EVENT(sys_mlock, +SC_TRACE_EVENT(sys_mlock, TP_PROTO(unsigned long start, size_t len), TP_ARGS(start, len), TP_STRUCT__entry(__field(unsigned long, start) __field(size_t, len)), @@ -521,7 +518,7 @@ TRACE_EVENT(sys_mlock, ) #endif #ifndef OVERRIDE_sys_munlock -TRACE_EVENT(sys_munlock, +SC_TRACE_EVENT(sys_munlock, TP_PROTO(unsigned long start, size_t len), TP_ARGS(start, len), TP_STRUCT__entry(__field(unsigned long, start) __field(size_t, len)), @@ -530,7 +527,7 @@ TRACE_EVENT(sys_munlock, ) #endif #ifndef OVERRIDE_sys_setreuid -TRACE_EVENT(sys_setreuid, +SC_TRACE_EVENT(sys_setreuid, TP_PROTO(uid_t ruid, uid_t euid), TP_ARGS(ruid, euid), TP_STRUCT__entry(__field(uid_t, ruid) __field(uid_t, euid)), @@ -539,7 +536,7 @@ TRACE_EVENT(sys_setreuid, ) #endif #ifndef OVERRIDE_sys_setregid -TRACE_EVENT(sys_setregid, +SC_TRACE_EVENT(sys_setregid, TP_PROTO(gid_t rgid, gid_t egid), TP_ARGS(rgid, egid), TP_STRUCT__entry(__field(gid_t, rgid) __field(gid_t, egid)), @@ -548,7 +545,7 @@ TRACE_EVENT(sys_setregid, ) #endif #ifndef OVERRIDE_sys_tkill -TRACE_EVENT(sys_tkill, +SC_TRACE_EVENT(sys_tkill, TP_PROTO(pid_t pid, int sig), TP_ARGS(pid, sig), TP_STRUCT__entry(__field(pid_t, pid) __field(int, sig)), @@ -557,7 +554,7 @@ TRACE_EVENT(sys_tkill, ) #endif #ifndef OVERRIDE_sys_ioprio_get -TRACE_EVENT(sys_ioprio_get, +SC_TRACE_EVENT(sys_ioprio_get, TP_PROTO(int which, int who), TP_ARGS(which, who), TP_STRUCT__entry(__field(int, which) __field(int, who)), @@ -566,7 +563,7 @@ TRACE_EVENT(sys_ioprio_get, ) #endif #ifndef OVERRIDE_sys_inotify_rm_watch -TRACE_EVENT(sys_inotify_rm_watch, +SC_TRACE_EVENT(sys_inotify_rm_watch, TP_PROTO(int fd, __s32 wd), TP_ARGS(fd, wd), TP_STRUCT__entry(__field(int, fd) __field(__s32, wd)), @@ -575,7 +572,7 @@ TRACE_EVENT(sys_inotify_rm_watch, ) #endif #ifndef OVERRIDE_sys_timerfd_create -TRACE_EVENT(sys_timerfd_create, +SC_TRACE_EVENT(sys_timerfd_create, TP_PROTO(int clockid, int flags), TP_ARGS(clockid, flags), TP_STRUCT__entry(__field(int, clockid) __field(int, flags)), @@ -584,7 +581,7 @@ TRACE_EVENT(sys_timerfd_create, ) #endif #ifndef OVERRIDE_sys_eventfd2 -TRACE_EVENT(sys_eventfd2, +SC_TRACE_EVENT(sys_eventfd2, TP_PROTO(unsigned int count, int flags), TP_ARGS(count, flags), TP_STRUCT__entry(__field(unsigned int, count) __field(int, flags)), @@ -593,7 +590,7 @@ TRACE_EVENT(sys_eventfd2, ) #endif #ifndef OVERRIDE_sys_fanotify_init -TRACE_EVENT(sys_fanotify_init, +SC_TRACE_EVENT(sys_fanotify_init, TP_PROTO(unsigned int flags, unsigned int event_f_flags), TP_ARGS(flags, event_f_flags), TP_STRUCT__entry(__field(unsigned int, flags) __field(unsigned int, event_f_flags)), @@ -602,7 +599,7 @@ TRACE_EVENT(sys_fanotify_init, ) #endif #ifndef OVERRIDE_sys_setns -TRACE_EVENT(sys_setns, +SC_TRACE_EVENT(sys_setns, TP_PROTO(int fd, int nstype), TP_ARGS(fd, nstype), TP_STRUCT__entry(__field(int, fd) __field(int, nstype)), @@ -611,7 +608,7 @@ TRACE_EVENT(sys_setns, ) #endif #ifndef OVERRIDE_sys_lseek -TRACE_EVENT(sys_lseek, +SC_TRACE_EVENT(sys_lseek, TP_PROTO(unsigned int fd, off_t offset, unsigned int origin), TP_ARGS(fd, offset, origin), TP_STRUCT__entry(__field(unsigned int, fd) __field(off_t, offset) __field(unsigned int, origin)), @@ -620,7 +617,7 @@ TRACE_EVENT(sys_lseek, ) #endif #ifndef OVERRIDE_sys_ioctl -TRACE_EVENT(sys_ioctl, +SC_TRACE_EVENT(sys_ioctl, TP_PROTO(unsigned int fd, unsigned int cmd, unsigned long arg), TP_ARGS(fd, cmd, arg), TP_STRUCT__entry(__field(unsigned int, fd) __field(unsigned int, cmd) __field(unsigned long, arg)), @@ -629,7 +626,7 @@ TRACE_EVENT(sys_ioctl, ) #endif #ifndef OVERRIDE_sys_fcntl -TRACE_EVENT(sys_fcntl, +SC_TRACE_EVENT(sys_fcntl, TP_PROTO(unsigned int fd, unsigned int cmd, unsigned long arg), TP_ARGS(fd, cmd, arg), TP_STRUCT__entry(__field(unsigned int, fd) __field(unsigned int, cmd) __field(unsigned long, arg)), @@ -638,7 +635,7 @@ TRACE_EVENT(sys_fcntl, ) #endif #ifndef OVERRIDE_sys_fchown16 -TRACE_EVENT(sys_fchown16, +SC_TRACE_EVENT(sys_fchown16, TP_PROTO(unsigned int fd, old_uid_t user, old_gid_t group), TP_ARGS(fd, user, group), TP_STRUCT__entry(__field(unsigned int, fd) __field(old_uid_t, user) __field(old_gid_t, group)), @@ -647,7 +644,7 @@ TRACE_EVENT(sys_fchown16, ) #endif #ifndef OVERRIDE_sys_setpriority -TRACE_EVENT(sys_setpriority, +SC_TRACE_EVENT(sys_setpriority, TP_PROTO(int which, int who, int niceval), TP_ARGS(which, who, niceval), TP_STRUCT__entry(__field(int, which) __field(int, who) __field(int, niceval)), @@ -656,7 +653,7 @@ TRACE_EVENT(sys_setpriority, ) #endif #ifndef OVERRIDE_sys_mprotect -TRACE_EVENT(sys_mprotect, +SC_TRACE_EVENT(sys_mprotect, TP_PROTO(unsigned long start, size_t len, unsigned long prot), TP_ARGS(start, len, prot), TP_STRUCT__entry(__field(unsigned long, start) __field(size_t, len) __field(unsigned long, prot)), @@ -665,7 +662,7 @@ TRACE_EVENT(sys_mprotect, ) #endif #ifndef OVERRIDE_sys_sysfs -TRACE_EVENT(sys_sysfs, +SC_TRACE_EVENT(sys_sysfs, TP_PROTO(int option, unsigned long arg1, unsigned long arg2), TP_ARGS(option, arg1, arg2), TP_STRUCT__entry(__field(int, option) __field(unsigned long, arg1) __field(unsigned long, arg2)), @@ -674,7 +671,7 @@ TRACE_EVENT(sys_sysfs, ) #endif #ifndef OVERRIDE_sys_msync -TRACE_EVENT(sys_msync, +SC_TRACE_EVENT(sys_msync, TP_PROTO(unsigned long start, size_t len, int flags), TP_ARGS(start, len, flags), TP_STRUCT__entry(__field(unsigned long, start) __field(size_t, len) __field(int, flags)), @@ -683,7 +680,7 @@ TRACE_EVENT(sys_msync, ) #endif #ifndef OVERRIDE_sys_setresuid16 -TRACE_EVENT(sys_setresuid16, +SC_TRACE_EVENT(sys_setresuid16, TP_PROTO(old_uid_t ruid, old_uid_t euid, old_uid_t suid), TP_ARGS(ruid, euid, suid), TP_STRUCT__entry(__field(old_uid_t, ruid) __field(old_uid_t, euid) __field(old_uid_t, suid)), @@ -692,7 +689,7 @@ TRACE_EVENT(sys_setresuid16, ) #endif #ifndef OVERRIDE_sys_setresgid16 -TRACE_EVENT(sys_setresgid16, +SC_TRACE_EVENT(sys_setresgid16, TP_PROTO(old_gid_t rgid, old_gid_t egid, old_gid_t sgid), TP_ARGS(rgid, egid, sgid), TP_STRUCT__entry(__field(old_gid_t, rgid) __field(old_gid_t, egid) __field(old_gid_t, sgid)), @@ -701,7 +698,7 @@ TRACE_EVENT(sys_setresgid16, ) #endif #ifndef OVERRIDE_sys_fchown -TRACE_EVENT(sys_fchown, +SC_TRACE_EVENT(sys_fchown, TP_PROTO(unsigned int fd, uid_t user, gid_t group), TP_ARGS(fd, user, group), TP_STRUCT__entry(__field(unsigned int, fd) __field(uid_t, user) __field(gid_t, group)), @@ -710,7 +707,7 @@ TRACE_EVENT(sys_fchown, ) #endif #ifndef OVERRIDE_sys_setresuid -TRACE_EVENT(sys_setresuid, +SC_TRACE_EVENT(sys_setresuid, TP_PROTO(uid_t ruid, uid_t euid, uid_t suid), TP_ARGS(ruid, euid, suid), TP_STRUCT__entry(__field(uid_t, ruid) __field(uid_t, euid) __field(uid_t, suid)), @@ -719,7 +716,7 @@ TRACE_EVENT(sys_setresuid, ) #endif #ifndef OVERRIDE_sys_setresgid -TRACE_EVENT(sys_setresgid, +SC_TRACE_EVENT(sys_setresgid, TP_PROTO(gid_t rgid, gid_t egid, gid_t sgid), TP_ARGS(rgid, egid, sgid), TP_STRUCT__entry(__field(gid_t, rgid) __field(gid_t, egid) __field(gid_t, sgid)), @@ -728,7 +725,7 @@ TRACE_EVENT(sys_setresgid, ) #endif #ifndef OVERRIDE_sys_madvise -TRACE_EVENT(sys_madvise, +SC_TRACE_EVENT(sys_madvise, TP_PROTO(unsigned long start, size_t len_in, int behavior), TP_ARGS(start, len_in, behavior), TP_STRUCT__entry(__field(unsigned long, start) __field(size_t, len_in) __field(int, behavior)), @@ -737,7 +734,7 @@ TRACE_EVENT(sys_madvise, ) #endif #ifndef OVERRIDE_sys_fcntl64 -TRACE_EVENT(sys_fcntl64, +SC_TRACE_EVENT(sys_fcntl64, TP_PROTO(unsigned int fd, unsigned int cmd, unsigned long arg), TP_ARGS(fd, cmd, arg), TP_STRUCT__entry(__field(unsigned int, fd) __field(unsigned int, cmd) __field(unsigned long, arg)), @@ -746,7 +743,7 @@ TRACE_EVENT(sys_fcntl64, ) #endif #ifndef OVERRIDE_sys_tgkill -TRACE_EVENT(sys_tgkill, +SC_TRACE_EVENT(sys_tgkill, TP_PROTO(pid_t tgid, pid_t pid, int sig), TP_ARGS(tgid, pid, sig), TP_STRUCT__entry(__field(pid_t, tgid) __field(pid_t, pid) __field(int, sig)), @@ -755,7 +752,7 @@ TRACE_EVENT(sys_tgkill, ) #endif #ifndef OVERRIDE_sys_ioprio_set -TRACE_EVENT(sys_ioprio_set, +SC_TRACE_EVENT(sys_ioprio_set, TP_PROTO(int which, int who, int ioprio), TP_ARGS(which, who, ioprio), TP_STRUCT__entry(__field(int, which) __field(int, who) __field(int, ioprio)), @@ -764,7 +761,7 @@ TRACE_EVENT(sys_ioprio_set, ) #endif #ifndef OVERRIDE_sys_dup3 -TRACE_EVENT(sys_dup3, +SC_TRACE_EVENT(sys_dup3, TP_PROTO(unsigned int oldfd, unsigned int newfd, int flags), TP_ARGS(oldfd, newfd, flags), TP_STRUCT__entry(__field(unsigned int, oldfd) __field(unsigned int, newfd) __field(int, flags)), @@ -773,7 +770,7 @@ TRACE_EVENT(sys_dup3, ) #endif #ifndef OVERRIDE_sys_ptrace -TRACE_EVENT(sys_ptrace, +SC_TRACE_EVENT(sys_ptrace, TP_PROTO(long request, long pid, unsigned long addr, unsigned long data), TP_ARGS(request, pid, addr, data), TP_STRUCT__entry(__field(long, request) __field(long, pid) __field_hex(unsigned long, addr) __field(unsigned long, data)), @@ -782,7 +779,7 @@ TRACE_EVENT(sys_ptrace, ) #endif #ifndef OVERRIDE_sys_tee -TRACE_EVENT(sys_tee, +SC_TRACE_EVENT(sys_tee, TP_PROTO(int fdin, int fdout, size_t len, unsigned int flags), TP_ARGS(fdin, fdout, len, flags), TP_STRUCT__entry(__field(int, fdin) __field(int, fdout) __field(size_t, len) __field(unsigned int, flags)), @@ -791,7 +788,7 @@ TRACE_EVENT(sys_tee, ) #endif #ifndef OVERRIDE_sys_mremap -TRACE_EVENT(sys_mremap, +SC_TRACE_EVENT(sys_mremap, TP_PROTO(unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, unsigned long new_addr), TP_ARGS(addr, old_len, new_len, flags, new_addr), TP_STRUCT__entry(__field_hex(unsigned long, addr) __field(unsigned long, old_len) __field(unsigned long, new_len) __field(unsigned long, flags) __field_hex(unsigned long, new_addr)), @@ -800,7 +797,7 @@ TRACE_EVENT(sys_mremap, ) #endif #ifndef OVERRIDE_sys_prctl -TRACE_EVENT(sys_prctl, +SC_TRACE_EVENT(sys_prctl, TP_PROTO(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5), TP_ARGS(option, arg2, arg3, arg4, arg5), TP_STRUCT__entry(__field(int, option) __field(unsigned long, arg2) __field(unsigned long, arg3) __field(unsigned long, arg4) __field(unsigned long, arg5)), @@ -809,7 +806,7 @@ TRACE_EVENT(sys_prctl, ) #endif #ifndef OVERRIDE_sys_remap_file_pages -TRACE_EVENT(sys_remap_file_pages, +SC_TRACE_EVENT(sys_remap_file_pages, TP_PROTO(unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long flags), TP_ARGS(start, size, prot, pgoff, flags), TP_STRUCT__entry(__field(unsigned long, start) __field(unsigned long, size) __field(unsigned long, prot) __field(unsigned long, pgoff) __field(unsigned long, flags)), @@ -818,7 +815,7 @@ TRACE_EVENT(sys_remap_file_pages, ) #endif #ifndef OVERRIDE_sys_keyctl -TRACE_EVENT(sys_keyctl, +SC_TRACE_EVENT(sys_keyctl, TP_PROTO(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5), TP_ARGS(option, arg2, arg3, arg4, arg5), TP_STRUCT__entry(__field(int, option) __field(unsigned long, arg2) __field(unsigned long, arg3) __field(unsigned long, arg4) __field(unsigned long, arg5)), @@ -827,7 +824,7 @@ TRACE_EVENT(sys_keyctl, ) #endif #ifndef OVERRIDE_sys_mmap_pgoff -TRACE_EVENT(sys_mmap_pgoff, +SC_TRACE_EVENT(sys_mmap_pgoff, TP_PROTO(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff), TP_ARGS(addr, len, prot, flags, fd, pgoff), TP_STRUCT__entry(__field_hex(unsigned long, addr) __field(unsigned long, len) __field(unsigned long, prot) __field(unsigned long, flags) __field(unsigned long, fd) __field(unsigned long, pgoff)), diff --git a/instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_pointers.h b/instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_pointers.h index 47567e03..4fa75ac4 100644 --- a/instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_pointers.h +++ b/instrumentation/syscalls/headers/x86-32-syscalls-3.1.0-rc6_pointers.h @@ -1,9 +1,6 @@ /* THIS FILE IS AUTO-GENERATED. DO NOT EDIT */ #ifndef CREATE_SYSCALL_TABLE -#undef TRACE_SYSTEM -#define TRACE_SYSTEM syscalls_pointers - #if !defined(_TRACE_SYSCALLS_POINTERS_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_SYSCALLS_POINTERS_H @@ -12,7 +9,7 @@ #include "x86-32-syscalls-3.1.0-rc6_pointers_override.h" #ifndef OVERRIDE_sys_unlink -TRACE_EVENT(sys_unlink, +SC_TRACE_EVENT(sys_unlink, TP_PROTO(const char * pathname), TP_ARGS(pathname), TP_STRUCT__entry(__string(pathname, pathname)), @@ -21,7 +18,7 @@ TRACE_EVENT(sys_unlink, ) #endif #ifndef OVERRIDE_sys_chdir -TRACE_EVENT(sys_chdir, +SC_TRACE_EVENT(sys_chdir, TP_PROTO(const char * filename), TP_ARGS(filename), TP_STRUCT__entry(__string(filename, filename)), @@ -30,7 +27,7 @@ TRACE_EVENT(sys_chdir, ) #endif #ifndef OVERRIDE_sys_time -TRACE_EVENT(sys_time, +SC_TRACE_EVENT(sys_time, TP_PROTO(time_t * tloc), TP_ARGS(tloc), TP_STRUCT__entry(__field_hex(time_t *, tloc)), @@ -39,7 +36,7 @@ TRACE_EVENT(sys_time, ) #endif #ifndef OVERRIDE_sys_oldumount -TRACE_EVENT(sys_oldumount, +SC_TRACE_EVENT(sys_oldumount, TP_PROTO(char * name), TP_ARGS(name), TP_STRUCT__entry(__string(name, name)), @@ -48,7 +45,7 @@ TRACE_EVENT(sys_oldumount, ) #endif #ifndef OVERRIDE_sys_stime -TRACE_EVENT(sys_stime, +SC_TRACE_EVENT(sys_stime, TP_PROTO(time_t * tptr), TP_ARGS(tptr), TP_STRUCT__entry(__field_hex(time_t *, tptr)), @@ -57,7 +54,7 @@ TRACE_EVENT(sys_stime, ) #endif #ifndef OVERRIDE_sys_rmdir -TRACE_EVENT(sys_rmdir, +SC_TRACE_EVENT(sys_rmdir, TP_PROTO(const char * pathname), TP_ARGS(pathname), TP_STRUCT__entry(__string(pathname, pathname)), @@ -66,7 +63,7 @@ TRACE_EVENT(sys_rmdir, ) #endif #ifndef OVERRIDE_sys_pipe -TRACE_EVENT(sys_pipe, +SC_TRACE_EVENT(sys_pipe, TP_PROTO(int * fildes), TP_ARGS(fildes), TP_STRUCT__entry(__field_hex(int *, fildes)), @@ -75,7 +72,7 @@ TRACE_EVENT(sys_pipe, ) #endif #ifndef OVERRIDE_sys_times -TRACE_EVENT(sys_times, +SC_TRACE_EVENT(sys_times, TP_PROTO(struct tms * tbuf), TP_ARGS(tbuf), TP_STRUCT__entry(__field_hex(struct tms *, tbuf)), @@ -84,7 +81,7 @@ TRACE_EVENT(sys_times, ) #endif #ifndef OVERRIDE_sys_acct -TRACE_EVENT(sys_acct, +SC_TRACE_EVENT(sys_acct, TP_PROTO(const char * name), TP_ARGS(name), TP_STRUCT__entry(__string(name, name)), @@ -93,7 +90,7 @@ TRACE_EVENT(sys_acct, ) #endif #ifndef OVERRIDE_sys_olduname -TRACE_EVENT(sys_olduname, +SC_TRACE_EVENT(sys_olduname, TP_PROTO(struct oldold_utsname * name), TP_ARGS(name), TP_STRUCT__entry(__field_hex(struct oldold_utsname *, name)), @@ -102,7 +99,7 @@ TRACE_EVENT(sys_olduname, ) #endif #ifndef OVERRIDE_sys_chroot -TRACE_EVENT(sys_chroot, +SC_TRACE_EVENT(sys_chroot, TP_PROTO(const char * filename), TP_ARGS(filename), TP_STRUCT__entry(__string(filename, filename)), @@ -111,7 +108,7 @@ TRACE_EVENT(sys_chroot, ) #endif #ifndef OVERRIDE_sys_sigpending -TRACE_EVENT(sys_sigpending, +SC_TRACE_EVENT(sys_sigpending, TP_PROTO(old_sigset_t * set), TP_ARGS(set), TP_STRUCT__entry(__field_hex(old_sigset_t *, set)), @@ -120,7 +117,7 @@ TRACE_EVENT(sys_sigpending, ) #endif #ifndef OVERRIDE_sys_old_select -TRACE_EVENT(sys_old_select, +SC_TRACE_EVENT(sys_old_select, TP_PROTO(struct sel_arg_struct * arg), TP_ARGS(arg), TP_STRUCT__entry(__field_hex(struct sel_arg_struct *, arg)), @@ -129,7 +126,7 @@ TRACE_EVENT(sys_old_select, ) #endif #ifndef OVERRIDE_sys_uselib -TRACE_EVENT(sys_uselib, +SC_TRACE_EVENT(sys_uselib, TP_PROTO(const char * library), TP_ARGS(library), TP_STRUCT__entry(__field_hex(const char *, library)), @@ -138,7 +135,7 @@ TRACE_EVENT(sys_uselib, ) #endif #ifndef OVERRIDE_sys_old_mmap -TRACE_EVENT(sys_old_mmap, +SC_TRACE_EVENT(sys_old_mmap, TP_PROTO(struct mmap_arg_struct * arg), TP_ARGS(arg), TP_STRUCT__entry(__field_hex(struct mmap_arg_struct *, arg)), @@ -147,7 +144,7 @@ TRACE_EVENT(sys_old_mmap, ) #endif #ifndef OVERRIDE_sys_uname -TRACE_EVENT(sys_uname, +SC_TRACE_EVENT(sys_uname, TP_PROTO(struct old_utsname * name), TP_ARGS(name), TP_STRUCT__entry(__field_hex(struct old_utsname *, name)), @@ -156,7 +153,7 @@ TRACE_EVENT(sys_uname, ) #endif #ifndef OVERRIDE_sys_swapoff -TRACE_EVENT(sys_swapoff, +SC_TRACE_EVENT(sys_swapoff, TP_PROTO(const char * specialfile), TP_ARGS(specialfile), TP_STRUCT__entry(__string(specialfile, specialfile)), @@ -165,7 +162,7 @@ TRACE_EVENT(sys_swapoff, ) #endif #ifndef OVERRIDE_sys_sysinfo -TRACE_EVENT(sys_sysinfo, +SC_TRACE_EVENT(sys_sysinfo, TP_PROTO(struct sysinfo * info), TP_ARGS(info), TP_STRUCT__entry(__field_hex(struct sysinfo *, info)), @@ -174,7 +171,7 @@ TRACE_EVENT(sys_sysinfo, ) #endif #ifndef OVERRIDE_sys_newuname -TRACE_EVENT(sys_newuname, +SC_TRACE_EVENT(sys_newuname, TP_PROTO(struct new_utsname * name), TP_ARGS(name), TP_STRUCT__entry(__field_hex(struct new_utsname *, name)), @@ -183,7 +180,7 @@ TRACE_EVENT(sys_newuname, ) #endif #ifndef OVERRIDE_sys_adjtimex -TRACE_EVENT(sys_adjtimex, +SC_TRACE_EVENT(sys_adjtimex, TP_PROTO(struct timex * txc_p), TP_ARGS(txc_p), TP_STRUCT__entry(__field_hex(struct timex *, txc_p)), @@ -192,7 +189,7 @@ TRACE_EVENT(sys_adjtimex, ) #endif #ifndef OVERRIDE_sys_sysctl -TRACE_EVENT(sys_sysctl, +SC_TRACE_EVENT(sys_sysctl, TP_PROTO(struct __sysctl_args * args), TP_ARGS(args), TP_STRUCT__entry(__field_hex(struct __sysctl_args *, args)), @@ -201,7 +198,7 @@ TRACE_EVENT(sys_sysctl, ) #endif #ifndef OVERRIDE_sys_set_tid_address -TRACE_EVENT(sys_set_tid_address, +SC_TRACE_EVENT(sys_set_tid_address, TP_PROTO(int * tidptr), TP_ARGS(tidptr), TP_STRUCT__entry(__field_hex(int *, tidptr)), @@ -210,7 +207,7 @@ TRACE_EVENT(sys_set_tid_address, ) #endif #ifndef OVERRIDE_sys_mq_unlink -TRACE_EVENT(sys_mq_unlink, +SC_TRACE_EVENT(sys_mq_unlink, TP_PROTO(const char * u_name), TP_ARGS(u_name), TP_STRUCT__entry(__string(u_name, u_name)), @@ -219,7 +216,7 @@ TRACE_EVENT(sys_mq_unlink, ) #endif #ifndef OVERRIDE_sys_creat -TRACE_EVENT(sys_creat, +SC_TRACE_EVENT(sys_creat, TP_PROTO(const char * pathname, int mode), TP_ARGS(pathname, mode), TP_STRUCT__entry(__string(pathname, pathname) __field(int, mode)), @@ -228,7 +225,7 @@ TRACE_EVENT(sys_creat, ) #endif #ifndef OVERRIDE_sys_link -TRACE_EVENT(sys_link, +SC_TRACE_EVENT(sys_link, TP_PROTO(const char * oldname, const char * newname), TP_ARGS(oldname, newname), TP_STRUCT__entry(__string(oldname, oldname) __string(newname, newname)), @@ -237,7 +234,7 @@ TRACE_EVENT(sys_link, ) #endif #ifndef OVERRIDE_sys_chmod -TRACE_EVENT(sys_chmod, +SC_TRACE_EVENT(sys_chmod, TP_PROTO(const char * filename, mode_t mode), TP_ARGS(filename, mode), TP_STRUCT__entry(__string(filename, filename) __field(mode_t, mode)), @@ -246,7 +243,7 @@ TRACE_EVENT(sys_chmod, ) #endif #ifndef OVERRIDE_sys_stat -TRACE_EVENT(sys_stat, +SC_TRACE_EVENT(sys_stat, TP_PROTO(const char * filename, struct __old_kernel_stat * statbuf), TP_ARGS(filename, statbuf), TP_STRUCT__entry(__string(filename, filename) __field_hex(struct __old_kernel_stat *, statbuf)), @@ -255,7 +252,7 @@ TRACE_EVENT(sys_stat, ) #endif #ifndef OVERRIDE_sys_fstat -TRACE_EVENT(sys_fstat, +SC_TRACE_EVENT(sys_fstat, TP_PROTO(unsigned int fd, struct __old_kernel_stat * statbuf), TP_ARGS(fd, statbuf), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(struct __old_kernel_stat *, statbuf)), @@ -264,7 +261,7 @@ TRACE_EVENT(sys_fstat, ) #endif #ifndef OVERRIDE_sys_utime -TRACE_EVENT(sys_utime, +SC_TRACE_EVENT(sys_utime, TP_PROTO(char * filename, struct utimbuf * times), TP_ARGS(filename, times), TP_STRUCT__entry(__string(filename, filename) __field_hex(struct utimbuf *, times)), @@ -273,7 +270,7 @@ TRACE_EVENT(sys_utime, ) #endif #ifndef OVERRIDE_sys_access -TRACE_EVENT(sys_access, +SC_TRACE_EVENT(sys_access, TP_PROTO(const char * filename, int mode), TP_ARGS(filename, mode), TP_STRUCT__entry(__string(filename, filename) __field(int, mode)), @@ -282,7 +279,7 @@ TRACE_EVENT(sys_access, ) #endif #ifndef OVERRIDE_sys_rename -TRACE_EVENT(sys_rename, +SC_TRACE_EVENT(sys_rename, TP_PROTO(const char * oldname, const char * newname), TP_ARGS(oldname, newname), TP_STRUCT__entry(__string(oldname, oldname) __string(newname, newname)), @@ -291,7 +288,7 @@ TRACE_EVENT(sys_rename, ) #endif #ifndef OVERRIDE_sys_mkdir -TRACE_EVENT(sys_mkdir, +SC_TRACE_EVENT(sys_mkdir, TP_PROTO(const char * pathname, int mode), TP_ARGS(pathname, mode), TP_STRUCT__entry(__string(pathname, pathname) __field(int, mode)), @@ -300,7 +297,7 @@ TRACE_EVENT(sys_mkdir, ) #endif #ifndef OVERRIDE_sys_umount -TRACE_EVENT(sys_umount, +SC_TRACE_EVENT(sys_umount, TP_PROTO(char * name, int flags), TP_ARGS(name, flags), TP_STRUCT__entry(__string(name, name) __field(int, flags)), @@ -309,7 +306,7 @@ TRACE_EVENT(sys_umount, ) #endif #ifndef OVERRIDE_sys_ustat -TRACE_EVENT(sys_ustat, +SC_TRACE_EVENT(sys_ustat, TP_PROTO(unsigned dev, struct ustat * ubuf), TP_ARGS(dev, ubuf), TP_STRUCT__entry(__field(unsigned, dev) __field_hex(struct ustat *, ubuf)), @@ -318,7 +315,7 @@ TRACE_EVENT(sys_ustat, ) #endif #ifndef OVERRIDE_sys_sethostname -TRACE_EVENT(sys_sethostname, +SC_TRACE_EVENT(sys_sethostname, TP_PROTO(char * name, int len), TP_ARGS(name, len), TP_STRUCT__entry(__string(name, name) __field(int, len)), @@ -327,7 +324,7 @@ TRACE_EVENT(sys_sethostname, ) #endif #ifndef OVERRIDE_sys_setrlimit -TRACE_EVENT(sys_setrlimit, +SC_TRACE_EVENT(sys_setrlimit, TP_PROTO(unsigned int resource, struct rlimit * rlim), TP_ARGS(resource, rlim), TP_STRUCT__entry(__field(unsigned int, resource) __field_hex(struct rlimit *, rlim)), @@ -336,7 +333,7 @@ TRACE_EVENT(sys_setrlimit, ) #endif #ifndef OVERRIDE_sys_old_getrlimit -TRACE_EVENT(sys_old_getrlimit, +SC_TRACE_EVENT(sys_old_getrlimit, TP_PROTO(unsigned int resource, struct rlimit * rlim), TP_ARGS(resource, rlim), TP_STRUCT__entry(__field(unsigned int, resource) __field_hex(struct rlimit *, rlim)), @@ -345,7 +342,7 @@ TRACE_EVENT(sys_old_getrlimit, ) #endif #ifndef OVERRIDE_sys_getrusage -TRACE_EVENT(sys_getrusage, +SC_TRACE_EVENT(sys_getrusage, TP_PROTO(int who, struct rusage * ru), TP_ARGS(who, ru), TP_STRUCT__entry(__field(int, who) __field_hex(struct rusage *, ru)), @@ -354,7 +351,7 @@ TRACE_EVENT(sys_getrusage, ) #endif #ifndef OVERRIDE_sys_gettimeofday -TRACE_EVENT(sys_gettimeofday, +SC_TRACE_EVENT(sys_gettimeofday, TP_PROTO(struct timeval * tv, struct timezone * tz), TP_ARGS(tv, tz), TP_STRUCT__entry(__field_hex(struct timeval *, tv) __field_hex(struct timezone *, tz)), @@ -363,7 +360,7 @@ TRACE_EVENT(sys_gettimeofday, ) #endif #ifndef OVERRIDE_sys_settimeofday -TRACE_EVENT(sys_settimeofday, +SC_TRACE_EVENT(sys_settimeofday, TP_PROTO(struct timeval * tv, struct timezone * tz), TP_ARGS(tv, tz), TP_STRUCT__entry(__field_hex(struct timeval *, tv) __field_hex(struct timezone *, tz)), @@ -372,7 +369,7 @@ TRACE_EVENT(sys_settimeofday, ) #endif #ifndef OVERRIDE_sys_getgroups16 -TRACE_EVENT(sys_getgroups16, +SC_TRACE_EVENT(sys_getgroups16, TP_PROTO(int gidsetsize, old_gid_t * grouplist), TP_ARGS(gidsetsize, grouplist), TP_STRUCT__entry(__field(int, gidsetsize) __field_hex(old_gid_t *, grouplist)), @@ -381,7 +378,7 @@ TRACE_EVENT(sys_getgroups16, ) #endif #ifndef OVERRIDE_sys_setgroups16 -TRACE_EVENT(sys_setgroups16, +SC_TRACE_EVENT(sys_setgroups16, TP_PROTO(int gidsetsize, old_gid_t * grouplist), TP_ARGS(gidsetsize, grouplist), TP_STRUCT__entry(__field(int, gidsetsize) __field_hex(old_gid_t *, grouplist)), @@ -390,7 +387,7 @@ TRACE_EVENT(sys_setgroups16, ) #endif #ifndef OVERRIDE_sys_symlink -TRACE_EVENT(sys_symlink, +SC_TRACE_EVENT(sys_symlink, TP_PROTO(const char * oldname, const char * newname), TP_ARGS(oldname, newname), TP_STRUCT__entry(__string(oldname, oldname) __string(newname, newname)), @@ -399,7 +396,7 @@ TRACE_EVENT(sys_symlink, ) #endif #ifndef OVERRIDE_sys_lstat -TRACE_EVENT(sys_lstat, +SC_TRACE_EVENT(sys_lstat, TP_PROTO(const char * filename, struct __old_kernel_stat * statbuf), TP_ARGS(filename, statbuf), TP_STRUCT__entry(__string(filename, filename) __field_hex(struct __old_kernel_stat *, statbuf)), @@ -408,7 +405,7 @@ TRACE_EVENT(sys_lstat, ) #endif #ifndef OVERRIDE_sys_swapon -TRACE_EVENT(sys_swapon, +SC_TRACE_EVENT(sys_swapon, TP_PROTO(const char * specialfile, int swap_flags), TP_ARGS(specialfile, swap_flags), TP_STRUCT__entry(__string(specialfile, specialfile) __field(int, swap_flags)), @@ -417,7 +414,7 @@ TRACE_EVENT(sys_swapon, ) #endif #ifndef OVERRIDE_sys_truncate -TRACE_EVENT(sys_truncate, +SC_TRACE_EVENT(sys_truncate, TP_PROTO(const char * path, long length), TP_ARGS(path, length), TP_STRUCT__entry(__string(path, path) __field(long, length)), @@ -426,7 +423,7 @@ TRACE_EVENT(sys_truncate, ) #endif #ifndef OVERRIDE_sys_statfs -TRACE_EVENT(sys_statfs, +SC_TRACE_EVENT(sys_statfs, TP_PROTO(const char * pathname, struct statfs * buf), TP_ARGS(pathname, buf), TP_STRUCT__entry(__string(pathname, pathname) __field_hex(struct statfs *, buf)), @@ -435,7 +432,7 @@ TRACE_EVENT(sys_statfs, ) #endif #ifndef OVERRIDE_sys_fstatfs -TRACE_EVENT(sys_fstatfs, +SC_TRACE_EVENT(sys_fstatfs, TP_PROTO(unsigned int fd, struct statfs * buf), TP_ARGS(fd, buf), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(struct statfs *, buf)), @@ -444,7 +441,7 @@ TRACE_EVENT(sys_fstatfs, ) #endif #ifndef OVERRIDE_sys_socketcall -TRACE_EVENT(sys_socketcall, +SC_TRACE_EVENT(sys_socketcall, TP_PROTO(int call, unsigned long * args), TP_ARGS(call, args), TP_STRUCT__entry(__field(int, call) __field_hex(unsigned long *, args)), @@ -453,7 +450,7 @@ TRACE_EVENT(sys_socketcall, ) #endif #ifndef OVERRIDE_sys_getitimer -TRACE_EVENT(sys_getitimer, +SC_TRACE_EVENT(sys_getitimer, TP_PROTO(int which, struct itimerval * value), TP_ARGS(which, value), TP_STRUCT__entry(__field(int, which) __field_hex(struct itimerval *, value)), @@ -462,7 +459,7 @@ TRACE_EVENT(sys_getitimer, ) #endif #ifndef OVERRIDE_sys_newstat -TRACE_EVENT(sys_newstat, +SC_TRACE_EVENT(sys_newstat, TP_PROTO(const char * filename, struct stat * statbuf), TP_ARGS(filename, statbuf), TP_STRUCT__entry(__string(filename, filename) __field_hex(struct stat *, statbuf)), @@ -471,7 +468,7 @@ TRACE_EVENT(sys_newstat, ) #endif #ifndef OVERRIDE_sys_newlstat -TRACE_EVENT(sys_newlstat, +SC_TRACE_EVENT(sys_newlstat, TP_PROTO(const char * filename, struct stat * statbuf), TP_ARGS(filename, statbuf), TP_STRUCT__entry(__string(filename, filename) __field_hex(struct stat *, statbuf)), @@ -480,7 +477,7 @@ TRACE_EVENT(sys_newlstat, ) #endif #ifndef OVERRIDE_sys_newfstat -TRACE_EVENT(sys_newfstat, +SC_TRACE_EVENT(sys_newfstat, TP_PROTO(unsigned int fd, struct stat * statbuf), TP_ARGS(fd, statbuf), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(struct stat *, statbuf)), @@ -489,7 +486,7 @@ TRACE_EVENT(sys_newfstat, ) #endif #ifndef OVERRIDE_sys_setdomainname -TRACE_EVENT(sys_setdomainname, +SC_TRACE_EVENT(sys_setdomainname, TP_PROTO(char * name, int len), TP_ARGS(name, len), TP_STRUCT__entry(__string(name, name) __field(int, len)), @@ -498,7 +495,7 @@ TRACE_EVENT(sys_setdomainname, ) #endif #ifndef OVERRIDE_sys_delete_module -TRACE_EVENT(sys_delete_module, +SC_TRACE_EVENT(sys_delete_module, TP_PROTO(const char * name_user, unsigned int flags), TP_ARGS(name_user, flags), TP_STRUCT__entry(__string(name_user, name_user) __field(unsigned int, flags)), @@ -507,7 +504,7 @@ TRACE_EVENT(sys_delete_module, ) #endif #ifndef OVERRIDE_sys_sched_setparam -TRACE_EVENT(sys_sched_setparam, +SC_TRACE_EVENT(sys_sched_setparam, TP_PROTO(pid_t pid, struct sched_param * param), TP_ARGS(pid, param), TP_STRUCT__entry(__field(pid_t, pid) __field_hex(struct sched_param *, param)), @@ -516,7 +513,7 @@ TRACE_EVENT(sys_sched_setparam, ) #endif #ifndef OVERRIDE_sys_sched_getparam -TRACE_EVENT(sys_sched_getparam, +SC_TRACE_EVENT(sys_sched_getparam, TP_PROTO(pid_t pid, struct sched_param * param), TP_ARGS(pid, param), TP_STRUCT__entry(__field(pid_t, pid) __field_hex(struct sched_param *, param)), @@ -525,7 +522,7 @@ TRACE_EVENT(sys_sched_getparam, ) #endif #ifndef OVERRIDE_sys_sched_rr_get_interval -TRACE_EVENT(sys_sched_rr_get_interval, +SC_TRACE_EVENT(sys_sched_rr_get_interval, TP_PROTO(pid_t pid, struct timespec * interval), TP_ARGS(pid, interval), TP_STRUCT__entry(__field(pid_t, pid) __field_hex(struct timespec *, interval)), @@ -534,7 +531,7 @@ TRACE_EVENT(sys_sched_rr_get_interval, ) #endif #ifndef OVERRIDE_sys_nanosleep -TRACE_EVENT(sys_nanosleep, +SC_TRACE_EVENT(sys_nanosleep, TP_PROTO(struct timespec * rqtp, struct timespec * rmtp), TP_ARGS(rqtp, rmtp), TP_STRUCT__entry(__field_hex(struct timespec *, rqtp) __field_hex(struct timespec *, rmtp)), @@ -543,7 +540,7 @@ TRACE_EVENT(sys_nanosleep, ) #endif #ifndef OVERRIDE_sys_rt_sigpending -TRACE_EVENT(sys_rt_sigpending, +SC_TRACE_EVENT(sys_rt_sigpending, TP_PROTO(sigset_t * set, size_t sigsetsize), TP_ARGS(set, sigsetsize), TP_STRUCT__entry(__field_hex(sigset_t *, set) __field(size_t, sigsetsize)), @@ -552,7 +549,7 @@ TRACE_EVENT(sys_rt_sigpending, ) #endif #ifndef OVERRIDE_sys_rt_sigsuspend -TRACE_EVENT(sys_rt_sigsuspend, +SC_TRACE_EVENT(sys_rt_sigsuspend, TP_PROTO(sigset_t * unewset, size_t sigsetsize), TP_ARGS(unewset, sigsetsize), TP_STRUCT__entry(__field_hex(sigset_t *, unewset) __field(size_t, sigsetsize)), @@ -561,7 +558,7 @@ TRACE_EVENT(sys_rt_sigsuspend, ) #endif #ifndef OVERRIDE_sys_getcwd -TRACE_EVENT(sys_getcwd, +SC_TRACE_EVENT(sys_getcwd, TP_PROTO(char * buf, unsigned long size), TP_ARGS(buf, size), TP_STRUCT__entry(__field_hex(char *, buf) __field(unsigned long, size)), @@ -570,7 +567,7 @@ TRACE_EVENT(sys_getcwd, ) #endif #ifndef OVERRIDE_sys_getrlimit -TRACE_EVENT(sys_getrlimit, +SC_TRACE_EVENT(sys_getrlimit, TP_PROTO(unsigned int resource, struct rlimit * rlim), TP_ARGS(resource, rlim), TP_STRUCT__entry(__field(unsigned int, resource) __field_hex(struct rlimit *, rlim)), @@ -579,7 +576,7 @@ TRACE_EVENT(sys_getrlimit, ) #endif #ifndef OVERRIDE_sys_stat64 -TRACE_EVENT(sys_stat64, +SC_TRACE_EVENT(sys_stat64, TP_PROTO(const char * filename, struct stat64 * statbuf), TP_ARGS(filename, statbuf), TP_STRUCT__entry(__string(filename, filename) __field_hex(struct stat64 *, statbuf)), @@ -588,7 +585,7 @@ TRACE_EVENT(sys_stat64, ) #endif #ifndef OVERRIDE_sys_lstat64 -TRACE_EVENT(sys_lstat64, +SC_TRACE_EVENT(sys_lstat64, TP_PROTO(const char * filename, struct stat64 * statbuf), TP_ARGS(filename, statbuf), TP_STRUCT__entry(__string(filename, filename) __field_hex(struct stat64 *, statbuf)), @@ -597,7 +594,7 @@ TRACE_EVENT(sys_lstat64, ) #endif #ifndef OVERRIDE_sys_fstat64 -TRACE_EVENT(sys_fstat64, +SC_TRACE_EVENT(sys_fstat64, TP_PROTO(unsigned long fd, struct stat64 * statbuf), TP_ARGS(fd, statbuf), TP_STRUCT__entry(__field(unsigned long, fd) __field_hex(struct stat64 *, statbuf)), @@ -606,7 +603,7 @@ TRACE_EVENT(sys_fstat64, ) #endif #ifndef OVERRIDE_sys_getgroups -TRACE_EVENT(sys_getgroups, +SC_TRACE_EVENT(sys_getgroups, TP_PROTO(int gidsetsize, gid_t * grouplist), TP_ARGS(gidsetsize, grouplist), TP_STRUCT__entry(__field(int, gidsetsize) __field_hex(gid_t *, grouplist)), @@ -615,7 +612,7 @@ TRACE_EVENT(sys_getgroups, ) #endif #ifndef OVERRIDE_sys_setgroups -TRACE_EVENT(sys_setgroups, +SC_TRACE_EVENT(sys_setgroups, TP_PROTO(int gidsetsize, gid_t * grouplist), TP_ARGS(gidsetsize, grouplist), TP_STRUCT__entry(__field(int, gidsetsize) __field_hex(gid_t *, grouplist)), @@ -624,7 +621,7 @@ TRACE_EVENT(sys_setgroups, ) #endif #ifndef OVERRIDE_sys_pivot_root -TRACE_EVENT(sys_pivot_root, +SC_TRACE_EVENT(sys_pivot_root, TP_PROTO(const char * new_root, const char * put_old), TP_ARGS(new_root, put_old), TP_STRUCT__entry(__string(new_root, new_root) __string(put_old, put_old)), @@ -633,7 +630,7 @@ TRACE_EVENT(sys_pivot_root, ) #endif #ifndef OVERRIDE_sys_removexattr -TRACE_EVENT(sys_removexattr, +SC_TRACE_EVENT(sys_removexattr, TP_PROTO(const char * pathname, const char * name), TP_ARGS(pathname, name), TP_STRUCT__entry(__string(pathname, pathname) __string(name, name)), @@ -642,7 +639,7 @@ TRACE_EVENT(sys_removexattr, ) #endif #ifndef OVERRIDE_sys_lremovexattr -TRACE_EVENT(sys_lremovexattr, +SC_TRACE_EVENT(sys_lremovexattr, TP_PROTO(const char * pathname, const char * name), TP_ARGS(pathname, name), TP_STRUCT__entry(__string(pathname, pathname) __string(name, name)), @@ -651,7 +648,7 @@ TRACE_EVENT(sys_lremovexattr, ) #endif #ifndef OVERRIDE_sys_fremovexattr -TRACE_EVENT(sys_fremovexattr, +SC_TRACE_EVENT(sys_fremovexattr, TP_PROTO(int fd, const char * name), TP_ARGS(fd, name), TP_STRUCT__entry(__field(int, fd) __string(name, name)), @@ -660,7 +657,7 @@ TRACE_EVENT(sys_fremovexattr, ) #endif #ifndef OVERRIDE_sys_io_setup -TRACE_EVENT(sys_io_setup, +SC_TRACE_EVENT(sys_io_setup, TP_PROTO(unsigned nr_events, aio_context_t * ctxp), TP_ARGS(nr_events, ctxp), TP_STRUCT__entry(__field(unsigned, nr_events) __field_hex(aio_context_t *, ctxp)), @@ -669,7 +666,7 @@ TRACE_EVENT(sys_io_setup, ) #endif #ifndef OVERRIDE_sys_timer_gettime -TRACE_EVENT(sys_timer_gettime, +SC_TRACE_EVENT(sys_timer_gettime, TP_PROTO(timer_t timer_id, struct itimerspec * setting), TP_ARGS(timer_id, setting), TP_STRUCT__entry(__field(timer_t, timer_id) __field_hex(struct itimerspec *, setting)), @@ -678,7 +675,7 @@ TRACE_EVENT(sys_timer_gettime, ) #endif #ifndef OVERRIDE_sys_clock_settime -TRACE_EVENT(sys_clock_settime, +SC_TRACE_EVENT(sys_clock_settime, TP_PROTO(const clockid_t which_clock, const struct timespec * tp), TP_ARGS(which_clock, tp), TP_STRUCT__entry(__field(const clockid_t, which_clock) __field_hex(const struct timespec *, tp)), @@ -687,7 +684,7 @@ TRACE_EVENT(sys_clock_settime, ) #endif #ifndef OVERRIDE_sys_clock_gettime -TRACE_EVENT(sys_clock_gettime, +SC_TRACE_EVENT(sys_clock_gettime, TP_PROTO(const clockid_t which_clock, struct timespec * tp), TP_ARGS(which_clock, tp), TP_STRUCT__entry(__field(const clockid_t, which_clock) __field_hex(struct timespec *, tp)), @@ -696,7 +693,7 @@ TRACE_EVENT(sys_clock_gettime, ) #endif #ifndef OVERRIDE_sys_clock_getres -TRACE_EVENT(sys_clock_getres, +SC_TRACE_EVENT(sys_clock_getres, TP_PROTO(const clockid_t which_clock, struct timespec * tp), TP_ARGS(which_clock, tp), TP_STRUCT__entry(__field(const clockid_t, which_clock) __field_hex(struct timespec *, tp)), @@ -705,7 +702,7 @@ TRACE_EVENT(sys_clock_getres, ) #endif #ifndef OVERRIDE_sys_utimes -TRACE_EVENT(sys_utimes, +SC_TRACE_EVENT(sys_utimes, TP_PROTO(char * filename, struct timeval * utimes), TP_ARGS(filename, utimes), TP_STRUCT__entry(__string(filename, filename) __field_hex(struct timeval *, utimes)), @@ -714,7 +711,7 @@ TRACE_EVENT(sys_utimes, ) #endif #ifndef OVERRIDE_sys_mq_notify -TRACE_EVENT(sys_mq_notify, +SC_TRACE_EVENT(sys_mq_notify, TP_PROTO(mqd_t mqdes, const struct sigevent * u_notification), TP_ARGS(mqdes, u_notification), TP_STRUCT__entry(__field(mqd_t, mqdes) __field_hex(const struct sigevent *, u_notification)), @@ -723,7 +720,7 @@ TRACE_EVENT(sys_mq_notify, ) #endif #ifndef OVERRIDE_sys_set_robust_list -TRACE_EVENT(sys_set_robust_list, +SC_TRACE_EVENT(sys_set_robust_list, TP_PROTO(struct robust_list_head * head, size_t len), TP_ARGS(head, len), TP_STRUCT__entry(__field_hex(struct robust_list_head *, head) __field(size_t, len)), @@ -732,7 +729,7 @@ TRACE_EVENT(sys_set_robust_list, ) #endif #ifndef OVERRIDE_sys_timerfd_gettime -TRACE_EVENT(sys_timerfd_gettime, +SC_TRACE_EVENT(sys_timerfd_gettime, TP_PROTO(int ufd, struct itimerspec * otmr), TP_ARGS(ufd, otmr), TP_STRUCT__entry(__field(int, ufd) __field_hex(struct itimerspec *, otmr)), @@ -741,7 +738,7 @@ TRACE_EVENT(sys_timerfd_gettime, ) #endif #ifndef OVERRIDE_sys_pipe2 -TRACE_EVENT(sys_pipe2, +SC_TRACE_EVENT(sys_pipe2, TP_PROTO(int * fildes, int flags), TP_ARGS(fildes, flags), TP_STRUCT__entry(__field_hex(int *, fildes) __field(int, flags)), @@ -750,7 +747,7 @@ TRACE_EVENT(sys_pipe2, ) #endif #ifndef OVERRIDE_sys_clock_adjtime -TRACE_EVENT(sys_clock_adjtime, +SC_TRACE_EVENT(sys_clock_adjtime, TP_PROTO(const clockid_t which_clock, struct timex * utx), TP_ARGS(which_clock, utx), TP_STRUCT__entry(__field(const clockid_t, which_clock) __field_hex(struct timex *, utx)), @@ -759,7 +756,7 @@ TRACE_EVENT(sys_clock_adjtime, ) #endif #ifndef OVERRIDE_sys_read -TRACE_EVENT(sys_read, +SC_TRACE_EVENT(sys_read, TP_PROTO(unsigned int fd, char * buf, size_t count), TP_ARGS(fd, buf, count), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(char *, buf) __field(size_t, count)), @@ -768,7 +765,7 @@ TRACE_EVENT(sys_read, ) #endif #ifndef OVERRIDE_sys_write -TRACE_EVENT(sys_write, +SC_TRACE_EVENT(sys_write, TP_PROTO(unsigned int fd, const char * buf, size_t count), TP_ARGS(fd, buf, count), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(const char *, buf) __field(size_t, count)), @@ -777,7 +774,7 @@ TRACE_EVENT(sys_write, ) #endif #ifndef OVERRIDE_sys_open -TRACE_EVENT(sys_open, +SC_TRACE_EVENT(sys_open, TP_PROTO(const char * filename, int flags, int mode), TP_ARGS(filename, flags, mode), TP_STRUCT__entry(__string(filename, filename) __field(int, flags) __field(int, mode)), @@ -786,7 +783,7 @@ TRACE_EVENT(sys_open, ) #endif #ifndef OVERRIDE_sys_waitpid -TRACE_EVENT(sys_waitpid, +SC_TRACE_EVENT(sys_waitpid, TP_PROTO(pid_t pid, int * stat_addr, int options), TP_ARGS(pid, stat_addr, options), TP_STRUCT__entry(__field(pid_t, pid) __field_hex(int *, stat_addr) __field(int, options)), @@ -795,7 +792,7 @@ TRACE_EVENT(sys_waitpid, ) #endif #ifndef OVERRIDE_sys_mknod -TRACE_EVENT(sys_mknod, +SC_TRACE_EVENT(sys_mknod, TP_PROTO(const char * filename, int mode, unsigned dev), TP_ARGS(filename, mode, dev), TP_STRUCT__entry(__string(filename, filename) __field(int, mode) __field(unsigned, dev)), @@ -804,7 +801,7 @@ TRACE_EVENT(sys_mknod, ) #endif #ifndef OVERRIDE_sys_lchown16 -TRACE_EVENT(sys_lchown16, +SC_TRACE_EVENT(sys_lchown16, TP_PROTO(const char * filename, old_uid_t user, old_gid_t group), TP_ARGS(filename, user, group), TP_STRUCT__entry(__string(filename, filename) __field(old_uid_t, user) __field(old_gid_t, group)), @@ -813,7 +810,7 @@ TRACE_EVENT(sys_lchown16, ) #endif #ifndef OVERRIDE_sys_readlink -TRACE_EVENT(sys_readlink, +SC_TRACE_EVENT(sys_readlink, TP_PROTO(const char * path, char * buf, int bufsiz), TP_ARGS(path, buf, bufsiz), TP_STRUCT__entry(__string(path, path) __field_hex(char *, buf) __field(int, bufsiz)), @@ -822,7 +819,7 @@ TRACE_EVENT(sys_readlink, ) #endif #ifndef OVERRIDE_sys_old_readdir -TRACE_EVENT(sys_old_readdir, +SC_TRACE_EVENT(sys_old_readdir, TP_PROTO(unsigned int fd, struct old_linux_dirent * dirent, unsigned int count), TP_ARGS(fd, dirent, count), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(struct old_linux_dirent *, dirent) __field(unsigned int, count)), @@ -831,7 +828,7 @@ TRACE_EVENT(sys_old_readdir, ) #endif #ifndef OVERRIDE_sys_syslog -TRACE_EVENT(sys_syslog, +SC_TRACE_EVENT(sys_syslog, TP_PROTO(int type, char * buf, int len), TP_ARGS(type, buf, len), TP_STRUCT__entry(__field(int, type) __field_hex(char *, buf) __field(int, len)), @@ -840,7 +837,7 @@ TRACE_EVENT(sys_syslog, ) #endif #ifndef OVERRIDE_sys_setitimer -TRACE_EVENT(sys_setitimer, +SC_TRACE_EVENT(sys_setitimer, TP_PROTO(int which, struct itimerval * value, struct itimerval * ovalue), TP_ARGS(which, value, ovalue), TP_STRUCT__entry(__field(int, which) __field_hex(struct itimerval *, value) __field_hex(struct itimerval *, ovalue)), @@ -849,7 +846,7 @@ TRACE_EVENT(sys_setitimer, ) #endif #ifndef OVERRIDE_sys_sigprocmask -TRACE_EVENT(sys_sigprocmask, +SC_TRACE_EVENT(sys_sigprocmask, TP_PROTO(int how, old_sigset_t * nset, old_sigset_t * oset), TP_ARGS(how, nset, oset), TP_STRUCT__entry(__field(int, how) __field_hex(old_sigset_t *, nset) __field_hex(old_sigset_t *, oset)), @@ -858,7 +855,7 @@ TRACE_EVENT(sys_sigprocmask, ) #endif #ifndef OVERRIDE_sys_init_module -TRACE_EVENT(sys_init_module, +SC_TRACE_EVENT(sys_init_module, TP_PROTO(void * umod, unsigned long len, const char * uargs), TP_ARGS(umod, len, uargs), TP_STRUCT__entry(__field_hex(void *, umod) __field(unsigned long, len) __field_hex(const char *, uargs)), @@ -867,7 +864,7 @@ TRACE_EVENT(sys_init_module, ) #endif #ifndef OVERRIDE_sys_getdents -TRACE_EVENT(sys_getdents, +SC_TRACE_EVENT(sys_getdents, TP_PROTO(unsigned int fd, struct linux_dirent * dirent, unsigned int count), TP_ARGS(fd, dirent, count), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(struct linux_dirent *, dirent) __field(unsigned int, count)), @@ -876,7 +873,7 @@ TRACE_EVENT(sys_getdents, ) #endif #ifndef OVERRIDE_sys_readv -TRACE_EVENT(sys_readv, +SC_TRACE_EVENT(sys_readv, TP_PROTO(unsigned long fd, const struct iovec * vec, unsigned long vlen), TP_ARGS(fd, vec, vlen), TP_STRUCT__entry(__field(unsigned long, fd) __field_hex(const struct iovec *, vec) __field(unsigned long, vlen)), @@ -885,7 +882,7 @@ TRACE_EVENT(sys_readv, ) #endif #ifndef OVERRIDE_sys_writev -TRACE_EVENT(sys_writev, +SC_TRACE_EVENT(sys_writev, TP_PROTO(unsigned long fd, const struct iovec * vec, unsigned long vlen), TP_ARGS(fd, vec, vlen), TP_STRUCT__entry(__field(unsigned long, fd) __field_hex(const struct iovec *, vec) __field(unsigned long, vlen)), @@ -894,7 +891,7 @@ TRACE_EVENT(sys_writev, ) #endif #ifndef OVERRIDE_sys_sched_setscheduler -TRACE_EVENT(sys_sched_setscheduler, +SC_TRACE_EVENT(sys_sched_setscheduler, TP_PROTO(pid_t pid, int policy, struct sched_param * param), TP_ARGS(pid, policy, param), TP_STRUCT__entry(__field(pid_t, pid) __field(int, policy) __field_hex(struct sched_param *, param)), @@ -903,7 +900,7 @@ TRACE_EVENT(sys_sched_setscheduler, ) #endif #ifndef OVERRIDE_sys_getresuid16 -TRACE_EVENT(sys_getresuid16, +SC_TRACE_EVENT(sys_getresuid16, TP_PROTO(old_uid_t * ruid, old_uid_t * euid, old_uid_t * suid), TP_ARGS(ruid, euid, suid), TP_STRUCT__entry(__field_hex(old_uid_t *, ruid) __field_hex(old_uid_t *, euid) __field_hex(old_uid_t *, suid)), @@ -912,7 +909,7 @@ TRACE_EVENT(sys_getresuid16, ) #endif #ifndef OVERRIDE_sys_poll -TRACE_EVENT(sys_poll, +SC_TRACE_EVENT(sys_poll, TP_PROTO(struct pollfd * ufds, unsigned int nfds, long timeout_msecs), TP_ARGS(ufds, nfds, timeout_msecs), TP_STRUCT__entry(__field_hex(struct pollfd *, ufds) __field(unsigned int, nfds) __field(long, timeout_msecs)), @@ -921,7 +918,7 @@ TRACE_EVENT(sys_poll, ) #endif #ifndef OVERRIDE_sys_getresgid16 -TRACE_EVENT(sys_getresgid16, +SC_TRACE_EVENT(sys_getresgid16, TP_PROTO(old_gid_t * rgid, old_gid_t * egid, old_gid_t * sgid), TP_ARGS(rgid, egid, sgid), TP_STRUCT__entry(__field_hex(old_gid_t *, rgid) __field_hex(old_gid_t *, egid) __field_hex(old_gid_t *, sgid)), @@ -930,7 +927,7 @@ TRACE_EVENT(sys_getresgid16, ) #endif #ifndef OVERRIDE_sys_rt_sigqueueinfo -TRACE_EVENT(sys_rt_sigqueueinfo, +SC_TRACE_EVENT(sys_rt_sigqueueinfo, TP_PROTO(pid_t pid, int sig, siginfo_t * uinfo), TP_ARGS(pid, sig, uinfo), TP_STRUCT__entry(__field(pid_t, pid) __field(int, sig) __field_hex(siginfo_t *, uinfo)), @@ -939,7 +936,7 @@ TRACE_EVENT(sys_rt_sigqueueinfo, ) #endif #ifndef OVERRIDE_sys_chown16 -TRACE_EVENT(sys_chown16, +SC_TRACE_EVENT(sys_chown16, TP_PROTO(const char * filename, old_uid_t user, old_gid_t group), TP_ARGS(filename, user, group), TP_STRUCT__entry(__string(filename, filename) __field(old_uid_t, user) __field(old_gid_t, group)), @@ -948,7 +945,7 @@ TRACE_EVENT(sys_chown16, ) #endif #ifndef OVERRIDE_sys_lchown -TRACE_EVENT(sys_lchown, +SC_TRACE_EVENT(sys_lchown, TP_PROTO(const char * filename, uid_t user, gid_t group), TP_ARGS(filename, user, group), TP_STRUCT__entry(__string(filename, filename) __field(uid_t, user) __field(gid_t, group)), @@ -957,7 +954,7 @@ TRACE_EVENT(sys_lchown, ) #endif #ifndef OVERRIDE_sys_getresuid -TRACE_EVENT(sys_getresuid, +SC_TRACE_EVENT(sys_getresuid, TP_PROTO(uid_t * ruid, uid_t * euid, uid_t * suid), TP_ARGS(ruid, euid, suid), TP_STRUCT__entry(__field_hex(uid_t *, ruid) __field_hex(uid_t *, euid) __field_hex(uid_t *, suid)), @@ -966,7 +963,7 @@ TRACE_EVENT(sys_getresuid, ) #endif #ifndef OVERRIDE_sys_getresgid -TRACE_EVENT(sys_getresgid, +SC_TRACE_EVENT(sys_getresgid, TP_PROTO(gid_t * rgid, gid_t * egid, gid_t * sgid), TP_ARGS(rgid, egid, sgid), TP_STRUCT__entry(__field_hex(gid_t *, rgid) __field_hex(gid_t *, egid) __field_hex(gid_t *, sgid)), @@ -975,7 +972,7 @@ TRACE_EVENT(sys_getresgid, ) #endif #ifndef OVERRIDE_sys_chown -TRACE_EVENT(sys_chown, +SC_TRACE_EVENT(sys_chown, TP_PROTO(const char * filename, uid_t user, gid_t group), TP_ARGS(filename, user, group), TP_STRUCT__entry(__string(filename, filename) __field(uid_t, user) __field(gid_t, group)), @@ -984,7 +981,7 @@ TRACE_EVENT(sys_chown, ) #endif #ifndef OVERRIDE_sys_mincore -TRACE_EVENT(sys_mincore, +SC_TRACE_EVENT(sys_mincore, TP_PROTO(unsigned long start, size_t len, unsigned char * vec), TP_ARGS(start, len, vec), TP_STRUCT__entry(__field(unsigned long, start) __field(size_t, len) __field_hex(unsigned char *, vec)), @@ -993,7 +990,7 @@ TRACE_EVENT(sys_mincore, ) #endif #ifndef OVERRIDE_sys_getdents64 -TRACE_EVENT(sys_getdents64, +SC_TRACE_EVENT(sys_getdents64, TP_PROTO(unsigned int fd, struct linux_dirent64 * dirent, unsigned int count), TP_ARGS(fd, dirent, count), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(struct linux_dirent64 *, dirent) __field(unsigned int, count)), @@ -1002,7 +999,7 @@ TRACE_EVENT(sys_getdents64, ) #endif #ifndef OVERRIDE_sys_listxattr -TRACE_EVENT(sys_listxattr, +SC_TRACE_EVENT(sys_listxattr, TP_PROTO(const char * pathname, char * list, size_t size), TP_ARGS(pathname, list, size), TP_STRUCT__entry(__string(pathname, pathname) __field_hex(char *, list) __field(size_t, size)), @@ -1011,7 +1008,7 @@ TRACE_EVENT(sys_listxattr, ) #endif #ifndef OVERRIDE_sys_llistxattr -TRACE_EVENT(sys_llistxattr, +SC_TRACE_EVENT(sys_llistxattr, TP_PROTO(const char * pathname, char * list, size_t size), TP_ARGS(pathname, list, size), TP_STRUCT__entry(__string(pathname, pathname) __field_hex(char *, list) __field(size_t, size)), @@ -1020,7 +1017,7 @@ TRACE_EVENT(sys_llistxattr, ) #endif #ifndef OVERRIDE_sys_flistxattr -TRACE_EVENT(sys_flistxattr, +SC_TRACE_EVENT(sys_flistxattr, TP_PROTO(int fd, char * list, size_t size), TP_ARGS(fd, list, size), TP_STRUCT__entry(__field(int, fd) __field_hex(char *, list) __field(size_t, size)), @@ -1029,7 +1026,7 @@ TRACE_EVENT(sys_flistxattr, ) #endif #ifndef OVERRIDE_sys_sched_setaffinity -TRACE_EVENT(sys_sched_setaffinity, +SC_TRACE_EVENT(sys_sched_setaffinity, TP_PROTO(pid_t pid, unsigned int len, unsigned long * user_mask_ptr), TP_ARGS(pid, len, user_mask_ptr), TP_STRUCT__entry(__field(pid_t, pid) __field(unsigned int, len) __field_hex(unsigned long *, user_mask_ptr)), @@ -1038,7 +1035,7 @@ TRACE_EVENT(sys_sched_setaffinity, ) #endif #ifndef OVERRIDE_sys_sched_getaffinity -TRACE_EVENT(sys_sched_getaffinity, +SC_TRACE_EVENT(sys_sched_getaffinity, TP_PROTO(pid_t pid, unsigned int len, unsigned long * user_mask_ptr), TP_ARGS(pid, len, user_mask_ptr), TP_STRUCT__entry(__field(pid_t, pid) __field(unsigned int, len) __field_hex(unsigned long *, user_mask_ptr)), @@ -1047,7 +1044,7 @@ TRACE_EVENT(sys_sched_getaffinity, ) #endif #ifndef OVERRIDE_sys_io_submit -TRACE_EVENT(sys_io_submit, +SC_TRACE_EVENT(sys_io_submit, TP_PROTO(aio_context_t ctx_id, long nr, struct iocb * * iocbpp), TP_ARGS(ctx_id, nr, iocbpp), TP_STRUCT__entry(__field(aio_context_t, ctx_id) __field(long, nr) __field_hex(struct iocb * *, iocbpp)), @@ -1056,7 +1053,7 @@ TRACE_EVENT(sys_io_submit, ) #endif #ifndef OVERRIDE_sys_io_cancel -TRACE_EVENT(sys_io_cancel, +SC_TRACE_EVENT(sys_io_cancel, TP_PROTO(aio_context_t ctx_id, struct iocb * iocb, struct io_event * result), TP_ARGS(ctx_id, iocb, result), TP_STRUCT__entry(__field(aio_context_t, ctx_id) __field_hex(struct iocb *, iocb) __field_hex(struct io_event *, result)), @@ -1065,7 +1062,7 @@ TRACE_EVENT(sys_io_cancel, ) #endif #ifndef OVERRIDE_sys_timer_create -TRACE_EVENT(sys_timer_create, +SC_TRACE_EVENT(sys_timer_create, TP_PROTO(const clockid_t which_clock, struct sigevent * timer_event_spec, timer_t * created_timer_id), TP_ARGS(which_clock, timer_event_spec, created_timer_id), TP_STRUCT__entry(__field(const clockid_t, which_clock) __field_hex(struct sigevent *, timer_event_spec) __field_hex(timer_t *, created_timer_id)), @@ -1074,7 +1071,7 @@ TRACE_EVENT(sys_timer_create, ) #endif #ifndef OVERRIDE_sys_statfs64 -TRACE_EVENT(sys_statfs64, +SC_TRACE_EVENT(sys_statfs64, TP_PROTO(const char * pathname, size_t sz, struct statfs64 * buf), TP_ARGS(pathname, sz, buf), TP_STRUCT__entry(__string(pathname, pathname) __field(size_t, sz) __field_hex(struct statfs64 *, buf)), @@ -1083,7 +1080,7 @@ TRACE_EVENT(sys_statfs64, ) #endif #ifndef OVERRIDE_sys_fstatfs64 -TRACE_EVENT(sys_fstatfs64, +SC_TRACE_EVENT(sys_fstatfs64, TP_PROTO(unsigned int fd, size_t sz, struct statfs64 * buf), TP_ARGS(fd, sz, buf), TP_STRUCT__entry(__field(unsigned int, fd) __field(size_t, sz) __field_hex(struct statfs64 *, buf)), @@ -1092,7 +1089,7 @@ TRACE_EVENT(sys_fstatfs64, ) #endif #ifndef OVERRIDE_sys_mq_getsetattr -TRACE_EVENT(sys_mq_getsetattr, +SC_TRACE_EVENT(sys_mq_getsetattr, TP_PROTO(mqd_t mqdes, const struct mq_attr * u_mqstat, struct mq_attr * u_omqstat), TP_ARGS(mqdes, u_mqstat, u_omqstat), TP_STRUCT__entry(__field(mqd_t, mqdes) __field_hex(const struct mq_attr *, u_mqstat) __field_hex(struct mq_attr *, u_omqstat)), @@ -1101,7 +1098,7 @@ TRACE_EVENT(sys_mq_getsetattr, ) #endif #ifndef OVERRIDE_sys_inotify_add_watch -TRACE_EVENT(sys_inotify_add_watch, +SC_TRACE_EVENT(sys_inotify_add_watch, TP_PROTO(int fd, const char * pathname, u32 mask), TP_ARGS(fd, pathname, mask), TP_STRUCT__entry(__field(int, fd) __string(pathname, pathname) __field(u32, mask)), @@ -1110,7 +1107,7 @@ TRACE_EVENT(sys_inotify_add_watch, ) #endif #ifndef OVERRIDE_sys_mkdirat -TRACE_EVENT(sys_mkdirat, +SC_TRACE_EVENT(sys_mkdirat, TP_PROTO(int dfd, const char * pathname, int mode), TP_ARGS(dfd, pathname, mode), TP_STRUCT__entry(__field(int, dfd) __string(pathname, pathname) __field(int, mode)), @@ -1119,7 +1116,7 @@ TRACE_EVENT(sys_mkdirat, ) #endif #ifndef OVERRIDE_sys_futimesat -TRACE_EVENT(sys_futimesat, +SC_TRACE_EVENT(sys_futimesat, TP_PROTO(int dfd, const char * filename, struct timeval * utimes), TP_ARGS(dfd, filename, utimes), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field_hex(struct timeval *, utimes)), @@ -1128,7 +1125,7 @@ TRACE_EVENT(sys_futimesat, ) #endif #ifndef OVERRIDE_sys_unlinkat -TRACE_EVENT(sys_unlinkat, +SC_TRACE_EVENT(sys_unlinkat, TP_PROTO(int dfd, const char * pathname, int flag), TP_ARGS(dfd, pathname, flag), TP_STRUCT__entry(__field(int, dfd) __string(pathname, pathname) __field(int, flag)), @@ -1137,7 +1134,7 @@ TRACE_EVENT(sys_unlinkat, ) #endif #ifndef OVERRIDE_sys_symlinkat -TRACE_EVENT(sys_symlinkat, +SC_TRACE_EVENT(sys_symlinkat, TP_PROTO(const char * oldname, int newdfd, const char * newname), TP_ARGS(oldname, newdfd, newname), TP_STRUCT__entry(__string(oldname, oldname) __field(int, newdfd) __string(newname, newname)), @@ -1146,7 +1143,7 @@ TRACE_EVENT(sys_symlinkat, ) #endif #ifndef OVERRIDE_sys_fchmodat -TRACE_EVENT(sys_fchmodat, +SC_TRACE_EVENT(sys_fchmodat, TP_PROTO(int dfd, const char * filename, mode_t mode), TP_ARGS(dfd, filename, mode), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(mode_t, mode)), @@ -1155,7 +1152,7 @@ TRACE_EVENT(sys_fchmodat, ) #endif #ifndef OVERRIDE_sys_faccessat -TRACE_EVENT(sys_faccessat, +SC_TRACE_EVENT(sys_faccessat, TP_PROTO(int dfd, const char * filename, int mode), TP_ARGS(dfd, filename, mode), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(int, mode)), @@ -1164,7 +1161,7 @@ TRACE_EVENT(sys_faccessat, ) #endif #ifndef OVERRIDE_sys_get_robust_list -TRACE_EVENT(sys_get_robust_list, +SC_TRACE_EVENT(sys_get_robust_list, TP_PROTO(int pid, struct robust_list_head * * head_ptr, size_t * len_ptr), TP_ARGS(pid, head_ptr, len_ptr), TP_STRUCT__entry(__field(int, pid) __field_hex(struct robust_list_head * *, head_ptr) __field_hex(size_t *, len_ptr)), @@ -1173,7 +1170,7 @@ TRACE_EVENT(sys_get_robust_list, ) #endif #ifndef OVERRIDE_sys_getcpu -TRACE_EVENT(sys_getcpu, +SC_TRACE_EVENT(sys_getcpu, TP_PROTO(unsigned * cpup, unsigned * nodep, struct getcpu_cache * unused), TP_ARGS(cpup, nodep, unused), TP_STRUCT__entry(__field_hex(unsigned *, cpup) __field_hex(unsigned *, nodep) __field_hex(struct getcpu_cache *, unused)), @@ -1182,7 +1179,7 @@ TRACE_EVENT(sys_getcpu, ) #endif #ifndef OVERRIDE_sys_signalfd -TRACE_EVENT(sys_signalfd, +SC_TRACE_EVENT(sys_signalfd, TP_PROTO(int ufd, sigset_t * user_mask, size_t sizemask), TP_ARGS(ufd, user_mask, sizemask), TP_STRUCT__entry(__field(int, ufd) __field_hex(sigset_t *, user_mask) __field(size_t, sizemask)), @@ -1191,7 +1188,7 @@ TRACE_EVENT(sys_signalfd, ) #endif #ifndef OVERRIDE_sys_reboot -TRACE_EVENT(sys_reboot, +SC_TRACE_EVENT(sys_reboot, TP_PROTO(int magic1, int magic2, unsigned int cmd, void * arg), TP_ARGS(magic1, magic2, cmd, arg), TP_STRUCT__entry(__field(int, magic1) __field(int, magic2) __field(unsigned int, cmd) __field_hex(void *, arg)), @@ -1200,7 +1197,7 @@ TRACE_EVENT(sys_reboot, ) #endif #ifndef OVERRIDE_sys_wait4 -TRACE_EVENT(sys_wait4, +SC_TRACE_EVENT(sys_wait4, TP_PROTO(pid_t upid, int * stat_addr, int options, struct rusage * ru), TP_ARGS(upid, stat_addr, options, ru), TP_STRUCT__entry(__field(pid_t, upid) __field_hex(int *, stat_addr) __field(int, options) __field_hex(struct rusage *, ru)), @@ -1209,7 +1206,7 @@ TRACE_EVENT(sys_wait4, ) #endif #ifndef OVERRIDE_sys_quotactl -TRACE_EVENT(sys_quotactl, +SC_TRACE_EVENT(sys_quotactl, TP_PROTO(unsigned int cmd, const char * special, qid_t id, void * addr), TP_ARGS(cmd, special, id, addr), TP_STRUCT__entry(__field(unsigned int, cmd) __field_hex(const char *, special) __field(qid_t, id) __field_hex(void *, addr)), @@ -1218,7 +1215,7 @@ TRACE_EVENT(sys_quotactl, ) #endif #ifndef OVERRIDE_sys_rt_sigaction -TRACE_EVENT(sys_rt_sigaction, +SC_TRACE_EVENT(sys_rt_sigaction, TP_PROTO(int sig, const struct sigaction * act, struct sigaction * oact, size_t sigsetsize), TP_ARGS(sig, act, oact, sigsetsize), TP_STRUCT__entry(__field(int, sig) __field_hex(const struct sigaction *, act) __field_hex(struct sigaction *, oact) __field(size_t, sigsetsize)), @@ -1227,7 +1224,7 @@ TRACE_EVENT(sys_rt_sigaction, ) #endif #ifndef OVERRIDE_sys_rt_sigprocmask -TRACE_EVENT(sys_rt_sigprocmask, +SC_TRACE_EVENT(sys_rt_sigprocmask, TP_PROTO(int how, sigset_t * nset, sigset_t * oset, size_t sigsetsize), TP_ARGS(how, nset, oset, sigsetsize), TP_STRUCT__entry(__field(int, how) __field_hex(sigset_t *, nset) __field_hex(sigset_t *, oset) __field(size_t, sigsetsize)), @@ -1236,7 +1233,7 @@ TRACE_EVENT(sys_rt_sigprocmask, ) #endif #ifndef OVERRIDE_sys_rt_sigtimedwait -TRACE_EVENT(sys_rt_sigtimedwait, +SC_TRACE_EVENT(sys_rt_sigtimedwait, TP_PROTO(const sigset_t * uthese, siginfo_t * uinfo, const struct timespec * uts, size_t sigsetsize), TP_ARGS(uthese, uinfo, uts, sigsetsize), TP_STRUCT__entry(__field_hex(const sigset_t *, uthese) __field_hex(siginfo_t *, uinfo) __field_hex(const struct timespec *, uts) __field(size_t, sigsetsize)), @@ -1245,7 +1242,7 @@ TRACE_EVENT(sys_rt_sigtimedwait, ) #endif #ifndef OVERRIDE_sys_sendfile -TRACE_EVENT(sys_sendfile, +SC_TRACE_EVENT(sys_sendfile, TP_PROTO(int out_fd, int in_fd, off_t * offset, size_t count), TP_ARGS(out_fd, in_fd, offset, count), TP_STRUCT__entry(__field(int, out_fd) __field(int, in_fd) __field_hex(off_t *, offset) __field(size_t, count)), @@ -1254,7 +1251,7 @@ TRACE_EVENT(sys_sendfile, ) #endif #ifndef OVERRIDE_sys_getxattr -TRACE_EVENT(sys_getxattr, +SC_TRACE_EVENT(sys_getxattr, TP_PROTO(const char * pathname, const char * name, void * value, size_t size), TP_ARGS(pathname, name, value, size), TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(void *, value) __field(size_t, size)), @@ -1263,7 +1260,7 @@ TRACE_EVENT(sys_getxattr, ) #endif #ifndef OVERRIDE_sys_lgetxattr -TRACE_EVENT(sys_lgetxattr, +SC_TRACE_EVENT(sys_lgetxattr, TP_PROTO(const char * pathname, const char * name, void * value, size_t size), TP_ARGS(pathname, name, value, size), TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(void *, value) __field(size_t, size)), @@ -1272,7 +1269,7 @@ TRACE_EVENT(sys_lgetxattr, ) #endif #ifndef OVERRIDE_sys_fgetxattr -TRACE_EVENT(sys_fgetxattr, +SC_TRACE_EVENT(sys_fgetxattr, TP_PROTO(int fd, const char * name, void * value, size_t size), TP_ARGS(fd, name, value, size), TP_STRUCT__entry(__field(int, fd) __string(name, name) __field_hex(void *, value) __field(size_t, size)), @@ -1281,7 +1278,7 @@ TRACE_EVENT(sys_fgetxattr, ) #endif #ifndef OVERRIDE_sys_sendfile64 -TRACE_EVENT(sys_sendfile64, +SC_TRACE_EVENT(sys_sendfile64, TP_PROTO(int out_fd, int in_fd, loff_t * offset, size_t count), TP_ARGS(out_fd, in_fd, offset, count), TP_STRUCT__entry(__field(int, out_fd) __field(int, in_fd) __field_hex(loff_t *, offset) __field(size_t, count)), @@ -1290,7 +1287,7 @@ TRACE_EVENT(sys_sendfile64, ) #endif #ifndef OVERRIDE_sys_epoll_ctl -TRACE_EVENT(sys_epoll_ctl, +SC_TRACE_EVENT(sys_epoll_ctl, TP_PROTO(int epfd, int op, int fd, struct epoll_event * event), TP_ARGS(epfd, op, fd, event), TP_STRUCT__entry(__field(int, epfd) __field(int, op) __field(int, fd) __field_hex(struct epoll_event *, event)), @@ -1299,7 +1296,7 @@ TRACE_EVENT(sys_epoll_ctl, ) #endif #ifndef OVERRIDE_sys_epoll_wait -TRACE_EVENT(sys_epoll_wait, +SC_TRACE_EVENT(sys_epoll_wait, TP_PROTO(int epfd, struct epoll_event * events, int maxevents, int timeout), TP_ARGS(epfd, events, maxevents, timeout), TP_STRUCT__entry(__field(int, epfd) __field_hex(struct epoll_event *, events) __field(int, maxevents) __field(int, timeout)), @@ -1308,7 +1305,7 @@ TRACE_EVENT(sys_epoll_wait, ) #endif #ifndef OVERRIDE_sys_timer_settime -TRACE_EVENT(sys_timer_settime, +SC_TRACE_EVENT(sys_timer_settime, TP_PROTO(timer_t timer_id, int flags, const struct itimerspec * new_setting, struct itimerspec * old_setting), TP_ARGS(timer_id, flags, new_setting, old_setting), TP_STRUCT__entry(__field(timer_t, timer_id) __field(int, flags) __field_hex(const struct itimerspec *, new_setting) __field_hex(struct itimerspec *, old_setting)), @@ -1317,7 +1314,7 @@ TRACE_EVENT(sys_timer_settime, ) #endif #ifndef OVERRIDE_sys_clock_nanosleep -TRACE_EVENT(sys_clock_nanosleep, +SC_TRACE_EVENT(sys_clock_nanosleep, TP_PROTO(const clockid_t which_clock, int flags, const struct timespec * rqtp, struct timespec * rmtp), TP_ARGS(which_clock, flags, rqtp, rmtp), TP_STRUCT__entry(__field(const clockid_t, which_clock) __field(int, flags) __field_hex(const struct timespec *, rqtp) __field_hex(struct timespec *, rmtp)), @@ -1326,7 +1323,7 @@ TRACE_EVENT(sys_clock_nanosleep, ) #endif #ifndef OVERRIDE_sys_mq_open -TRACE_EVENT(sys_mq_open, +SC_TRACE_EVENT(sys_mq_open, TP_PROTO(const char * u_name, int oflag, mode_t mode, struct mq_attr * u_attr), TP_ARGS(u_name, oflag, mode, u_attr), TP_STRUCT__entry(__string(u_name, u_name) __field(int, oflag) __field(mode_t, mode) __field_hex(struct mq_attr *, u_attr)), @@ -1335,7 +1332,7 @@ TRACE_EVENT(sys_mq_open, ) #endif #ifndef OVERRIDE_sys_kexec_load -TRACE_EVENT(sys_kexec_load, +SC_TRACE_EVENT(sys_kexec_load, TP_PROTO(unsigned long entry, unsigned long nr_segments, struct kexec_segment * segments, unsigned long flags), TP_ARGS(entry, nr_segments, segments, flags), TP_STRUCT__entry(__field(unsigned long, entry) __field(unsigned long, nr_segments) __field_hex(struct kexec_segment *, segments) __field(unsigned long, flags)), @@ -1344,7 +1341,7 @@ TRACE_EVENT(sys_kexec_load, ) #endif #ifndef OVERRIDE_sys_request_key -TRACE_EVENT(sys_request_key, +SC_TRACE_EVENT(sys_request_key, TP_PROTO(const char * _type, const char * _description, const char * _callout_info, key_serial_t destringid), TP_ARGS(_type, _description, _callout_info, destringid), TP_STRUCT__entry(__field_hex(const char *, _type) __field_hex(const char *, _description) __field_hex(const char *, _callout_info) __field(key_serial_t, destringid)), @@ -1353,7 +1350,7 @@ TRACE_EVENT(sys_request_key, ) #endif #ifndef OVERRIDE_sys_openat -TRACE_EVENT(sys_openat, +SC_TRACE_EVENT(sys_openat, TP_PROTO(int dfd, const char * filename, int flags, int mode), TP_ARGS(dfd, filename, flags, mode), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(int, flags) __field(int, mode)), @@ -1362,7 +1359,7 @@ TRACE_EVENT(sys_openat, ) #endif #ifndef OVERRIDE_sys_mknodat -TRACE_EVENT(sys_mknodat, +SC_TRACE_EVENT(sys_mknodat, TP_PROTO(int dfd, const char * filename, int mode, unsigned dev), TP_ARGS(dfd, filename, mode, dev), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(int, mode) __field(unsigned, dev)), @@ -1371,7 +1368,7 @@ TRACE_EVENT(sys_mknodat, ) #endif #ifndef OVERRIDE_sys_fstatat64 -TRACE_EVENT(sys_fstatat64, +SC_TRACE_EVENT(sys_fstatat64, TP_PROTO(int dfd, const char * filename, struct stat64 * statbuf, int flag), TP_ARGS(dfd, filename, statbuf, flag), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field_hex(struct stat64 *, statbuf) __field(int, flag)), @@ -1380,7 +1377,7 @@ TRACE_EVENT(sys_fstatat64, ) #endif #ifndef OVERRIDE_sys_renameat -TRACE_EVENT(sys_renameat, +SC_TRACE_EVENT(sys_renameat, TP_PROTO(int olddfd, const char * oldname, int newdfd, const char * newname), TP_ARGS(olddfd, oldname, newdfd, newname), TP_STRUCT__entry(__field(int, olddfd) __string(oldname, oldname) __field(int, newdfd) __string(newname, newname)), @@ -1389,7 +1386,7 @@ TRACE_EVENT(sys_renameat, ) #endif #ifndef OVERRIDE_sys_readlinkat -TRACE_EVENT(sys_readlinkat, +SC_TRACE_EVENT(sys_readlinkat, TP_PROTO(int dfd, const char * pathname, char * buf, int bufsiz), TP_ARGS(dfd, pathname, buf, bufsiz), TP_STRUCT__entry(__field(int, dfd) __string(pathname, pathname) __field_hex(char *, buf) __field(int, bufsiz)), @@ -1398,7 +1395,7 @@ TRACE_EVENT(sys_readlinkat, ) #endif #ifndef OVERRIDE_sys_vmsplice -TRACE_EVENT(sys_vmsplice, +SC_TRACE_EVENT(sys_vmsplice, TP_PROTO(int fd, const struct iovec * iov, unsigned long nr_segs, unsigned int flags), TP_ARGS(fd, iov, nr_segs, flags), TP_STRUCT__entry(__field(int, fd) __field_hex(const struct iovec *, iov) __field(unsigned long, nr_segs) __field(unsigned int, flags)), @@ -1407,7 +1404,7 @@ TRACE_EVENT(sys_vmsplice, ) #endif #ifndef OVERRIDE_sys_utimensat -TRACE_EVENT(sys_utimensat, +SC_TRACE_EVENT(sys_utimensat, TP_PROTO(int dfd, const char * filename, struct timespec * utimes, int flags), TP_ARGS(dfd, filename, utimes, flags), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field_hex(struct timespec *, utimes) __field(int, flags)), @@ -1416,7 +1413,7 @@ TRACE_EVENT(sys_utimensat, ) #endif #ifndef OVERRIDE_sys_timerfd_settime -TRACE_EVENT(sys_timerfd_settime, +SC_TRACE_EVENT(sys_timerfd_settime, TP_PROTO(int ufd, int flags, const struct itimerspec * utmr, struct itimerspec * otmr), TP_ARGS(ufd, flags, utmr, otmr), TP_STRUCT__entry(__field(int, ufd) __field(int, flags) __field_hex(const struct itimerspec *, utmr) __field_hex(struct itimerspec *, otmr)), @@ -1425,7 +1422,7 @@ TRACE_EVENT(sys_timerfd_settime, ) #endif #ifndef OVERRIDE_sys_signalfd4 -TRACE_EVENT(sys_signalfd4, +SC_TRACE_EVENT(sys_signalfd4, TP_PROTO(int ufd, sigset_t * user_mask, size_t sizemask, int flags), TP_ARGS(ufd, user_mask, sizemask, flags), TP_STRUCT__entry(__field(int, ufd) __field_hex(sigset_t *, user_mask) __field(size_t, sizemask) __field(int, flags)), @@ -1434,7 +1431,7 @@ TRACE_EVENT(sys_signalfd4, ) #endif #ifndef OVERRIDE_sys_rt_tgsigqueueinfo -TRACE_EVENT(sys_rt_tgsigqueueinfo, +SC_TRACE_EVENT(sys_rt_tgsigqueueinfo, TP_PROTO(pid_t tgid, pid_t pid, int sig, siginfo_t * uinfo), TP_ARGS(tgid, pid, sig, uinfo), TP_STRUCT__entry(__field(pid_t, tgid) __field(pid_t, pid) __field(int, sig) __field_hex(siginfo_t *, uinfo)), @@ -1443,7 +1440,7 @@ TRACE_EVENT(sys_rt_tgsigqueueinfo, ) #endif #ifndef OVERRIDE_sys_prlimit64 -TRACE_EVENT(sys_prlimit64, +SC_TRACE_EVENT(sys_prlimit64, TP_PROTO(pid_t pid, unsigned int resource, const struct rlimit64 * new_rlim, struct rlimit64 * old_rlim), TP_ARGS(pid, resource, new_rlim, old_rlim), TP_STRUCT__entry(__field(pid_t, pid) __field(unsigned int, resource) __field_hex(const struct rlimit64 *, new_rlim) __field_hex(struct rlimit64 *, old_rlim)), @@ -1452,7 +1449,7 @@ TRACE_EVENT(sys_prlimit64, ) #endif #ifndef OVERRIDE_sys_sendmmsg -TRACE_EVENT(sys_sendmmsg, +SC_TRACE_EVENT(sys_sendmmsg, TP_PROTO(int fd, struct mmsghdr * mmsg, unsigned int vlen, unsigned int flags), TP_ARGS(fd, mmsg, vlen, flags), TP_STRUCT__entry(__field(int, fd) __field_hex(struct mmsghdr *, mmsg) __field(unsigned int, vlen) __field(unsigned int, flags)), @@ -1461,7 +1458,7 @@ TRACE_EVENT(sys_sendmmsg, ) #endif #ifndef OVERRIDE_sys_mount -TRACE_EVENT(sys_mount, +SC_TRACE_EVENT(sys_mount, TP_PROTO(char * dev_name, char * dir_name, char * type, unsigned long flags, void * data), TP_ARGS(dev_name, dir_name, type, flags, data), TP_STRUCT__entry(__string(dev_name, dev_name) __string(dir_name, dir_name) __field_hex(char *, type) __field(unsigned long, flags) __field_hex(void *, data)), @@ -1470,7 +1467,7 @@ TRACE_EVENT(sys_mount, ) #endif #ifndef OVERRIDE_sys_llseek -TRACE_EVENT(sys_llseek, +SC_TRACE_EVENT(sys_llseek, TP_PROTO(unsigned int fd, unsigned long offset_high, unsigned long offset_low, loff_t * result, unsigned int origin), TP_ARGS(fd, offset_high, offset_low, result, origin), TP_STRUCT__entry(__field(unsigned int, fd) __field(unsigned long, offset_high) __field(unsigned long, offset_low) __field_hex(loff_t *, result) __field(unsigned int, origin)), @@ -1479,7 +1476,7 @@ TRACE_EVENT(sys_llseek, ) #endif #ifndef OVERRIDE_sys_select -TRACE_EVENT(sys_select, +SC_TRACE_EVENT(sys_select, TP_PROTO(int n, fd_set * inp, fd_set * outp, fd_set * exp, struct timeval * tvp), TP_ARGS(n, inp, outp, exp, tvp), TP_STRUCT__entry(__field(int, n) __field_hex(fd_set *, inp) __field_hex(fd_set *, outp) __field_hex(fd_set *, exp) __field_hex(struct timeval *, tvp)), @@ -1488,7 +1485,7 @@ TRACE_EVENT(sys_select, ) #endif #ifndef OVERRIDE_sys_setxattr -TRACE_EVENT(sys_setxattr, +SC_TRACE_EVENT(sys_setxattr, TP_PROTO(const char * pathname, const char * name, const void * value, size_t size, int flags), TP_ARGS(pathname, name, value, size, flags), TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)), @@ -1497,7 +1494,7 @@ TRACE_EVENT(sys_setxattr, ) #endif #ifndef OVERRIDE_sys_lsetxattr -TRACE_EVENT(sys_lsetxattr, +SC_TRACE_EVENT(sys_lsetxattr, TP_PROTO(const char * pathname, const char * name, const void * value, size_t size, int flags), TP_ARGS(pathname, name, value, size, flags), TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)), @@ -1506,7 +1503,7 @@ TRACE_EVENT(sys_lsetxattr, ) #endif #ifndef OVERRIDE_sys_fsetxattr -TRACE_EVENT(sys_fsetxattr, +SC_TRACE_EVENT(sys_fsetxattr, TP_PROTO(int fd, const char * name, const void * value, size_t size, int flags), TP_ARGS(fd, name, value, size, flags), TP_STRUCT__entry(__field(int, fd) __string(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)), @@ -1515,7 +1512,7 @@ TRACE_EVENT(sys_fsetxattr, ) #endif #ifndef OVERRIDE_sys_io_getevents -TRACE_EVENT(sys_io_getevents, +SC_TRACE_EVENT(sys_io_getevents, TP_PROTO(aio_context_t ctx_id, long min_nr, long nr, struct io_event * events, struct timespec * timeout), TP_ARGS(ctx_id, min_nr, nr, events, timeout), TP_STRUCT__entry(__field(aio_context_t, ctx_id) __field(long, min_nr) __field(long, nr) __field_hex(struct io_event *, events) __field_hex(struct timespec *, timeout)), @@ -1524,7 +1521,7 @@ TRACE_EVENT(sys_io_getevents, ) #endif #ifndef OVERRIDE_sys_mq_timedsend -TRACE_EVENT(sys_mq_timedsend, +SC_TRACE_EVENT(sys_mq_timedsend, TP_PROTO(mqd_t mqdes, const char * u_msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec * u_abs_timeout), TP_ARGS(mqdes, u_msg_ptr, msg_len, msg_prio, u_abs_timeout), TP_STRUCT__entry(__field(mqd_t, mqdes) __field_hex(const char *, u_msg_ptr) __field(size_t, msg_len) __field(unsigned int, msg_prio) __field_hex(const struct timespec *, u_abs_timeout)), @@ -1533,7 +1530,7 @@ TRACE_EVENT(sys_mq_timedsend, ) #endif #ifndef OVERRIDE_sys_mq_timedreceive -TRACE_EVENT(sys_mq_timedreceive, +SC_TRACE_EVENT(sys_mq_timedreceive, TP_PROTO(mqd_t mqdes, char * u_msg_ptr, size_t msg_len, unsigned int * u_msg_prio, const struct timespec * u_abs_timeout), TP_ARGS(mqdes, u_msg_ptr, msg_len, u_msg_prio, u_abs_timeout), TP_STRUCT__entry(__field(mqd_t, mqdes) __field_hex(char *, u_msg_ptr) __field(size_t, msg_len) __field_hex(unsigned int *, u_msg_prio) __field_hex(const struct timespec *, u_abs_timeout)), @@ -1542,7 +1539,7 @@ TRACE_EVENT(sys_mq_timedreceive, ) #endif #ifndef OVERRIDE_sys_waitid -TRACE_EVENT(sys_waitid, +SC_TRACE_EVENT(sys_waitid, TP_PROTO(int which, pid_t upid, struct siginfo * infop, int options, struct rusage * ru), TP_ARGS(which, upid, infop, options, ru), TP_STRUCT__entry(__field(int, which) __field(pid_t, upid) __field_hex(struct siginfo *, infop) __field(int, options) __field_hex(struct rusage *, ru)), @@ -1551,7 +1548,7 @@ TRACE_EVENT(sys_waitid, ) #endif #ifndef OVERRIDE_sys_add_key -TRACE_EVENT(sys_add_key, +SC_TRACE_EVENT(sys_add_key, TP_PROTO(const char * _type, const char * _description, const void * _payload, size_t plen, key_serial_t ringid), TP_ARGS(_type, _description, _payload, plen, ringid), TP_STRUCT__entry(__field_hex(const char *, _type) __field_hex(const char *, _description) __field_hex(const void *, _payload) __field(size_t, plen) __field(key_serial_t, ringid)), @@ -1560,7 +1557,7 @@ TRACE_EVENT(sys_add_key, ) #endif #ifndef OVERRIDE_sys_fchownat -TRACE_EVENT(sys_fchownat, +SC_TRACE_EVENT(sys_fchownat, TP_PROTO(int dfd, const char * filename, uid_t user, gid_t group, int flag), TP_ARGS(dfd, filename, user, group, flag), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(uid_t, user) __field(gid_t, group) __field(int, flag)), @@ -1569,7 +1566,7 @@ TRACE_EVENT(sys_fchownat, ) #endif #ifndef OVERRIDE_sys_linkat -TRACE_EVENT(sys_linkat, +SC_TRACE_EVENT(sys_linkat, TP_PROTO(int olddfd, const char * oldname, int newdfd, const char * newname, int flags), TP_ARGS(olddfd, oldname, newdfd, newname, flags), TP_STRUCT__entry(__field(int, olddfd) __string(oldname, oldname) __field(int, newdfd) __string(newname, newname) __field(int, flags)), @@ -1578,7 +1575,7 @@ TRACE_EVENT(sys_linkat, ) #endif #ifndef OVERRIDE_sys_ppoll -TRACE_EVENT(sys_ppoll, +SC_TRACE_EVENT(sys_ppoll, TP_PROTO(struct pollfd * ufds, unsigned int nfds, struct timespec * tsp, const sigset_t * sigmask, size_t sigsetsize), TP_ARGS(ufds, nfds, tsp, sigmask, sigsetsize), TP_STRUCT__entry(__field_hex(struct pollfd *, ufds) __field(unsigned int, nfds) __field_hex(struct timespec *, tsp) __field_hex(const sigset_t *, sigmask) __field(size_t, sigsetsize)), @@ -1587,7 +1584,7 @@ TRACE_EVENT(sys_ppoll, ) #endif #ifndef OVERRIDE_sys_preadv -TRACE_EVENT(sys_preadv, +SC_TRACE_EVENT(sys_preadv, TP_PROTO(unsigned long fd, const struct iovec * vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h), TP_ARGS(fd, vec, vlen, pos_l, pos_h), TP_STRUCT__entry(__field(unsigned long, fd) __field_hex(const struct iovec *, vec) __field(unsigned long, vlen) __field(unsigned long, pos_l) __field(unsigned long, pos_h)), @@ -1596,7 +1593,7 @@ TRACE_EVENT(sys_preadv, ) #endif #ifndef OVERRIDE_sys_pwritev -TRACE_EVENT(sys_pwritev, +SC_TRACE_EVENT(sys_pwritev, TP_PROTO(unsigned long fd, const struct iovec * vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h), TP_ARGS(fd, vec, vlen, pos_l, pos_h), TP_STRUCT__entry(__field(unsigned long, fd) __field_hex(const struct iovec *, vec) __field(unsigned long, vlen) __field(unsigned long, pos_l) __field(unsigned long, pos_h)), @@ -1605,7 +1602,7 @@ TRACE_EVENT(sys_pwritev, ) #endif #ifndef OVERRIDE_sys_perf_event_open -TRACE_EVENT(sys_perf_event_open, +SC_TRACE_EVENT(sys_perf_event_open, TP_PROTO(struct perf_event_attr * attr_uptr, pid_t pid, int cpu, int group_fd, unsigned long flags), TP_ARGS(attr_uptr, pid, cpu, group_fd, flags), TP_STRUCT__entry(__field_hex(struct perf_event_attr *, attr_uptr) __field(pid_t, pid) __field(int, cpu) __field(int, group_fd) __field(unsigned long, flags)), @@ -1614,7 +1611,7 @@ TRACE_EVENT(sys_perf_event_open, ) #endif #ifndef OVERRIDE_sys_recvmmsg -TRACE_EVENT(sys_recvmmsg, +SC_TRACE_EVENT(sys_recvmmsg, TP_PROTO(int fd, struct mmsghdr * mmsg, unsigned int vlen, unsigned int flags, struct timespec * timeout), TP_ARGS(fd, mmsg, vlen, flags, timeout), TP_STRUCT__entry(__field(int, fd) __field_hex(struct mmsghdr *, mmsg) __field(unsigned int, vlen) __field(unsigned int, flags) __field_hex(struct timespec *, timeout)), @@ -1623,7 +1620,7 @@ TRACE_EVENT(sys_recvmmsg, ) #endif #ifndef OVERRIDE_sys_ipc -TRACE_EVENT(sys_ipc, +SC_TRACE_EVENT(sys_ipc, TP_PROTO(unsigned int call, int first, unsigned long second, unsigned long third, void * ptr, long fifth), TP_ARGS(call, first, second, third, ptr, fifth), TP_STRUCT__entry(__field(unsigned int, call) __field(int, first) __field(unsigned long, second) __field(unsigned long, third) __field_hex(void *, ptr) __field(long, fifth)), @@ -1632,7 +1629,7 @@ TRACE_EVENT(sys_ipc, ) #endif #ifndef OVERRIDE_sys_futex -TRACE_EVENT(sys_futex, +SC_TRACE_EVENT(sys_futex, TP_PROTO(u32 * uaddr, int op, u32 val, struct timespec * utime, u32 * uaddr2, u32 val3), TP_ARGS(uaddr, op, val, utime, uaddr2, val3), TP_STRUCT__entry(__field_hex(u32 *, uaddr) __field(int, op) __field(u32, val) __field_hex(struct timespec *, utime) __field_hex(u32 *, uaddr2) __field(u32, val3)), @@ -1641,7 +1638,7 @@ TRACE_EVENT(sys_futex, ) #endif #ifndef OVERRIDE_sys_pselect6 -TRACE_EVENT(sys_pselect6, +SC_TRACE_EVENT(sys_pselect6, TP_PROTO(int n, fd_set * inp, fd_set * outp, fd_set * exp, struct timespec * tsp, void * sig), TP_ARGS(n, inp, outp, exp, tsp, sig), TP_STRUCT__entry(__field(int, n) __field_hex(fd_set *, inp) __field_hex(fd_set *, outp) __field_hex(fd_set *, exp) __field_hex(struct timespec *, tsp) __field_hex(void *, sig)), @@ -1650,7 +1647,7 @@ TRACE_EVENT(sys_pselect6, ) #endif #ifndef OVERRIDE_sys_splice -TRACE_EVENT(sys_splice, +SC_TRACE_EVENT(sys_splice, TP_PROTO(int fd_in, loff_t * off_in, int fd_out, loff_t * off_out, size_t len, unsigned int flags), TP_ARGS(fd_in, off_in, fd_out, off_out, len, flags), TP_STRUCT__entry(__field(int, fd_in) __field_hex(loff_t *, off_in) __field(int, fd_out) __field_hex(loff_t *, off_out) __field(size_t, len) __field(unsigned int, flags)), @@ -1659,7 +1656,7 @@ TRACE_EVENT(sys_splice, ) #endif #ifndef OVERRIDE_sys_epoll_pwait -TRACE_EVENT(sys_epoll_pwait, +SC_TRACE_EVENT(sys_epoll_pwait, TP_PROTO(int epfd, struct epoll_event * events, int maxevents, int timeout, const sigset_t * sigmask, size_t sigsetsize), TP_ARGS(epfd, events, maxevents, timeout, sigmask, sigsetsize), TP_STRUCT__entry(__field(int, epfd) __field_hex(struct epoll_event *, events) __field(int, maxevents) __field(int, timeout) __field_hex(const sigset_t *, sigmask) __field(size_t, sigsetsize)), diff --git a/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_integers.h b/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_integers.h index b7a76c8d..5752f763 100644 --- a/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_integers.h +++ b/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_integers.h @@ -1,9 +1,6 @@ /* THIS FILE IS AUTO-GENERATED. DO NOT EDIT */ #ifndef CREATE_SYSCALL_TABLE -#undef TRACE_SYSTEM -#define TRACE_SYSTEM syscalls_integers - #if !defined(_TRACE_SYSCALLS_INTEGERS_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_SYSCALLS_INTEGERS_H @@ -11,61 +8,61 @@ #include #include "x86-64-syscalls-3.0.4_integers_override.h" -DECLARE_EVENT_CLASS_NOARGS(syscalls_noargs, +SC_DECLARE_EVENT_CLASS_NOARGS(syscalls_noargs, TP_STRUCT__entry(), TP_fast_assign(), TP_printk() ) #ifndef OVERRIDE_sys_sched_yield -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sched_yield) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sched_yield) #endif #ifndef OVERRIDE_sys_pause -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_pause) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_pause) #endif #ifndef OVERRIDE_sys_getpid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getpid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getpid) #endif #ifndef OVERRIDE_sys_getuid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getuid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getuid) #endif #ifndef OVERRIDE_sys_getgid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getgid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getgid) #endif #ifndef OVERRIDE_sys_geteuid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_geteuid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_geteuid) #endif #ifndef OVERRIDE_sys_getegid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getegid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getegid) #endif #ifndef OVERRIDE_sys_getppid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getppid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getppid) #endif #ifndef OVERRIDE_sys_getpgrp -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getpgrp) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getpgrp) #endif #ifndef OVERRIDE_sys_setsid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_setsid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_setsid) #endif #ifndef OVERRIDE_sys_munlockall -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_munlockall) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_munlockall) #endif #ifndef OVERRIDE_sys_vhangup -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_vhangup) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_vhangup) #endif #ifndef OVERRIDE_sys_sync -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sync) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sync) #endif #ifndef OVERRIDE_sys_gettid -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_gettid) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_gettid) #endif #ifndef OVERRIDE_sys_restart_syscall -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_restart_syscall) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_restart_syscall) #endif #ifndef OVERRIDE_sys_inotify_init -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_inotify_init) +SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_inotify_init) #endif #ifndef OVERRIDE_sys_close -TRACE_EVENT(sys_close, +SC_TRACE_EVENT(sys_close, TP_PROTO(unsigned int fd), TP_ARGS(fd), TP_STRUCT__entry(__field(unsigned int, fd)), @@ -74,7 +71,7 @@ TRACE_EVENT(sys_close, ) #endif #ifndef OVERRIDE_sys_brk -TRACE_EVENT(sys_brk, +SC_TRACE_EVENT(sys_brk, TP_PROTO(unsigned long brk), TP_ARGS(brk), TP_STRUCT__entry(__field(unsigned long, brk)), @@ -83,7 +80,7 @@ TRACE_EVENT(sys_brk, ) #endif #ifndef OVERRIDE_sys_dup -TRACE_EVENT(sys_dup, +SC_TRACE_EVENT(sys_dup, TP_PROTO(unsigned int fildes), TP_ARGS(fildes), TP_STRUCT__entry(__field(unsigned int, fildes)), @@ -92,7 +89,7 @@ TRACE_EVENT(sys_dup, ) #endif #ifndef OVERRIDE_sys_alarm -TRACE_EVENT(sys_alarm, +SC_TRACE_EVENT(sys_alarm, TP_PROTO(unsigned int seconds), TP_ARGS(seconds), TP_STRUCT__entry(__field(unsigned int, seconds)), @@ -101,7 +98,7 @@ TRACE_EVENT(sys_alarm, ) #endif #ifndef OVERRIDE_sys_exit -TRACE_EVENT(sys_exit, +SC_TRACE_EVENT(sys_exit, TP_PROTO(int error_code), TP_ARGS(error_code), TP_STRUCT__entry(__field(int, error_code)), @@ -110,7 +107,7 @@ TRACE_EVENT(sys_exit, ) #endif #ifndef OVERRIDE_sys_fsync -TRACE_EVENT(sys_fsync, +SC_TRACE_EVENT(sys_fsync, TP_PROTO(unsigned int fd), TP_ARGS(fd), TP_STRUCT__entry(__field(unsigned int, fd)), @@ -119,7 +116,7 @@ TRACE_EVENT(sys_fsync, ) #endif #ifndef OVERRIDE_sys_fdatasync -TRACE_EVENT(sys_fdatasync, +SC_TRACE_EVENT(sys_fdatasync, TP_PROTO(unsigned int fd), TP_ARGS(fd), TP_STRUCT__entry(__field(unsigned int, fd)), @@ -128,7 +125,7 @@ TRACE_EVENT(sys_fdatasync, ) #endif #ifndef OVERRIDE_sys_fchdir -TRACE_EVENT(sys_fchdir, +SC_TRACE_EVENT(sys_fchdir, TP_PROTO(unsigned int fd), TP_ARGS(fd), TP_STRUCT__entry(__field(unsigned int, fd)), @@ -137,7 +134,7 @@ TRACE_EVENT(sys_fchdir, ) #endif #ifndef OVERRIDE_sys_umask -TRACE_EVENT(sys_umask, +SC_TRACE_EVENT(sys_umask, TP_PROTO(int mask), TP_ARGS(mask), TP_STRUCT__entry(__field(int, mask)), @@ -146,7 +143,7 @@ TRACE_EVENT(sys_umask, ) #endif #ifndef OVERRIDE_sys_setuid -TRACE_EVENT(sys_setuid, +SC_TRACE_EVENT(sys_setuid, TP_PROTO(uid_t uid), TP_ARGS(uid), TP_STRUCT__entry(__field(uid_t, uid)), @@ -155,7 +152,7 @@ TRACE_EVENT(sys_setuid, ) #endif #ifndef OVERRIDE_sys_setgid -TRACE_EVENT(sys_setgid, +SC_TRACE_EVENT(sys_setgid, TP_PROTO(gid_t gid), TP_ARGS(gid), TP_STRUCT__entry(__field(gid_t, gid)), @@ -164,7 +161,7 @@ TRACE_EVENT(sys_setgid, ) #endif #ifndef OVERRIDE_sys_getpgid -TRACE_EVENT(sys_getpgid, +SC_TRACE_EVENT(sys_getpgid, TP_PROTO(pid_t pid), TP_ARGS(pid), TP_STRUCT__entry(__field(pid_t, pid)), @@ -173,7 +170,7 @@ TRACE_EVENT(sys_getpgid, ) #endif #ifndef OVERRIDE_sys_setfsuid -TRACE_EVENT(sys_setfsuid, +SC_TRACE_EVENT(sys_setfsuid, TP_PROTO(uid_t uid), TP_ARGS(uid), TP_STRUCT__entry(__field(uid_t, uid)), @@ -182,7 +179,7 @@ TRACE_EVENT(sys_setfsuid, ) #endif #ifndef OVERRIDE_sys_setfsgid -TRACE_EVENT(sys_setfsgid, +SC_TRACE_EVENT(sys_setfsgid, TP_PROTO(gid_t gid), TP_ARGS(gid), TP_STRUCT__entry(__field(gid_t, gid)), @@ -191,7 +188,7 @@ TRACE_EVENT(sys_setfsgid, ) #endif #ifndef OVERRIDE_sys_getsid -TRACE_EVENT(sys_getsid, +SC_TRACE_EVENT(sys_getsid, TP_PROTO(pid_t pid), TP_ARGS(pid), TP_STRUCT__entry(__field(pid_t, pid)), @@ -200,7 +197,7 @@ TRACE_EVENT(sys_getsid, ) #endif #ifndef OVERRIDE_sys_personality -TRACE_EVENT(sys_personality, +SC_TRACE_EVENT(sys_personality, TP_PROTO(unsigned int personality), TP_ARGS(personality), TP_STRUCT__entry(__field(unsigned int, personality)), @@ -209,7 +206,7 @@ TRACE_EVENT(sys_personality, ) #endif #ifndef OVERRIDE_sys_sched_getscheduler -TRACE_EVENT(sys_sched_getscheduler, +SC_TRACE_EVENT(sys_sched_getscheduler, TP_PROTO(pid_t pid), TP_ARGS(pid), TP_STRUCT__entry(__field(pid_t, pid)), @@ -218,7 +215,7 @@ TRACE_EVENT(sys_sched_getscheduler, ) #endif #ifndef OVERRIDE_sys_sched_get_priority_max -TRACE_EVENT(sys_sched_get_priority_max, +SC_TRACE_EVENT(sys_sched_get_priority_max, TP_PROTO(int policy), TP_ARGS(policy), TP_STRUCT__entry(__field(int, policy)), @@ -227,7 +224,7 @@ TRACE_EVENT(sys_sched_get_priority_max, ) #endif #ifndef OVERRIDE_sys_sched_get_priority_min -TRACE_EVENT(sys_sched_get_priority_min, +SC_TRACE_EVENT(sys_sched_get_priority_min, TP_PROTO(int policy), TP_ARGS(policy), TP_STRUCT__entry(__field(int, policy)), @@ -236,7 +233,7 @@ TRACE_EVENT(sys_sched_get_priority_min, ) #endif #ifndef OVERRIDE_sys_mlockall -TRACE_EVENT(sys_mlockall, +SC_TRACE_EVENT(sys_mlockall, TP_PROTO(int flags), TP_ARGS(flags), TP_STRUCT__entry(__field(int, flags)), @@ -245,7 +242,7 @@ TRACE_EVENT(sys_mlockall, ) #endif #ifndef OVERRIDE_sys_io_destroy -TRACE_EVENT(sys_io_destroy, +SC_TRACE_EVENT(sys_io_destroy, TP_PROTO(aio_context_t ctx), TP_ARGS(ctx), TP_STRUCT__entry(__field(aio_context_t, ctx)), @@ -254,7 +251,7 @@ TRACE_EVENT(sys_io_destroy, ) #endif #ifndef OVERRIDE_sys_epoll_create -TRACE_EVENT(sys_epoll_create, +SC_TRACE_EVENT(sys_epoll_create, TP_PROTO(int size), TP_ARGS(size), TP_STRUCT__entry(__field(int, size)), @@ -263,7 +260,7 @@ TRACE_EVENT(sys_epoll_create, ) #endif #ifndef OVERRIDE_sys_timer_getoverrun -TRACE_EVENT(sys_timer_getoverrun, +SC_TRACE_EVENT(sys_timer_getoverrun, TP_PROTO(timer_t timer_id), TP_ARGS(timer_id), TP_STRUCT__entry(__field(timer_t, timer_id)), @@ -272,7 +269,7 @@ TRACE_EVENT(sys_timer_getoverrun, ) #endif #ifndef OVERRIDE_sys_timer_delete -TRACE_EVENT(sys_timer_delete, +SC_TRACE_EVENT(sys_timer_delete, TP_PROTO(timer_t timer_id), TP_ARGS(timer_id), TP_STRUCT__entry(__field(timer_t, timer_id)), @@ -281,7 +278,7 @@ TRACE_EVENT(sys_timer_delete, ) #endif #ifndef OVERRIDE_sys_exit_group -TRACE_EVENT(sys_exit_group, +SC_TRACE_EVENT(sys_exit_group, TP_PROTO(int error_code), TP_ARGS(error_code), TP_STRUCT__entry(__field(int, error_code)), @@ -290,7 +287,7 @@ TRACE_EVENT(sys_exit_group, ) #endif #ifndef OVERRIDE_sys_unshare -TRACE_EVENT(sys_unshare, +SC_TRACE_EVENT(sys_unshare, TP_PROTO(unsigned long unshare_flags), TP_ARGS(unshare_flags), TP_STRUCT__entry(__field(unsigned long, unshare_flags)), @@ -299,7 +296,7 @@ TRACE_EVENT(sys_unshare, ) #endif #ifndef OVERRIDE_sys_eventfd -TRACE_EVENT(sys_eventfd, +SC_TRACE_EVENT(sys_eventfd, TP_PROTO(unsigned int count), TP_ARGS(count), TP_STRUCT__entry(__field(unsigned int, count)), @@ -308,7 +305,7 @@ TRACE_EVENT(sys_eventfd, ) #endif #ifndef OVERRIDE_sys_epoll_create1 -TRACE_EVENT(sys_epoll_create1, +SC_TRACE_EVENT(sys_epoll_create1, TP_PROTO(int flags), TP_ARGS(flags), TP_STRUCT__entry(__field(int, flags)), @@ -317,7 +314,7 @@ TRACE_EVENT(sys_epoll_create1, ) #endif #ifndef OVERRIDE_sys_inotify_init1 -TRACE_EVENT(sys_inotify_init1, +SC_TRACE_EVENT(sys_inotify_init1, TP_PROTO(int flags), TP_ARGS(flags), TP_STRUCT__entry(__field(int, flags)), @@ -326,7 +323,7 @@ TRACE_EVENT(sys_inotify_init1, ) #endif #ifndef OVERRIDE_sys_syncfs -TRACE_EVENT(sys_syncfs, +SC_TRACE_EVENT(sys_syncfs, TP_PROTO(int fd), TP_ARGS(fd), TP_STRUCT__entry(__field(int, fd)), @@ -335,7 +332,7 @@ TRACE_EVENT(sys_syncfs, ) #endif #ifndef OVERRIDE_sys_munmap -TRACE_EVENT(sys_munmap, +SC_TRACE_EVENT(sys_munmap, TP_PROTO(unsigned long addr, size_t len), TP_ARGS(addr, len), TP_STRUCT__entry(__field_hex(unsigned long, addr) __field(size_t, len)), @@ -344,7 +341,7 @@ TRACE_EVENT(sys_munmap, ) #endif #ifndef OVERRIDE_sys_dup2 -TRACE_EVENT(sys_dup2, +SC_TRACE_EVENT(sys_dup2, TP_PROTO(unsigned int oldfd, unsigned int newfd), TP_ARGS(oldfd, newfd), TP_STRUCT__entry(__field(unsigned int, oldfd) __field(unsigned int, newfd)), @@ -353,7 +350,7 @@ TRACE_EVENT(sys_dup2, ) #endif #ifndef OVERRIDE_sys_shutdown -TRACE_EVENT(sys_shutdown, +SC_TRACE_EVENT(sys_shutdown, TP_PROTO(int fd, int how), TP_ARGS(fd, how), TP_STRUCT__entry(__field(int, fd) __field(int, how)), @@ -362,7 +359,7 @@ TRACE_EVENT(sys_shutdown, ) #endif #ifndef OVERRIDE_sys_listen -TRACE_EVENT(sys_listen, +SC_TRACE_EVENT(sys_listen, TP_PROTO(int fd, int backlog), TP_ARGS(fd, backlog), TP_STRUCT__entry(__field(int, fd) __field(int, backlog)), @@ -371,7 +368,7 @@ TRACE_EVENT(sys_listen, ) #endif #ifndef OVERRIDE_sys_kill -TRACE_EVENT(sys_kill, +SC_TRACE_EVENT(sys_kill, TP_PROTO(pid_t pid, int sig), TP_ARGS(pid, sig), TP_STRUCT__entry(__field(pid_t, pid) __field(int, sig)), @@ -380,7 +377,7 @@ TRACE_EVENT(sys_kill, ) #endif #ifndef OVERRIDE_sys_msgget -TRACE_EVENT(sys_msgget, +SC_TRACE_EVENT(sys_msgget, TP_PROTO(key_t key, int msgflg), TP_ARGS(key, msgflg), TP_STRUCT__entry(__field(key_t, key) __field(int, msgflg)), @@ -389,7 +386,7 @@ TRACE_EVENT(sys_msgget, ) #endif #ifndef OVERRIDE_sys_flock -TRACE_EVENT(sys_flock, +SC_TRACE_EVENT(sys_flock, TP_PROTO(unsigned int fd, unsigned int cmd), TP_ARGS(fd, cmd), TP_STRUCT__entry(__field(unsigned int, fd) __field(unsigned int, cmd)), @@ -398,7 +395,7 @@ TRACE_EVENT(sys_flock, ) #endif #ifndef OVERRIDE_sys_ftruncate -TRACE_EVENT(sys_ftruncate, +SC_TRACE_EVENT(sys_ftruncate, TP_PROTO(unsigned int fd, unsigned long length), TP_ARGS(fd, length), TP_STRUCT__entry(__field(unsigned int, fd) __field(unsigned long, length)), @@ -407,7 +404,7 @@ TRACE_EVENT(sys_ftruncate, ) #endif #ifndef OVERRIDE_sys_fchmod -TRACE_EVENT(sys_fchmod, +SC_TRACE_EVENT(sys_fchmod, TP_PROTO(unsigned int fd, mode_t mode), TP_ARGS(fd, mode), TP_STRUCT__entry(__field(unsigned int, fd) __field(mode_t, mode)), @@ -416,7 +413,7 @@ TRACE_EVENT(sys_fchmod, ) #endif #ifndef OVERRIDE_sys_setpgid -TRACE_EVENT(sys_setpgid, +SC_TRACE_EVENT(sys_setpgid, TP_PROTO(pid_t pid, pid_t pgid), TP_ARGS(pid, pgid), TP_STRUCT__entry(__field(pid_t, pid) __field(pid_t, pgid)), @@ -425,7 +422,7 @@ TRACE_EVENT(sys_setpgid, ) #endif #ifndef OVERRIDE_sys_setreuid -TRACE_EVENT(sys_setreuid, +SC_TRACE_EVENT(sys_setreuid, TP_PROTO(uid_t ruid, uid_t euid), TP_ARGS(ruid, euid), TP_STRUCT__entry(__field(uid_t, ruid) __field(uid_t, euid)), @@ -434,7 +431,7 @@ TRACE_EVENT(sys_setreuid, ) #endif #ifndef OVERRIDE_sys_setregid -TRACE_EVENT(sys_setregid, +SC_TRACE_EVENT(sys_setregid, TP_PROTO(gid_t rgid, gid_t egid), TP_ARGS(rgid, egid), TP_STRUCT__entry(__field(gid_t, rgid) __field(gid_t, egid)), @@ -443,7 +440,7 @@ TRACE_EVENT(sys_setregid, ) #endif #ifndef OVERRIDE_sys_getpriority -TRACE_EVENT(sys_getpriority, +SC_TRACE_EVENT(sys_getpriority, TP_PROTO(int which, int who), TP_ARGS(which, who), TP_STRUCT__entry(__field(int, which) __field(int, who)), @@ -452,7 +449,7 @@ TRACE_EVENT(sys_getpriority, ) #endif #ifndef OVERRIDE_sys_mlock -TRACE_EVENT(sys_mlock, +SC_TRACE_EVENT(sys_mlock, TP_PROTO(unsigned long start, size_t len), TP_ARGS(start, len), TP_STRUCT__entry(__field(unsigned long, start) __field(size_t, len)), @@ -461,7 +458,7 @@ TRACE_EVENT(sys_mlock, ) #endif #ifndef OVERRIDE_sys_munlock -TRACE_EVENT(sys_munlock, +SC_TRACE_EVENT(sys_munlock, TP_PROTO(unsigned long start, size_t len), TP_ARGS(start, len), TP_STRUCT__entry(__field(unsigned long, start) __field(size_t, len)), @@ -470,7 +467,7 @@ TRACE_EVENT(sys_munlock, ) #endif #ifndef OVERRIDE_sys_tkill -TRACE_EVENT(sys_tkill, +SC_TRACE_EVENT(sys_tkill, TP_PROTO(pid_t pid, int sig), TP_ARGS(pid, sig), TP_STRUCT__entry(__field(pid_t, pid) __field(int, sig)), @@ -479,7 +476,7 @@ TRACE_EVENT(sys_tkill, ) #endif #ifndef OVERRIDE_sys_ioprio_get -TRACE_EVENT(sys_ioprio_get, +SC_TRACE_EVENT(sys_ioprio_get, TP_PROTO(int which, int who), TP_ARGS(which, who), TP_STRUCT__entry(__field(int, which) __field(int, who)), @@ -488,7 +485,7 @@ TRACE_EVENT(sys_ioprio_get, ) #endif #ifndef OVERRIDE_sys_inotify_rm_watch -TRACE_EVENT(sys_inotify_rm_watch, +SC_TRACE_EVENT(sys_inotify_rm_watch, TP_PROTO(int fd, __s32 wd), TP_ARGS(fd, wd), TP_STRUCT__entry(__field(int, fd) __field(__s32, wd)), @@ -497,7 +494,7 @@ TRACE_EVENT(sys_inotify_rm_watch, ) #endif #ifndef OVERRIDE_sys_timerfd_create -TRACE_EVENT(sys_timerfd_create, +SC_TRACE_EVENT(sys_timerfd_create, TP_PROTO(int clockid, int flags), TP_ARGS(clockid, flags), TP_STRUCT__entry(__field(int, clockid) __field(int, flags)), @@ -506,7 +503,7 @@ TRACE_EVENT(sys_timerfd_create, ) #endif #ifndef OVERRIDE_sys_eventfd2 -TRACE_EVENT(sys_eventfd2, +SC_TRACE_EVENT(sys_eventfd2, TP_PROTO(unsigned int count, int flags), TP_ARGS(count, flags), TP_STRUCT__entry(__field(unsigned int, count) __field(int, flags)), @@ -515,7 +512,7 @@ TRACE_EVENT(sys_eventfd2, ) #endif #ifndef OVERRIDE_sys_setns -TRACE_EVENT(sys_setns, +SC_TRACE_EVENT(sys_setns, TP_PROTO(int fd, int nstype), TP_ARGS(fd, nstype), TP_STRUCT__entry(__field(int, fd) __field(int, nstype)), @@ -524,7 +521,7 @@ TRACE_EVENT(sys_setns, ) #endif #ifndef OVERRIDE_sys_lseek -TRACE_EVENT(sys_lseek, +SC_TRACE_EVENT(sys_lseek, TP_PROTO(unsigned int fd, off_t offset, unsigned int origin), TP_ARGS(fd, offset, origin), TP_STRUCT__entry(__field(unsigned int, fd) __field(off_t, offset) __field(unsigned int, origin)), @@ -533,7 +530,7 @@ TRACE_EVENT(sys_lseek, ) #endif #ifndef OVERRIDE_sys_mprotect -TRACE_EVENT(sys_mprotect, +SC_TRACE_EVENT(sys_mprotect, TP_PROTO(unsigned long start, size_t len, unsigned long prot), TP_ARGS(start, len, prot), TP_STRUCT__entry(__field(unsigned long, start) __field(size_t, len) __field(unsigned long, prot)), @@ -542,7 +539,7 @@ TRACE_EVENT(sys_mprotect, ) #endif #ifndef OVERRIDE_sys_ioctl -TRACE_EVENT(sys_ioctl, +SC_TRACE_EVENT(sys_ioctl, TP_PROTO(unsigned int fd, unsigned int cmd, unsigned long arg), TP_ARGS(fd, cmd, arg), TP_STRUCT__entry(__field(unsigned int, fd) __field(unsigned int, cmd) __field(unsigned long, arg)), @@ -551,7 +548,7 @@ TRACE_EVENT(sys_ioctl, ) #endif #ifndef OVERRIDE_sys_msync -TRACE_EVENT(sys_msync, +SC_TRACE_EVENT(sys_msync, TP_PROTO(unsigned long start, size_t len, int flags), TP_ARGS(start, len, flags), TP_STRUCT__entry(__field(unsigned long, start) __field(size_t, len) __field(int, flags)), @@ -560,7 +557,7 @@ TRACE_EVENT(sys_msync, ) #endif #ifndef OVERRIDE_sys_madvise -TRACE_EVENT(sys_madvise, +SC_TRACE_EVENT(sys_madvise, TP_PROTO(unsigned long start, size_t len_in, int behavior), TP_ARGS(start, len_in, behavior), TP_STRUCT__entry(__field(unsigned long, start) __field(size_t, len_in) __field(int, behavior)), @@ -569,7 +566,7 @@ TRACE_EVENT(sys_madvise, ) #endif #ifndef OVERRIDE_sys_shmget -TRACE_EVENT(sys_shmget, +SC_TRACE_EVENT(sys_shmget, TP_PROTO(key_t key, size_t size, int shmflg), TP_ARGS(key, size, shmflg), TP_STRUCT__entry(__field(key_t, key) __field(size_t, size) __field(int, shmflg)), @@ -578,7 +575,7 @@ TRACE_EVENT(sys_shmget, ) #endif #ifndef OVERRIDE_sys_socket -TRACE_EVENT(sys_socket, +SC_TRACE_EVENT(sys_socket, TP_PROTO(int family, int type, int protocol), TP_ARGS(family, type, protocol), TP_STRUCT__entry(__field(int, family) __field(int, type) __field(int, protocol)), @@ -587,7 +584,7 @@ TRACE_EVENT(sys_socket, ) #endif #ifndef OVERRIDE_sys_semget -TRACE_EVENT(sys_semget, +SC_TRACE_EVENT(sys_semget, TP_PROTO(key_t key, int nsems, int semflg), TP_ARGS(key, nsems, semflg), TP_STRUCT__entry(__field(key_t, key) __field(int, nsems) __field(int, semflg)), @@ -596,7 +593,7 @@ TRACE_EVENT(sys_semget, ) #endif #ifndef OVERRIDE_sys_fcntl -TRACE_EVENT(sys_fcntl, +SC_TRACE_EVENT(sys_fcntl, TP_PROTO(unsigned int fd, unsigned int cmd, unsigned long arg), TP_ARGS(fd, cmd, arg), TP_STRUCT__entry(__field(unsigned int, fd) __field(unsigned int, cmd) __field(unsigned long, arg)), @@ -605,7 +602,7 @@ TRACE_EVENT(sys_fcntl, ) #endif #ifndef OVERRIDE_sys_fchown -TRACE_EVENT(sys_fchown, +SC_TRACE_EVENT(sys_fchown, TP_PROTO(unsigned int fd, uid_t user, gid_t group), TP_ARGS(fd, user, group), TP_STRUCT__entry(__field(unsigned int, fd) __field(uid_t, user) __field(gid_t, group)), @@ -614,7 +611,7 @@ TRACE_EVENT(sys_fchown, ) #endif #ifndef OVERRIDE_sys_setresuid -TRACE_EVENT(sys_setresuid, +SC_TRACE_EVENT(sys_setresuid, TP_PROTO(uid_t ruid, uid_t euid, uid_t suid), TP_ARGS(ruid, euid, suid), TP_STRUCT__entry(__field(uid_t, ruid) __field(uid_t, euid) __field(uid_t, suid)), @@ -623,7 +620,7 @@ TRACE_EVENT(sys_setresuid, ) #endif #ifndef OVERRIDE_sys_setresgid -TRACE_EVENT(sys_setresgid, +SC_TRACE_EVENT(sys_setresgid, TP_PROTO(gid_t rgid, gid_t egid, gid_t sgid), TP_ARGS(rgid, egid, sgid), TP_STRUCT__entry(__field(gid_t, rgid) __field(gid_t, egid) __field(gid_t, sgid)), @@ -632,7 +629,7 @@ TRACE_EVENT(sys_setresgid, ) #endif #ifndef OVERRIDE_sys_sysfs -TRACE_EVENT(sys_sysfs, +SC_TRACE_EVENT(sys_sysfs, TP_PROTO(int option, unsigned long arg1, unsigned long arg2), TP_ARGS(option, arg1, arg2), TP_STRUCT__entry(__field(int, option) __field(unsigned long, arg1) __field(unsigned long, arg2)), @@ -641,7 +638,7 @@ TRACE_EVENT(sys_sysfs, ) #endif #ifndef OVERRIDE_sys_setpriority -TRACE_EVENT(sys_setpriority, +SC_TRACE_EVENT(sys_setpriority, TP_PROTO(int which, int who, int niceval), TP_ARGS(which, who, niceval), TP_STRUCT__entry(__field(int, which) __field(int, who) __field(int, niceval)), @@ -650,7 +647,7 @@ TRACE_EVENT(sys_setpriority, ) #endif #ifndef OVERRIDE_sys_tgkill -TRACE_EVENT(sys_tgkill, +SC_TRACE_EVENT(sys_tgkill, TP_PROTO(pid_t tgid, pid_t pid, int sig), TP_ARGS(tgid, pid, sig), TP_STRUCT__entry(__field(pid_t, tgid) __field(pid_t, pid) __field(int, sig)), @@ -659,7 +656,7 @@ TRACE_EVENT(sys_tgkill, ) #endif #ifndef OVERRIDE_sys_ioprio_set -TRACE_EVENT(sys_ioprio_set, +SC_TRACE_EVENT(sys_ioprio_set, TP_PROTO(int which, int who, int ioprio), TP_ARGS(which, who, ioprio), TP_STRUCT__entry(__field(int, which) __field(int, who) __field(int, ioprio)), @@ -668,7 +665,7 @@ TRACE_EVENT(sys_ioprio_set, ) #endif #ifndef OVERRIDE_sys_dup3 -TRACE_EVENT(sys_dup3, +SC_TRACE_EVENT(sys_dup3, TP_PROTO(unsigned int oldfd, unsigned int newfd, int flags), TP_ARGS(oldfd, newfd, flags), TP_STRUCT__entry(__field(unsigned int, oldfd) __field(unsigned int, newfd) __field(int, flags)), @@ -677,7 +674,7 @@ TRACE_EVENT(sys_dup3, ) #endif #ifndef OVERRIDE_sys_ptrace -TRACE_EVENT(sys_ptrace, +SC_TRACE_EVENT(sys_ptrace, TP_PROTO(long request, long pid, unsigned long addr, unsigned long data), TP_ARGS(request, pid, addr, data), TP_STRUCT__entry(__field(long, request) __field(long, pid) __field_hex(unsigned long, addr) __field(unsigned long, data)), @@ -686,7 +683,7 @@ TRACE_EVENT(sys_ptrace, ) #endif #ifndef OVERRIDE_sys_tee -TRACE_EVENT(sys_tee, +SC_TRACE_EVENT(sys_tee, TP_PROTO(int fdin, int fdout, size_t len, unsigned int flags), TP_ARGS(fdin, fdout, len, flags), TP_STRUCT__entry(__field(int, fdin) __field(int, fdout) __field(size_t, len) __field(unsigned int, flags)), @@ -695,7 +692,7 @@ TRACE_EVENT(sys_tee, ) #endif #ifndef OVERRIDE_sys_mremap -TRACE_EVENT(sys_mremap, +SC_TRACE_EVENT(sys_mremap, TP_PROTO(unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, unsigned long new_addr), TP_ARGS(addr, old_len, new_len, flags, new_addr), TP_STRUCT__entry(__field_hex(unsigned long, addr) __field(unsigned long, old_len) __field(unsigned long, new_len) __field(unsigned long, flags) __field_hex(unsigned long, new_addr)), @@ -704,7 +701,7 @@ TRACE_EVENT(sys_mremap, ) #endif #ifndef OVERRIDE_sys_prctl -TRACE_EVENT(sys_prctl, +SC_TRACE_EVENT(sys_prctl, TP_PROTO(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5), TP_ARGS(option, arg2, arg3, arg4, arg5), TP_STRUCT__entry(__field(int, option) __field(unsigned long, arg2) __field(unsigned long, arg3) __field(unsigned long, arg4) __field(unsigned long, arg5)), @@ -713,7 +710,7 @@ TRACE_EVENT(sys_prctl, ) #endif #ifndef OVERRIDE_sys_remap_file_pages -TRACE_EVENT(sys_remap_file_pages, +SC_TRACE_EVENT(sys_remap_file_pages, TP_PROTO(unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long flags), TP_ARGS(start, size, prot, pgoff, flags), TP_STRUCT__entry(__field(unsigned long, start) __field(unsigned long, size) __field(unsigned long, prot) __field(unsigned long, pgoff) __field(unsigned long, flags)), @@ -722,7 +719,7 @@ TRACE_EVENT(sys_remap_file_pages, ) #endif #ifndef OVERRIDE_sys_mmap -TRACE_EVENT(sys_mmap, +SC_TRACE_EVENT(sys_mmap, TP_PROTO(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long off), TP_ARGS(addr, len, prot, flags, fd, off), TP_STRUCT__entry(__field_hex(unsigned long, addr) __field(unsigned long, len) __field(unsigned long, prot) __field(unsigned long, flags) __field(unsigned long, fd) __field(unsigned long, off)), diff --git a/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_integers_override.h b/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_integers_override.h index 3c809254..f8eb9d1c 100644 --- a/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_integers_override.h +++ b/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_integers_override.h @@ -3,7 +3,7 @@ #ifndef CREATE_SYSCALL_TABLE -TRACE_EVENT(sys_mmap, +SC_TRACE_EVENT(sys_mmap, TP_PROTO(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long off), TP_ARGS(addr, len, prot, flags, fd, off), TP_STRUCT__entry(__field_hex(unsigned long, addr) __field(size_t, len) __field(int, prot) __field(int, flags) __field(int, fd) __field(off_t, offset)), diff --git a/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_pointers.h b/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_pointers.h index a5a4f555..3d6b25c5 100644 --- a/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_pointers.h +++ b/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_pointers.h @@ -1,9 +1,6 @@ /* THIS FILE IS AUTO-GENERATED. DO NOT EDIT */ #ifndef CREATE_SYSCALL_TABLE -#undef TRACE_SYSTEM -#define TRACE_SYSTEM syscalls_pointers - #if !defined(_TRACE_SYSCALLS_POINTERS_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_SYSCALLS_POINTERS_H @@ -12,7 +9,7 @@ #include "x86-64-syscalls-3.0.4_pointers_override.h" #ifndef OVERRIDE_sys_pipe -TRACE_EVENT(sys_pipe, +SC_TRACE_EVENT(sys_pipe, TP_PROTO(int * fildes), TP_ARGS(fildes), TP_STRUCT__entry(__field_hex(int *, fildes)), @@ -21,7 +18,7 @@ TRACE_EVENT(sys_pipe, ) #endif #ifndef OVERRIDE_sys_newuname -TRACE_EVENT(sys_newuname, +SC_TRACE_EVENT(sys_newuname, TP_PROTO(struct new_utsname * name), TP_ARGS(name), TP_STRUCT__entry(__field_hex(struct new_utsname *, name)), @@ -30,7 +27,7 @@ TRACE_EVENT(sys_newuname, ) #endif #ifndef OVERRIDE_sys_shmdt -TRACE_EVENT(sys_shmdt, +SC_TRACE_EVENT(sys_shmdt, TP_PROTO(char * shmaddr), TP_ARGS(shmaddr), TP_STRUCT__entry(__field_hex(char *, shmaddr)), @@ -39,7 +36,7 @@ TRACE_EVENT(sys_shmdt, ) #endif #ifndef OVERRIDE_sys_chdir -TRACE_EVENT(sys_chdir, +SC_TRACE_EVENT(sys_chdir, TP_PROTO(const char * filename), TP_ARGS(filename), TP_STRUCT__entry(__string(filename, filename)), @@ -48,7 +45,7 @@ TRACE_EVENT(sys_chdir, ) #endif #ifndef OVERRIDE_sys_rmdir -TRACE_EVENT(sys_rmdir, +SC_TRACE_EVENT(sys_rmdir, TP_PROTO(const char * pathname), TP_ARGS(pathname), TP_STRUCT__entry(__string(pathname, pathname)), @@ -57,7 +54,7 @@ TRACE_EVENT(sys_rmdir, ) #endif #ifndef OVERRIDE_sys_unlink -TRACE_EVENT(sys_unlink, +SC_TRACE_EVENT(sys_unlink, TP_PROTO(const char * pathname), TP_ARGS(pathname), TP_STRUCT__entry(__string(pathname, pathname)), @@ -66,7 +63,7 @@ TRACE_EVENT(sys_unlink, ) #endif #ifndef OVERRIDE_sys_sysinfo -TRACE_EVENT(sys_sysinfo, +SC_TRACE_EVENT(sys_sysinfo, TP_PROTO(struct sysinfo * info), TP_ARGS(info), TP_STRUCT__entry(__field_hex(struct sysinfo *, info)), @@ -75,7 +72,7 @@ TRACE_EVENT(sys_sysinfo, ) #endif #ifndef OVERRIDE_sys_times -TRACE_EVENT(sys_times, +SC_TRACE_EVENT(sys_times, TP_PROTO(struct tms * tbuf), TP_ARGS(tbuf), TP_STRUCT__entry(__field_hex(struct tms *, tbuf)), @@ -84,7 +81,7 @@ TRACE_EVENT(sys_times, ) #endif #ifndef OVERRIDE_sys_sysctl -TRACE_EVENT(sys_sysctl, +SC_TRACE_EVENT(sys_sysctl, TP_PROTO(struct __sysctl_args * args), TP_ARGS(args), TP_STRUCT__entry(__field_hex(struct __sysctl_args *, args)), @@ -93,7 +90,7 @@ TRACE_EVENT(sys_sysctl, ) #endif #ifndef OVERRIDE_sys_adjtimex -TRACE_EVENT(sys_adjtimex, +SC_TRACE_EVENT(sys_adjtimex, TP_PROTO(struct timex * txc_p), TP_ARGS(txc_p), TP_STRUCT__entry(__field_hex(struct timex *, txc_p)), @@ -102,7 +99,7 @@ TRACE_EVENT(sys_adjtimex, ) #endif #ifndef OVERRIDE_sys_chroot -TRACE_EVENT(sys_chroot, +SC_TRACE_EVENT(sys_chroot, TP_PROTO(const char * filename), TP_ARGS(filename), TP_STRUCT__entry(__string(filename, filename)), @@ -111,7 +108,7 @@ TRACE_EVENT(sys_chroot, ) #endif #ifndef OVERRIDE_sys_swapoff -TRACE_EVENT(sys_swapoff, +SC_TRACE_EVENT(sys_swapoff, TP_PROTO(const char * specialfile), TP_ARGS(specialfile), TP_STRUCT__entry(__string(specialfile, specialfile)), @@ -120,7 +117,7 @@ TRACE_EVENT(sys_swapoff, ) #endif #ifndef OVERRIDE_sys_time -TRACE_EVENT(sys_time, +SC_TRACE_EVENT(sys_time, TP_PROTO(time_t * tloc), TP_ARGS(tloc), TP_STRUCT__entry(__field_hex(time_t *, tloc)), @@ -129,7 +126,7 @@ TRACE_EVENT(sys_time, ) #endif #ifndef OVERRIDE_sys_set_tid_address -TRACE_EVENT(sys_set_tid_address, +SC_TRACE_EVENT(sys_set_tid_address, TP_PROTO(int * tidptr), TP_ARGS(tidptr), TP_STRUCT__entry(__field_hex(int *, tidptr)), @@ -138,7 +135,7 @@ TRACE_EVENT(sys_set_tid_address, ) #endif #ifndef OVERRIDE_sys_mq_unlink -TRACE_EVENT(sys_mq_unlink, +SC_TRACE_EVENT(sys_mq_unlink, TP_PROTO(const char * u_name), TP_ARGS(u_name), TP_STRUCT__entry(__string(u_name, u_name)), @@ -147,7 +144,7 @@ TRACE_EVENT(sys_mq_unlink, ) #endif #ifndef OVERRIDE_sys_newstat -TRACE_EVENT(sys_newstat, +SC_TRACE_EVENT(sys_newstat, TP_PROTO(const char * filename, struct stat * statbuf), TP_ARGS(filename, statbuf), TP_STRUCT__entry(__string(filename, filename) __field_hex(struct stat *, statbuf)), @@ -156,7 +153,7 @@ TRACE_EVENT(sys_newstat, ) #endif #ifndef OVERRIDE_sys_newfstat -TRACE_EVENT(sys_newfstat, +SC_TRACE_EVENT(sys_newfstat, TP_PROTO(unsigned int fd, struct stat * statbuf), TP_ARGS(fd, statbuf), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(struct stat *, statbuf)), @@ -165,7 +162,7 @@ TRACE_EVENT(sys_newfstat, ) #endif #ifndef OVERRIDE_sys_newlstat -TRACE_EVENT(sys_newlstat, +SC_TRACE_EVENT(sys_newlstat, TP_PROTO(const char * filename, struct stat * statbuf), TP_ARGS(filename, statbuf), TP_STRUCT__entry(__string(filename, filename) __field_hex(struct stat *, statbuf)), @@ -174,7 +171,7 @@ TRACE_EVENT(sys_newlstat, ) #endif #ifndef OVERRIDE_sys_access -TRACE_EVENT(sys_access, +SC_TRACE_EVENT(sys_access, TP_PROTO(const char * filename, int mode), TP_ARGS(filename, mode), TP_STRUCT__entry(__string(filename, filename) __field(int, mode)), @@ -183,7 +180,7 @@ TRACE_EVENT(sys_access, ) #endif #ifndef OVERRIDE_sys_nanosleep -TRACE_EVENT(sys_nanosleep, +SC_TRACE_EVENT(sys_nanosleep, TP_PROTO(struct timespec * rqtp, struct timespec * rmtp), TP_ARGS(rqtp, rmtp), TP_STRUCT__entry(__field_hex(struct timespec *, rqtp) __field_hex(struct timespec *, rmtp)), @@ -192,7 +189,7 @@ TRACE_EVENT(sys_nanosleep, ) #endif #ifndef OVERRIDE_sys_getitimer -TRACE_EVENT(sys_getitimer, +SC_TRACE_EVENT(sys_getitimer, TP_PROTO(int which, struct itimerval * value), TP_ARGS(which, value), TP_STRUCT__entry(__field(int, which) __field_hex(struct itimerval *, value)), @@ -201,7 +198,7 @@ TRACE_EVENT(sys_getitimer, ) #endif #ifndef OVERRIDE_sys_truncate -TRACE_EVENT(sys_truncate, +SC_TRACE_EVENT(sys_truncate, TP_PROTO(const char * path, long length), TP_ARGS(path, length), TP_STRUCT__entry(__string(path, path) __field(long, length)), @@ -210,7 +207,7 @@ TRACE_EVENT(sys_truncate, ) #endif #ifndef OVERRIDE_sys_getcwd -TRACE_EVENT(sys_getcwd, +SC_TRACE_EVENT(sys_getcwd, TP_PROTO(char * buf, unsigned long size), TP_ARGS(buf, size), TP_STRUCT__entry(__field_hex(char *, buf) __field(unsigned long, size)), @@ -219,7 +216,7 @@ TRACE_EVENT(sys_getcwd, ) #endif #ifndef OVERRIDE_sys_rename -TRACE_EVENT(sys_rename, +SC_TRACE_EVENT(sys_rename, TP_PROTO(const char * oldname, const char * newname), TP_ARGS(oldname, newname), TP_STRUCT__entry(__string(oldname, oldname) __string(newname, newname)), @@ -228,7 +225,7 @@ TRACE_EVENT(sys_rename, ) #endif #ifndef OVERRIDE_sys_mkdir -TRACE_EVENT(sys_mkdir, +SC_TRACE_EVENT(sys_mkdir, TP_PROTO(const char * pathname, int mode), TP_ARGS(pathname, mode), TP_STRUCT__entry(__string(pathname, pathname) __field(int, mode)), @@ -237,7 +234,7 @@ TRACE_EVENT(sys_mkdir, ) #endif #ifndef OVERRIDE_sys_creat -TRACE_EVENT(sys_creat, +SC_TRACE_EVENT(sys_creat, TP_PROTO(const char * pathname, int mode), TP_ARGS(pathname, mode), TP_STRUCT__entry(__string(pathname, pathname) __field(int, mode)), @@ -246,7 +243,7 @@ TRACE_EVENT(sys_creat, ) #endif #ifndef OVERRIDE_sys_link -TRACE_EVENT(sys_link, +SC_TRACE_EVENT(sys_link, TP_PROTO(const char * oldname, const char * newname), TP_ARGS(oldname, newname), TP_STRUCT__entry(__string(oldname, oldname) __string(newname, newname)), @@ -255,7 +252,7 @@ TRACE_EVENT(sys_link, ) #endif #ifndef OVERRIDE_sys_symlink -TRACE_EVENT(sys_symlink, +SC_TRACE_EVENT(sys_symlink, TP_PROTO(const char * oldname, const char * newname), TP_ARGS(oldname, newname), TP_STRUCT__entry(__string(oldname, oldname) __string(newname, newname)), @@ -264,7 +261,7 @@ TRACE_EVENT(sys_symlink, ) #endif #ifndef OVERRIDE_sys_chmod -TRACE_EVENT(sys_chmod, +SC_TRACE_EVENT(sys_chmod, TP_PROTO(const char * filename, mode_t mode), TP_ARGS(filename, mode), TP_STRUCT__entry(__string(filename, filename) __field(mode_t, mode)), @@ -273,7 +270,7 @@ TRACE_EVENT(sys_chmod, ) #endif #ifndef OVERRIDE_sys_gettimeofday -TRACE_EVENT(sys_gettimeofday, +SC_TRACE_EVENT(sys_gettimeofday, TP_PROTO(struct timeval * tv, struct timezone * tz), TP_ARGS(tv, tz), TP_STRUCT__entry(__field_hex(struct timeval *, tv) __field_hex(struct timezone *, tz)), @@ -282,7 +279,7 @@ TRACE_EVENT(sys_gettimeofday, ) #endif #ifndef OVERRIDE_sys_getrlimit -TRACE_EVENT(sys_getrlimit, +SC_TRACE_EVENT(sys_getrlimit, TP_PROTO(unsigned int resource, struct rlimit * rlim), TP_ARGS(resource, rlim), TP_STRUCT__entry(__field(unsigned int, resource) __field_hex(struct rlimit *, rlim)), @@ -291,7 +288,7 @@ TRACE_EVENT(sys_getrlimit, ) #endif #ifndef OVERRIDE_sys_getrusage -TRACE_EVENT(sys_getrusage, +SC_TRACE_EVENT(sys_getrusage, TP_PROTO(int who, struct rusage * ru), TP_ARGS(who, ru), TP_STRUCT__entry(__field(int, who) __field_hex(struct rusage *, ru)), @@ -300,7 +297,7 @@ TRACE_EVENT(sys_getrusage, ) #endif #ifndef OVERRIDE_sys_getgroups -TRACE_EVENT(sys_getgroups, +SC_TRACE_EVENT(sys_getgroups, TP_PROTO(int gidsetsize, gid_t * grouplist), TP_ARGS(gidsetsize, grouplist), TP_STRUCT__entry(__field(int, gidsetsize) __field_hex(gid_t *, grouplist)), @@ -309,7 +306,7 @@ TRACE_EVENT(sys_getgroups, ) #endif #ifndef OVERRIDE_sys_setgroups -TRACE_EVENT(sys_setgroups, +SC_TRACE_EVENT(sys_setgroups, TP_PROTO(int gidsetsize, gid_t * grouplist), TP_ARGS(gidsetsize, grouplist), TP_STRUCT__entry(__field(int, gidsetsize) __field_hex(gid_t *, grouplist)), @@ -318,7 +315,7 @@ TRACE_EVENT(sys_setgroups, ) #endif #ifndef OVERRIDE_sys_rt_sigpending -TRACE_EVENT(sys_rt_sigpending, +SC_TRACE_EVENT(sys_rt_sigpending, TP_PROTO(sigset_t * set, size_t sigsetsize), TP_ARGS(set, sigsetsize), TP_STRUCT__entry(__field_hex(sigset_t *, set) __field(size_t, sigsetsize)), @@ -327,7 +324,7 @@ TRACE_EVENT(sys_rt_sigpending, ) #endif #ifndef OVERRIDE_sys_rt_sigsuspend -TRACE_EVENT(sys_rt_sigsuspend, +SC_TRACE_EVENT(sys_rt_sigsuspend, TP_PROTO(sigset_t * unewset, size_t sigsetsize), TP_ARGS(unewset, sigsetsize), TP_STRUCT__entry(__field_hex(sigset_t *, unewset) __field(size_t, sigsetsize)), @@ -336,7 +333,7 @@ TRACE_EVENT(sys_rt_sigsuspend, ) #endif #ifndef OVERRIDE_sys_utime -TRACE_EVENT(sys_utime, +SC_TRACE_EVENT(sys_utime, TP_PROTO(char * filename, struct utimbuf * times), TP_ARGS(filename, times), TP_STRUCT__entry(__string(filename, filename) __field_hex(struct utimbuf *, times)), @@ -345,7 +342,7 @@ TRACE_EVENT(sys_utime, ) #endif #ifndef OVERRIDE_sys_ustat -TRACE_EVENT(sys_ustat, +SC_TRACE_EVENT(sys_ustat, TP_PROTO(unsigned dev, struct ustat * ubuf), TP_ARGS(dev, ubuf), TP_STRUCT__entry(__field(unsigned, dev) __field_hex(struct ustat *, ubuf)), @@ -354,7 +351,7 @@ TRACE_EVENT(sys_ustat, ) #endif #ifndef OVERRIDE_sys_statfs -TRACE_EVENT(sys_statfs, +SC_TRACE_EVENT(sys_statfs, TP_PROTO(const char * pathname, struct statfs * buf), TP_ARGS(pathname, buf), TP_STRUCT__entry(__string(pathname, pathname) __field_hex(struct statfs *, buf)), @@ -363,7 +360,7 @@ TRACE_EVENT(sys_statfs, ) #endif #ifndef OVERRIDE_sys_fstatfs -TRACE_EVENT(sys_fstatfs, +SC_TRACE_EVENT(sys_fstatfs, TP_PROTO(unsigned int fd, struct statfs * buf), TP_ARGS(fd, buf), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(struct statfs *, buf)), @@ -372,7 +369,7 @@ TRACE_EVENT(sys_fstatfs, ) #endif #ifndef OVERRIDE_sys_sched_setparam -TRACE_EVENT(sys_sched_setparam, +SC_TRACE_EVENT(sys_sched_setparam, TP_PROTO(pid_t pid, struct sched_param * param), TP_ARGS(pid, param), TP_STRUCT__entry(__field(pid_t, pid) __field_hex(struct sched_param *, param)), @@ -381,7 +378,7 @@ TRACE_EVENT(sys_sched_setparam, ) #endif #ifndef OVERRIDE_sys_sched_getparam -TRACE_EVENT(sys_sched_getparam, +SC_TRACE_EVENT(sys_sched_getparam, TP_PROTO(pid_t pid, struct sched_param * param), TP_ARGS(pid, param), TP_STRUCT__entry(__field(pid_t, pid) __field_hex(struct sched_param *, param)), @@ -390,7 +387,7 @@ TRACE_EVENT(sys_sched_getparam, ) #endif #ifndef OVERRIDE_sys_sched_rr_get_interval -TRACE_EVENT(sys_sched_rr_get_interval, +SC_TRACE_EVENT(sys_sched_rr_get_interval, TP_PROTO(pid_t pid, struct timespec * interval), TP_ARGS(pid, interval), TP_STRUCT__entry(__field(pid_t, pid) __field_hex(struct timespec *, interval)), @@ -399,7 +396,7 @@ TRACE_EVENT(sys_sched_rr_get_interval, ) #endif #ifndef OVERRIDE_sys_pivot_root -TRACE_EVENT(sys_pivot_root, +SC_TRACE_EVENT(sys_pivot_root, TP_PROTO(const char * new_root, const char * put_old), TP_ARGS(new_root, put_old), TP_STRUCT__entry(__string(new_root, new_root) __string(put_old, put_old)), @@ -408,7 +405,7 @@ TRACE_EVENT(sys_pivot_root, ) #endif #ifndef OVERRIDE_sys_setrlimit -TRACE_EVENT(sys_setrlimit, +SC_TRACE_EVENT(sys_setrlimit, TP_PROTO(unsigned int resource, struct rlimit * rlim), TP_ARGS(resource, rlim), TP_STRUCT__entry(__field(unsigned int, resource) __field_hex(struct rlimit *, rlim)), @@ -417,7 +414,7 @@ TRACE_EVENT(sys_setrlimit, ) #endif #ifndef OVERRIDE_sys_settimeofday -TRACE_EVENT(sys_settimeofday, +SC_TRACE_EVENT(sys_settimeofday, TP_PROTO(struct timeval * tv, struct timezone * tz), TP_ARGS(tv, tz), TP_STRUCT__entry(__field_hex(struct timeval *, tv) __field_hex(struct timezone *, tz)), @@ -426,7 +423,7 @@ TRACE_EVENT(sys_settimeofday, ) #endif #ifndef OVERRIDE_sys_umount -TRACE_EVENT(sys_umount, +SC_TRACE_EVENT(sys_umount, TP_PROTO(char * name, int flags), TP_ARGS(name, flags), TP_STRUCT__entry(__string(name, name) __field(int, flags)), @@ -435,7 +432,7 @@ TRACE_EVENT(sys_umount, ) #endif #ifndef OVERRIDE_sys_swapon -TRACE_EVENT(sys_swapon, +SC_TRACE_EVENT(sys_swapon, TP_PROTO(const char * specialfile, int swap_flags), TP_ARGS(specialfile, swap_flags), TP_STRUCT__entry(__string(specialfile, specialfile) __field(int, swap_flags)), @@ -444,7 +441,7 @@ TRACE_EVENT(sys_swapon, ) #endif #ifndef OVERRIDE_sys_sethostname -TRACE_EVENT(sys_sethostname, +SC_TRACE_EVENT(sys_sethostname, TP_PROTO(char * name, int len), TP_ARGS(name, len), TP_STRUCT__entry(__string(name, name) __field(int, len)), @@ -453,7 +450,7 @@ TRACE_EVENT(sys_sethostname, ) #endif #ifndef OVERRIDE_sys_setdomainname -TRACE_EVENT(sys_setdomainname, +SC_TRACE_EVENT(sys_setdomainname, TP_PROTO(char * name, int len), TP_ARGS(name, len), TP_STRUCT__entry(__string(name, name) __field(int, len)), @@ -462,7 +459,7 @@ TRACE_EVENT(sys_setdomainname, ) #endif #ifndef OVERRIDE_sys_delete_module -TRACE_EVENT(sys_delete_module, +SC_TRACE_EVENT(sys_delete_module, TP_PROTO(const char * name_user, unsigned int flags), TP_ARGS(name_user, flags), TP_STRUCT__entry(__string(name_user, name_user) __field(unsigned int, flags)), @@ -471,7 +468,7 @@ TRACE_EVENT(sys_delete_module, ) #endif #ifndef OVERRIDE_sys_removexattr -TRACE_EVENT(sys_removexattr, +SC_TRACE_EVENT(sys_removexattr, TP_PROTO(const char * pathname, const char * name), TP_ARGS(pathname, name), TP_STRUCT__entry(__string(pathname, pathname) __string(name, name)), @@ -480,7 +477,7 @@ TRACE_EVENT(sys_removexattr, ) #endif #ifndef OVERRIDE_sys_lremovexattr -TRACE_EVENT(sys_lremovexattr, +SC_TRACE_EVENT(sys_lremovexattr, TP_PROTO(const char * pathname, const char * name), TP_ARGS(pathname, name), TP_STRUCT__entry(__string(pathname, pathname) __string(name, name)), @@ -489,7 +486,7 @@ TRACE_EVENT(sys_lremovexattr, ) #endif #ifndef OVERRIDE_sys_fremovexattr -TRACE_EVENT(sys_fremovexattr, +SC_TRACE_EVENT(sys_fremovexattr, TP_PROTO(int fd, const char * name), TP_ARGS(fd, name), TP_STRUCT__entry(__field(int, fd) __string(name, name)), @@ -498,7 +495,7 @@ TRACE_EVENT(sys_fremovexattr, ) #endif #ifndef OVERRIDE_sys_io_setup -TRACE_EVENT(sys_io_setup, +SC_TRACE_EVENT(sys_io_setup, TP_PROTO(unsigned nr_events, aio_context_t * ctxp), TP_ARGS(nr_events, ctxp), TP_STRUCT__entry(__field(unsigned, nr_events) __field_hex(aio_context_t *, ctxp)), @@ -507,7 +504,7 @@ TRACE_EVENT(sys_io_setup, ) #endif #ifndef OVERRIDE_sys_timer_gettime -TRACE_EVENT(sys_timer_gettime, +SC_TRACE_EVENT(sys_timer_gettime, TP_PROTO(timer_t timer_id, struct itimerspec * setting), TP_ARGS(timer_id, setting), TP_STRUCT__entry(__field(timer_t, timer_id) __field_hex(struct itimerspec *, setting)), @@ -516,7 +513,7 @@ TRACE_EVENT(sys_timer_gettime, ) #endif #ifndef OVERRIDE_sys_clock_settime -TRACE_EVENT(sys_clock_settime, +SC_TRACE_EVENT(sys_clock_settime, TP_PROTO(const clockid_t which_clock, const struct timespec * tp), TP_ARGS(which_clock, tp), TP_STRUCT__entry(__field(const clockid_t, which_clock) __field_hex(const struct timespec *, tp)), @@ -525,7 +522,7 @@ TRACE_EVENT(sys_clock_settime, ) #endif #ifndef OVERRIDE_sys_clock_gettime -TRACE_EVENT(sys_clock_gettime, +SC_TRACE_EVENT(sys_clock_gettime, TP_PROTO(const clockid_t which_clock, struct timespec * tp), TP_ARGS(which_clock, tp), TP_STRUCT__entry(__field(const clockid_t, which_clock) __field_hex(struct timespec *, tp)), @@ -534,7 +531,7 @@ TRACE_EVENT(sys_clock_gettime, ) #endif #ifndef OVERRIDE_sys_clock_getres -TRACE_EVENT(sys_clock_getres, +SC_TRACE_EVENT(sys_clock_getres, TP_PROTO(const clockid_t which_clock, struct timespec * tp), TP_ARGS(which_clock, tp), TP_STRUCT__entry(__field(const clockid_t, which_clock) __field_hex(struct timespec *, tp)), @@ -543,7 +540,7 @@ TRACE_EVENT(sys_clock_getres, ) #endif #ifndef OVERRIDE_sys_utimes -TRACE_EVENT(sys_utimes, +SC_TRACE_EVENT(sys_utimes, TP_PROTO(char * filename, struct timeval * utimes), TP_ARGS(filename, utimes), TP_STRUCT__entry(__string(filename, filename) __field_hex(struct timeval *, utimes)), @@ -552,7 +549,7 @@ TRACE_EVENT(sys_utimes, ) #endif #ifndef OVERRIDE_sys_mq_notify -TRACE_EVENT(sys_mq_notify, +SC_TRACE_EVENT(sys_mq_notify, TP_PROTO(mqd_t mqdes, const struct sigevent * u_notification), TP_ARGS(mqdes, u_notification), TP_STRUCT__entry(__field(mqd_t, mqdes) __field_hex(const struct sigevent *, u_notification)), @@ -561,7 +558,7 @@ TRACE_EVENT(sys_mq_notify, ) #endif #ifndef OVERRIDE_sys_set_robust_list -TRACE_EVENT(sys_set_robust_list, +SC_TRACE_EVENT(sys_set_robust_list, TP_PROTO(struct robust_list_head * head, size_t len), TP_ARGS(head, len), TP_STRUCT__entry(__field_hex(struct robust_list_head *, head) __field(size_t, len)), @@ -570,7 +567,7 @@ TRACE_EVENT(sys_set_robust_list, ) #endif #ifndef OVERRIDE_sys_timerfd_gettime -TRACE_EVENT(sys_timerfd_gettime, +SC_TRACE_EVENT(sys_timerfd_gettime, TP_PROTO(int ufd, struct itimerspec * otmr), TP_ARGS(ufd, otmr), TP_STRUCT__entry(__field(int, ufd) __field_hex(struct itimerspec *, otmr)), @@ -579,7 +576,7 @@ TRACE_EVENT(sys_timerfd_gettime, ) #endif #ifndef OVERRIDE_sys_pipe2 -TRACE_EVENT(sys_pipe2, +SC_TRACE_EVENT(sys_pipe2, TP_PROTO(int * fildes, int flags), TP_ARGS(fildes, flags), TP_STRUCT__entry(__field_hex(int *, fildes) __field(int, flags)), @@ -588,7 +585,7 @@ TRACE_EVENT(sys_pipe2, ) #endif #ifndef OVERRIDE_sys_clock_adjtime -TRACE_EVENT(sys_clock_adjtime, +SC_TRACE_EVENT(sys_clock_adjtime, TP_PROTO(const clockid_t which_clock, struct timex * utx), TP_ARGS(which_clock, utx), TP_STRUCT__entry(__field(const clockid_t, which_clock) __field_hex(struct timex *, utx)), @@ -597,7 +594,7 @@ TRACE_EVENT(sys_clock_adjtime, ) #endif #ifndef OVERRIDE_sys_read -TRACE_EVENT(sys_read, +SC_TRACE_EVENT(sys_read, TP_PROTO(unsigned int fd, char * buf, size_t count), TP_ARGS(fd, buf, count), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(char *, buf) __field(size_t, count)), @@ -606,7 +603,7 @@ TRACE_EVENT(sys_read, ) #endif #ifndef OVERRIDE_sys_write -TRACE_EVENT(sys_write, +SC_TRACE_EVENT(sys_write, TP_PROTO(unsigned int fd, const char * buf, size_t count), TP_ARGS(fd, buf, count), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(const char *, buf) __field(size_t, count)), @@ -615,7 +612,7 @@ TRACE_EVENT(sys_write, ) #endif #ifndef OVERRIDE_sys_open -TRACE_EVENT(sys_open, +SC_TRACE_EVENT(sys_open, TP_PROTO(const char * filename, int flags, int mode), TP_ARGS(filename, flags, mode), TP_STRUCT__entry(__string(filename, filename) __field(int, flags) __field(int, mode)), @@ -624,7 +621,7 @@ TRACE_EVENT(sys_open, ) #endif #ifndef OVERRIDE_sys_poll -TRACE_EVENT(sys_poll, +SC_TRACE_EVENT(sys_poll, TP_PROTO(struct pollfd * ufds, unsigned int nfds, long timeout_msecs), TP_ARGS(ufds, nfds, timeout_msecs), TP_STRUCT__entry(__field_hex(struct pollfd *, ufds) __field(unsigned int, nfds) __field(long, timeout_msecs)), @@ -633,7 +630,7 @@ TRACE_EVENT(sys_poll, ) #endif #ifndef OVERRIDE_sys_readv -TRACE_EVENT(sys_readv, +SC_TRACE_EVENT(sys_readv, TP_PROTO(unsigned long fd, const struct iovec * vec, unsigned long vlen), TP_ARGS(fd, vec, vlen), TP_STRUCT__entry(__field(unsigned long, fd) __field_hex(const struct iovec *, vec) __field(unsigned long, vlen)), @@ -642,7 +639,7 @@ TRACE_EVENT(sys_readv, ) #endif #ifndef OVERRIDE_sys_writev -TRACE_EVENT(sys_writev, +SC_TRACE_EVENT(sys_writev, TP_PROTO(unsigned long fd, const struct iovec * vec, unsigned long vlen), TP_ARGS(fd, vec, vlen), TP_STRUCT__entry(__field(unsigned long, fd) __field_hex(const struct iovec *, vec) __field(unsigned long, vlen)), @@ -651,7 +648,7 @@ TRACE_EVENT(sys_writev, ) #endif #ifndef OVERRIDE_sys_mincore -TRACE_EVENT(sys_mincore, +SC_TRACE_EVENT(sys_mincore, TP_PROTO(unsigned long start, size_t len, unsigned char * vec), TP_ARGS(start, len, vec), TP_STRUCT__entry(__field(unsigned long, start) __field(size_t, len) __field_hex(unsigned char *, vec)), @@ -660,7 +657,7 @@ TRACE_EVENT(sys_mincore, ) #endif #ifndef OVERRIDE_sys_shmat -TRACE_EVENT(sys_shmat, +SC_TRACE_EVENT(sys_shmat, TP_PROTO(int shmid, char * shmaddr, int shmflg), TP_ARGS(shmid, shmaddr, shmflg), TP_STRUCT__entry(__field(int, shmid) __field_hex(char *, shmaddr) __field(int, shmflg)), @@ -669,7 +666,7 @@ TRACE_EVENT(sys_shmat, ) #endif #ifndef OVERRIDE_sys_shmctl -TRACE_EVENT(sys_shmctl, +SC_TRACE_EVENT(sys_shmctl, TP_PROTO(int shmid, int cmd, struct shmid_ds * buf), TP_ARGS(shmid, cmd, buf), TP_STRUCT__entry(__field(int, shmid) __field(int, cmd) __field_hex(struct shmid_ds *, buf)), @@ -678,7 +675,7 @@ TRACE_EVENT(sys_shmctl, ) #endif #ifndef OVERRIDE_sys_setitimer -TRACE_EVENT(sys_setitimer, +SC_TRACE_EVENT(sys_setitimer, TP_PROTO(int which, struct itimerval * value, struct itimerval * ovalue), TP_ARGS(which, value, ovalue), TP_STRUCT__entry(__field(int, which) __field_hex(struct itimerval *, value) __field_hex(struct itimerval *, ovalue)), @@ -687,7 +684,7 @@ TRACE_EVENT(sys_setitimer, ) #endif #ifndef OVERRIDE_sys_connect -TRACE_EVENT(sys_connect, +SC_TRACE_EVENT(sys_connect, TP_PROTO(int fd, struct sockaddr * uservaddr, int addrlen), TP_ARGS(fd, uservaddr, addrlen), TP_STRUCT__entry(__field(int, fd) __field_hex(struct sockaddr *, uservaddr) __field_hex(int, addrlen)), @@ -696,7 +693,7 @@ TRACE_EVENT(sys_connect, ) #endif #ifndef OVERRIDE_sys_accept -TRACE_EVENT(sys_accept, +SC_TRACE_EVENT(sys_accept, TP_PROTO(int fd, struct sockaddr * upeer_sockaddr, int * upeer_addrlen), TP_ARGS(fd, upeer_sockaddr, upeer_addrlen), TP_STRUCT__entry(__field(int, fd) __field_hex(struct sockaddr *, upeer_sockaddr) __field_hex(int *, upeer_addrlen)), @@ -705,7 +702,7 @@ TRACE_EVENT(sys_accept, ) #endif #ifndef OVERRIDE_sys_sendmsg -TRACE_EVENT(sys_sendmsg, +SC_TRACE_EVENT(sys_sendmsg, TP_PROTO(int fd, struct msghdr * msg, unsigned flags), TP_ARGS(fd, msg, flags), TP_STRUCT__entry(__field(int, fd) __field_hex(struct msghdr *, msg) __field(unsigned, flags)), @@ -714,7 +711,7 @@ TRACE_EVENT(sys_sendmsg, ) #endif #ifndef OVERRIDE_sys_recvmsg -TRACE_EVENT(sys_recvmsg, +SC_TRACE_EVENT(sys_recvmsg, TP_PROTO(int fd, struct msghdr * msg, unsigned int flags), TP_ARGS(fd, msg, flags), TP_STRUCT__entry(__field(int, fd) __field_hex(struct msghdr *, msg) __field(unsigned int, flags)), @@ -723,7 +720,7 @@ TRACE_EVENT(sys_recvmsg, ) #endif #ifndef OVERRIDE_sys_bind -TRACE_EVENT(sys_bind, +SC_TRACE_EVENT(sys_bind, TP_PROTO(int fd, struct sockaddr * umyaddr, int addrlen), TP_ARGS(fd, umyaddr, addrlen), TP_STRUCT__entry(__field(int, fd) __field_hex(struct sockaddr *, umyaddr) __field_hex(int, addrlen)), @@ -732,7 +729,7 @@ TRACE_EVENT(sys_bind, ) #endif #ifndef OVERRIDE_sys_getsockname -TRACE_EVENT(sys_getsockname, +SC_TRACE_EVENT(sys_getsockname, TP_PROTO(int fd, struct sockaddr * usockaddr, int * usockaddr_len), TP_ARGS(fd, usockaddr, usockaddr_len), TP_STRUCT__entry(__field(int, fd) __field_hex(struct sockaddr *, usockaddr) __field_hex(int *, usockaddr_len)), @@ -741,7 +738,7 @@ TRACE_EVENT(sys_getsockname, ) #endif #ifndef OVERRIDE_sys_getpeername -TRACE_EVENT(sys_getpeername, +SC_TRACE_EVENT(sys_getpeername, TP_PROTO(int fd, struct sockaddr * usockaddr, int * usockaddr_len), TP_ARGS(fd, usockaddr, usockaddr_len), TP_STRUCT__entry(__field(int, fd) __field_hex(struct sockaddr *, usockaddr) __field_hex(int *, usockaddr_len)), @@ -750,7 +747,7 @@ TRACE_EVENT(sys_getpeername, ) #endif #ifndef OVERRIDE_sys_semop -TRACE_EVENT(sys_semop, +SC_TRACE_EVENT(sys_semop, TP_PROTO(int semid, struct sembuf * tsops, unsigned nsops), TP_ARGS(semid, tsops, nsops), TP_STRUCT__entry(__field(int, semid) __field_hex(struct sembuf *, tsops) __field(unsigned, nsops)), @@ -759,7 +756,7 @@ TRACE_EVENT(sys_semop, ) #endif #ifndef OVERRIDE_sys_msgctl -TRACE_EVENT(sys_msgctl, +SC_TRACE_EVENT(sys_msgctl, TP_PROTO(int msqid, int cmd, struct msqid_ds * buf), TP_ARGS(msqid, cmd, buf), TP_STRUCT__entry(__field(int, msqid) __field(int, cmd) __field_hex(struct msqid_ds *, buf)), @@ -768,7 +765,7 @@ TRACE_EVENT(sys_msgctl, ) #endif #ifndef OVERRIDE_sys_getdents -TRACE_EVENT(sys_getdents, +SC_TRACE_EVENT(sys_getdents, TP_PROTO(unsigned int fd, struct linux_dirent * dirent, unsigned int count), TP_ARGS(fd, dirent, count), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(struct linux_dirent *, dirent) __field(unsigned int, count)), @@ -777,7 +774,7 @@ TRACE_EVENT(sys_getdents, ) #endif #ifndef OVERRIDE_sys_readlink -TRACE_EVENT(sys_readlink, +SC_TRACE_EVENT(sys_readlink, TP_PROTO(const char * path, char * buf, int bufsiz), TP_ARGS(path, buf, bufsiz), TP_STRUCT__entry(__string(path, path) __field_hex(char *, buf) __field(int, bufsiz)), @@ -786,7 +783,7 @@ TRACE_EVENT(sys_readlink, ) #endif #ifndef OVERRIDE_sys_chown -TRACE_EVENT(sys_chown, +SC_TRACE_EVENT(sys_chown, TP_PROTO(const char * filename, uid_t user, gid_t group), TP_ARGS(filename, user, group), TP_STRUCT__entry(__string(filename, filename) __field(uid_t, user) __field(gid_t, group)), @@ -795,7 +792,7 @@ TRACE_EVENT(sys_chown, ) #endif #ifndef OVERRIDE_sys_lchown -TRACE_EVENT(sys_lchown, +SC_TRACE_EVENT(sys_lchown, TP_PROTO(const char * filename, uid_t user, gid_t group), TP_ARGS(filename, user, group), TP_STRUCT__entry(__string(filename, filename) __field(uid_t, user) __field(gid_t, group)), @@ -804,7 +801,7 @@ TRACE_EVENT(sys_lchown, ) #endif #ifndef OVERRIDE_sys_syslog -TRACE_EVENT(sys_syslog, +SC_TRACE_EVENT(sys_syslog, TP_PROTO(int type, char * buf, int len), TP_ARGS(type, buf, len), TP_STRUCT__entry(__field(int, type) __field_hex(char *, buf) __field(int, len)), @@ -813,7 +810,7 @@ TRACE_EVENT(sys_syslog, ) #endif #ifndef OVERRIDE_sys_getresuid -TRACE_EVENT(sys_getresuid, +SC_TRACE_EVENT(sys_getresuid, TP_PROTO(uid_t * ruid, uid_t * euid, uid_t * suid), TP_ARGS(ruid, euid, suid), TP_STRUCT__entry(__field_hex(uid_t *, ruid) __field_hex(uid_t *, euid) __field_hex(uid_t *, suid)), @@ -822,7 +819,7 @@ TRACE_EVENT(sys_getresuid, ) #endif #ifndef OVERRIDE_sys_getresgid -TRACE_EVENT(sys_getresgid, +SC_TRACE_EVENT(sys_getresgid, TP_PROTO(gid_t * rgid, gid_t * egid, gid_t * sgid), TP_ARGS(rgid, egid, sgid), TP_STRUCT__entry(__field_hex(gid_t *, rgid) __field_hex(gid_t *, egid) __field_hex(gid_t *, sgid)), @@ -831,7 +828,7 @@ TRACE_EVENT(sys_getresgid, ) #endif #ifndef OVERRIDE_sys_rt_sigqueueinfo -TRACE_EVENT(sys_rt_sigqueueinfo, +SC_TRACE_EVENT(sys_rt_sigqueueinfo, TP_PROTO(pid_t pid, int sig, siginfo_t * uinfo), TP_ARGS(pid, sig, uinfo), TP_STRUCT__entry(__field(pid_t, pid) __field(int, sig) __field_hex(siginfo_t *, uinfo)), @@ -840,7 +837,7 @@ TRACE_EVENT(sys_rt_sigqueueinfo, ) #endif #ifndef OVERRIDE_sys_mknod -TRACE_EVENT(sys_mknod, +SC_TRACE_EVENT(sys_mknod, TP_PROTO(const char * filename, int mode, unsigned dev), TP_ARGS(filename, mode, dev), TP_STRUCT__entry(__string(filename, filename) __field(int, mode) __field(unsigned, dev)), @@ -849,7 +846,7 @@ TRACE_EVENT(sys_mknod, ) #endif #ifndef OVERRIDE_sys_sched_setscheduler -TRACE_EVENT(sys_sched_setscheduler, +SC_TRACE_EVENT(sys_sched_setscheduler, TP_PROTO(pid_t pid, int policy, struct sched_param * param), TP_ARGS(pid, policy, param), TP_STRUCT__entry(__field(pid_t, pid) __field(int, policy) __field_hex(struct sched_param *, param)), @@ -858,7 +855,7 @@ TRACE_EVENT(sys_sched_setscheduler, ) #endif #ifndef OVERRIDE_sys_init_module -TRACE_EVENT(sys_init_module, +SC_TRACE_EVENT(sys_init_module, TP_PROTO(void * umod, unsigned long len, const char * uargs), TP_ARGS(umod, len, uargs), TP_STRUCT__entry(__field_hex(void *, umod) __field(unsigned long, len) __field_hex(const char *, uargs)), @@ -867,7 +864,7 @@ TRACE_EVENT(sys_init_module, ) #endif #ifndef OVERRIDE_sys_nfsservctl -TRACE_EVENT(sys_nfsservctl, +SC_TRACE_EVENT(sys_nfsservctl, TP_PROTO(int cmd, struct nfsctl_arg * arg, void * res), TP_ARGS(cmd, arg, res), TP_STRUCT__entry(__field(int, cmd) __field_hex(struct nfsctl_arg *, arg) __field_hex(void *, res)), @@ -876,7 +873,7 @@ TRACE_EVENT(sys_nfsservctl, ) #endif #ifndef OVERRIDE_sys_listxattr -TRACE_EVENT(sys_listxattr, +SC_TRACE_EVENT(sys_listxattr, TP_PROTO(const char * pathname, char * list, size_t size), TP_ARGS(pathname, list, size), TP_STRUCT__entry(__string(pathname, pathname) __field_hex(char *, list) __field(size_t, size)), @@ -885,7 +882,7 @@ TRACE_EVENT(sys_listxattr, ) #endif #ifndef OVERRIDE_sys_llistxattr -TRACE_EVENT(sys_llistxattr, +SC_TRACE_EVENT(sys_llistxattr, TP_PROTO(const char * pathname, char * list, size_t size), TP_ARGS(pathname, list, size), TP_STRUCT__entry(__string(pathname, pathname) __field_hex(char *, list) __field(size_t, size)), @@ -894,7 +891,7 @@ TRACE_EVENT(sys_llistxattr, ) #endif #ifndef OVERRIDE_sys_flistxattr -TRACE_EVENT(sys_flistxattr, +SC_TRACE_EVENT(sys_flistxattr, TP_PROTO(int fd, char * list, size_t size), TP_ARGS(fd, list, size), TP_STRUCT__entry(__field(int, fd) __field_hex(char *, list) __field(size_t, size)), @@ -903,7 +900,7 @@ TRACE_EVENT(sys_flistxattr, ) #endif #ifndef OVERRIDE_sys_sched_setaffinity -TRACE_EVENT(sys_sched_setaffinity, +SC_TRACE_EVENT(sys_sched_setaffinity, TP_PROTO(pid_t pid, unsigned int len, unsigned long * user_mask_ptr), TP_ARGS(pid, len, user_mask_ptr), TP_STRUCT__entry(__field(pid_t, pid) __field(unsigned int, len) __field_hex(unsigned long *, user_mask_ptr)), @@ -912,7 +909,7 @@ TRACE_EVENT(sys_sched_setaffinity, ) #endif #ifndef OVERRIDE_sys_sched_getaffinity -TRACE_EVENT(sys_sched_getaffinity, +SC_TRACE_EVENT(sys_sched_getaffinity, TP_PROTO(pid_t pid, unsigned int len, unsigned long * user_mask_ptr), TP_ARGS(pid, len, user_mask_ptr), TP_STRUCT__entry(__field(pid_t, pid) __field(unsigned int, len) __field_hex(unsigned long *, user_mask_ptr)), @@ -921,7 +918,7 @@ TRACE_EVENT(sys_sched_getaffinity, ) #endif #ifndef OVERRIDE_sys_io_submit -TRACE_EVENT(sys_io_submit, +SC_TRACE_EVENT(sys_io_submit, TP_PROTO(aio_context_t ctx_id, long nr, struct iocb * * iocbpp), TP_ARGS(ctx_id, nr, iocbpp), TP_STRUCT__entry(__field(aio_context_t, ctx_id) __field(long, nr) __field_hex(struct iocb * *, iocbpp)), @@ -930,7 +927,7 @@ TRACE_EVENT(sys_io_submit, ) #endif #ifndef OVERRIDE_sys_io_cancel -TRACE_EVENT(sys_io_cancel, +SC_TRACE_EVENT(sys_io_cancel, TP_PROTO(aio_context_t ctx_id, struct iocb * iocb, struct io_event * result), TP_ARGS(ctx_id, iocb, result), TP_STRUCT__entry(__field(aio_context_t, ctx_id) __field_hex(struct iocb *, iocb) __field_hex(struct io_event *, result)), @@ -939,7 +936,7 @@ TRACE_EVENT(sys_io_cancel, ) #endif #ifndef OVERRIDE_sys_getdents64 -TRACE_EVENT(sys_getdents64, +SC_TRACE_EVENT(sys_getdents64, TP_PROTO(unsigned int fd, struct linux_dirent64 * dirent, unsigned int count), TP_ARGS(fd, dirent, count), TP_STRUCT__entry(__field(unsigned int, fd) __field_hex(struct linux_dirent64 *, dirent) __field(unsigned int, count)), @@ -948,7 +945,7 @@ TRACE_EVENT(sys_getdents64, ) #endif #ifndef OVERRIDE_sys_timer_create -TRACE_EVENT(sys_timer_create, +SC_TRACE_EVENT(sys_timer_create, TP_PROTO(const clockid_t which_clock, struct sigevent * timer_event_spec, timer_t * created_timer_id), TP_ARGS(which_clock, timer_event_spec, created_timer_id), TP_STRUCT__entry(__field(const clockid_t, which_clock) __field_hex(struct sigevent *, timer_event_spec) __field_hex(timer_t *, created_timer_id)), @@ -957,7 +954,7 @@ TRACE_EVENT(sys_timer_create, ) #endif #ifndef OVERRIDE_sys_mq_getsetattr -TRACE_EVENT(sys_mq_getsetattr, +SC_TRACE_EVENT(sys_mq_getsetattr, TP_PROTO(mqd_t mqdes, const struct mq_attr * u_mqstat, struct mq_attr * u_omqstat), TP_ARGS(mqdes, u_mqstat, u_omqstat), TP_STRUCT__entry(__field(mqd_t, mqdes) __field_hex(const struct mq_attr *, u_mqstat) __field_hex(struct mq_attr *, u_omqstat)), @@ -966,7 +963,7 @@ TRACE_EVENT(sys_mq_getsetattr, ) #endif #ifndef OVERRIDE_sys_inotify_add_watch -TRACE_EVENT(sys_inotify_add_watch, +SC_TRACE_EVENT(sys_inotify_add_watch, TP_PROTO(int fd, const char * pathname, u32 mask), TP_ARGS(fd, pathname, mask), TP_STRUCT__entry(__field(int, fd) __string(pathname, pathname) __field(u32, mask)), @@ -975,7 +972,7 @@ TRACE_EVENT(sys_inotify_add_watch, ) #endif #ifndef OVERRIDE_sys_mkdirat -TRACE_EVENT(sys_mkdirat, +SC_TRACE_EVENT(sys_mkdirat, TP_PROTO(int dfd, const char * pathname, int mode), TP_ARGS(dfd, pathname, mode), TP_STRUCT__entry(__field(int, dfd) __string(pathname, pathname) __field(int, mode)), @@ -984,7 +981,7 @@ TRACE_EVENT(sys_mkdirat, ) #endif #ifndef OVERRIDE_sys_futimesat -TRACE_EVENT(sys_futimesat, +SC_TRACE_EVENT(sys_futimesat, TP_PROTO(int dfd, const char * filename, struct timeval * utimes), TP_ARGS(dfd, filename, utimes), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field_hex(struct timeval *, utimes)), @@ -993,7 +990,7 @@ TRACE_EVENT(sys_futimesat, ) #endif #ifndef OVERRIDE_sys_unlinkat -TRACE_EVENT(sys_unlinkat, +SC_TRACE_EVENT(sys_unlinkat, TP_PROTO(int dfd, const char * pathname, int flag), TP_ARGS(dfd, pathname, flag), TP_STRUCT__entry(__field(int, dfd) __string(pathname, pathname) __field(int, flag)), @@ -1002,7 +999,7 @@ TRACE_EVENT(sys_unlinkat, ) #endif #ifndef OVERRIDE_sys_symlinkat -TRACE_EVENT(sys_symlinkat, +SC_TRACE_EVENT(sys_symlinkat, TP_PROTO(const char * oldname, int newdfd, const char * newname), TP_ARGS(oldname, newdfd, newname), TP_STRUCT__entry(__string(oldname, oldname) __field(int, newdfd) __string(newname, newname)), @@ -1011,7 +1008,7 @@ TRACE_EVENT(sys_symlinkat, ) #endif #ifndef OVERRIDE_sys_fchmodat -TRACE_EVENT(sys_fchmodat, +SC_TRACE_EVENT(sys_fchmodat, TP_PROTO(int dfd, const char * filename, mode_t mode), TP_ARGS(dfd, filename, mode), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(mode_t, mode)), @@ -1020,7 +1017,7 @@ TRACE_EVENT(sys_fchmodat, ) #endif #ifndef OVERRIDE_sys_faccessat -TRACE_EVENT(sys_faccessat, +SC_TRACE_EVENT(sys_faccessat, TP_PROTO(int dfd, const char * filename, int mode), TP_ARGS(dfd, filename, mode), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(int, mode)), @@ -1029,7 +1026,7 @@ TRACE_EVENT(sys_faccessat, ) #endif #ifndef OVERRIDE_sys_get_robust_list -TRACE_EVENT(sys_get_robust_list, +SC_TRACE_EVENT(sys_get_robust_list, TP_PROTO(int pid, struct robust_list_head * * head_ptr, size_t * len_ptr), TP_ARGS(pid, head_ptr, len_ptr), TP_STRUCT__entry(__field(int, pid) __field_hex(struct robust_list_head * *, head_ptr) __field_hex(size_t *, len_ptr)), @@ -1038,7 +1035,7 @@ TRACE_EVENT(sys_get_robust_list, ) #endif #ifndef OVERRIDE_sys_signalfd -TRACE_EVENT(sys_signalfd, +SC_TRACE_EVENT(sys_signalfd, TP_PROTO(int ufd, sigset_t * user_mask, size_t sizemask), TP_ARGS(ufd, user_mask, sizemask), TP_STRUCT__entry(__field(int, ufd) __field_hex(sigset_t *, user_mask) __field(size_t, sizemask)), @@ -1047,7 +1044,7 @@ TRACE_EVENT(sys_signalfd, ) #endif #ifndef OVERRIDE_sys_rt_sigaction -TRACE_EVENT(sys_rt_sigaction, +SC_TRACE_EVENT(sys_rt_sigaction, TP_PROTO(int sig, const struct sigaction * act, struct sigaction * oact, size_t sigsetsize), TP_ARGS(sig, act, oact, sigsetsize), TP_STRUCT__entry(__field(int, sig) __field_hex(const struct sigaction *, act) __field_hex(struct sigaction *, oact) __field(size_t, sigsetsize)), @@ -1056,7 +1053,7 @@ TRACE_EVENT(sys_rt_sigaction, ) #endif #ifndef OVERRIDE_sys_rt_sigprocmask -TRACE_EVENT(sys_rt_sigprocmask, +SC_TRACE_EVENT(sys_rt_sigprocmask, TP_PROTO(int how, sigset_t * nset, sigset_t * oset, size_t sigsetsize), TP_ARGS(how, nset, oset, sigsetsize), TP_STRUCT__entry(__field(int, how) __field_hex(sigset_t *, nset) __field_hex(sigset_t *, oset) __field(size_t, sigsetsize)), @@ -1065,7 +1062,7 @@ TRACE_EVENT(sys_rt_sigprocmask, ) #endif #ifndef OVERRIDE_sys_sendfile64 -TRACE_EVENT(sys_sendfile64, +SC_TRACE_EVENT(sys_sendfile64, TP_PROTO(int out_fd, int in_fd, loff_t * offset, size_t count), TP_ARGS(out_fd, in_fd, offset, count), TP_STRUCT__entry(__field(int, out_fd) __field(int, in_fd) __field_hex(loff_t *, offset) __field(size_t, count)), @@ -1074,7 +1071,7 @@ TRACE_EVENT(sys_sendfile64, ) #endif #ifndef OVERRIDE_sys_socketpair -TRACE_EVENT(sys_socketpair, +SC_TRACE_EVENT(sys_socketpair, TP_PROTO(int family, int type, int protocol, int * usockvec), TP_ARGS(family, type, protocol, usockvec), TP_STRUCT__entry(__field(int, family) __field(int, type) __field(int, protocol) __field_hex(int *, usockvec)), @@ -1083,7 +1080,7 @@ TRACE_EVENT(sys_socketpair, ) #endif #ifndef OVERRIDE_sys_wait4 -TRACE_EVENT(sys_wait4, +SC_TRACE_EVENT(sys_wait4, TP_PROTO(pid_t upid, int * stat_addr, int options, struct rusage * ru), TP_ARGS(upid, stat_addr, options, ru), TP_STRUCT__entry(__field(pid_t, upid) __field_hex(int *, stat_addr) __field(int, options) __field_hex(struct rusage *, ru)), @@ -1092,7 +1089,7 @@ TRACE_EVENT(sys_wait4, ) #endif #ifndef OVERRIDE_sys_msgsnd -TRACE_EVENT(sys_msgsnd, +SC_TRACE_EVENT(sys_msgsnd, TP_PROTO(int msqid, struct msgbuf * msgp, size_t msgsz, int msgflg), TP_ARGS(msqid, msgp, msgsz, msgflg), TP_STRUCT__entry(__field(int, msqid) __field_hex(struct msgbuf *, msgp) __field(size_t, msgsz) __field(int, msgflg)), @@ -1101,7 +1098,7 @@ TRACE_EVENT(sys_msgsnd, ) #endif #ifndef OVERRIDE_sys_rt_sigtimedwait -TRACE_EVENT(sys_rt_sigtimedwait, +SC_TRACE_EVENT(sys_rt_sigtimedwait, TP_PROTO(const sigset_t * uthese, siginfo_t * uinfo, const struct timespec * uts, size_t sigsetsize), TP_ARGS(uthese, uinfo, uts, sigsetsize), TP_STRUCT__entry(__field_hex(const sigset_t *, uthese) __field_hex(siginfo_t *, uinfo) __field_hex(const struct timespec *, uts) __field(size_t, sigsetsize)), @@ -1110,7 +1107,7 @@ TRACE_EVENT(sys_rt_sigtimedwait, ) #endif #ifndef OVERRIDE_sys_reboot -TRACE_EVENT(sys_reboot, +SC_TRACE_EVENT(sys_reboot, TP_PROTO(int magic1, int magic2, unsigned int cmd, void * arg), TP_ARGS(magic1, magic2, cmd, arg), TP_STRUCT__entry(__field(int, magic1) __field(int, magic2) __field(unsigned int, cmd) __field_hex(void *, arg)), @@ -1119,7 +1116,7 @@ TRACE_EVENT(sys_reboot, ) #endif #ifndef OVERRIDE_sys_getxattr -TRACE_EVENT(sys_getxattr, +SC_TRACE_EVENT(sys_getxattr, TP_PROTO(const char * pathname, const char * name, void * value, size_t size), TP_ARGS(pathname, name, value, size), TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(void *, value) __field(size_t, size)), @@ -1128,7 +1125,7 @@ TRACE_EVENT(sys_getxattr, ) #endif #ifndef OVERRIDE_sys_lgetxattr -TRACE_EVENT(sys_lgetxattr, +SC_TRACE_EVENT(sys_lgetxattr, TP_PROTO(const char * pathname, const char * name, void * value, size_t size), TP_ARGS(pathname, name, value, size), TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(void *, value) __field(size_t, size)), @@ -1137,7 +1134,7 @@ TRACE_EVENT(sys_lgetxattr, ) #endif #ifndef OVERRIDE_sys_fgetxattr -TRACE_EVENT(sys_fgetxattr, +SC_TRACE_EVENT(sys_fgetxattr, TP_PROTO(int fd, const char * name, void * value, size_t size), TP_ARGS(fd, name, value, size), TP_STRUCT__entry(__field(int, fd) __string(name, name) __field_hex(void *, value) __field(size_t, size)), @@ -1146,7 +1143,7 @@ TRACE_EVENT(sys_fgetxattr, ) #endif #ifndef OVERRIDE_sys_semtimedop -TRACE_EVENT(sys_semtimedop, +SC_TRACE_EVENT(sys_semtimedop, TP_PROTO(int semid, struct sembuf * tsops, unsigned nsops, const struct timespec * timeout), TP_ARGS(semid, tsops, nsops, timeout), TP_STRUCT__entry(__field(int, semid) __field_hex(struct sembuf *, tsops) __field(unsigned, nsops) __field_hex(const struct timespec *, timeout)), @@ -1155,7 +1152,7 @@ TRACE_EVENT(sys_semtimedop, ) #endif #ifndef OVERRIDE_sys_timer_settime -TRACE_EVENT(sys_timer_settime, +SC_TRACE_EVENT(sys_timer_settime, TP_PROTO(timer_t timer_id, int flags, const struct itimerspec * new_setting, struct itimerspec * old_setting), TP_ARGS(timer_id, flags, new_setting, old_setting), TP_STRUCT__entry(__field(timer_t, timer_id) __field(int, flags) __field_hex(const struct itimerspec *, new_setting) __field_hex(struct itimerspec *, old_setting)), @@ -1164,7 +1161,7 @@ TRACE_EVENT(sys_timer_settime, ) #endif #ifndef OVERRIDE_sys_clock_nanosleep -TRACE_EVENT(sys_clock_nanosleep, +SC_TRACE_EVENT(sys_clock_nanosleep, TP_PROTO(const clockid_t which_clock, int flags, const struct timespec * rqtp, struct timespec * rmtp), TP_ARGS(which_clock, flags, rqtp, rmtp), TP_STRUCT__entry(__field(const clockid_t, which_clock) __field(int, flags) __field_hex(const struct timespec *, rqtp) __field_hex(struct timespec *, rmtp)), @@ -1173,7 +1170,7 @@ TRACE_EVENT(sys_clock_nanosleep, ) #endif #ifndef OVERRIDE_sys_epoll_wait -TRACE_EVENT(sys_epoll_wait, +SC_TRACE_EVENT(sys_epoll_wait, TP_PROTO(int epfd, struct epoll_event * events, int maxevents, int timeout), TP_ARGS(epfd, events, maxevents, timeout), TP_STRUCT__entry(__field(int, epfd) __field_hex(struct epoll_event *, events) __field(int, maxevents) __field(int, timeout)), @@ -1182,7 +1179,7 @@ TRACE_EVENT(sys_epoll_wait, ) #endif #ifndef OVERRIDE_sys_epoll_ctl -TRACE_EVENT(sys_epoll_ctl, +SC_TRACE_EVENT(sys_epoll_ctl, TP_PROTO(int epfd, int op, int fd, struct epoll_event * event), TP_ARGS(epfd, op, fd, event), TP_STRUCT__entry(__field(int, epfd) __field(int, op) __field(int, fd) __field_hex(struct epoll_event *, event)), @@ -1191,7 +1188,7 @@ TRACE_EVENT(sys_epoll_ctl, ) #endif #ifndef OVERRIDE_sys_mq_open -TRACE_EVENT(sys_mq_open, +SC_TRACE_EVENT(sys_mq_open, TP_PROTO(const char * u_name, int oflag, mode_t mode, struct mq_attr * u_attr), TP_ARGS(u_name, oflag, mode, u_attr), TP_STRUCT__entry(__string(u_name, u_name) __field(int, oflag) __field(mode_t, mode) __field_hex(struct mq_attr *, u_attr)), @@ -1200,7 +1197,7 @@ TRACE_EVENT(sys_mq_open, ) #endif #ifndef OVERRIDE_sys_kexec_load -TRACE_EVENT(sys_kexec_load, +SC_TRACE_EVENT(sys_kexec_load, TP_PROTO(unsigned long entry, unsigned long nr_segments, struct kexec_segment * segments, unsigned long flags), TP_ARGS(entry, nr_segments, segments, flags), TP_STRUCT__entry(__field(unsigned long, entry) __field(unsigned long, nr_segments) __field_hex(struct kexec_segment *, segments) __field(unsigned long, flags)), @@ -1209,7 +1206,7 @@ TRACE_EVENT(sys_kexec_load, ) #endif #ifndef OVERRIDE_sys_openat -TRACE_EVENT(sys_openat, +SC_TRACE_EVENT(sys_openat, TP_PROTO(int dfd, const char * filename, int flags, int mode), TP_ARGS(dfd, filename, flags, mode), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(int, flags) __field(int, mode)), @@ -1218,7 +1215,7 @@ TRACE_EVENT(sys_openat, ) #endif #ifndef OVERRIDE_sys_mknodat -TRACE_EVENT(sys_mknodat, +SC_TRACE_EVENT(sys_mknodat, TP_PROTO(int dfd, const char * filename, int mode, unsigned dev), TP_ARGS(dfd, filename, mode, dev), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(int, mode) __field(unsigned, dev)), @@ -1227,7 +1224,7 @@ TRACE_EVENT(sys_mknodat, ) #endif #ifndef OVERRIDE_sys_newfstatat -TRACE_EVENT(sys_newfstatat, +SC_TRACE_EVENT(sys_newfstatat, TP_PROTO(int dfd, const char * filename, struct stat * statbuf, int flag), TP_ARGS(dfd, filename, statbuf, flag), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field_hex(struct stat *, statbuf) __field(int, flag)), @@ -1236,7 +1233,7 @@ TRACE_EVENT(sys_newfstatat, ) #endif #ifndef OVERRIDE_sys_renameat -TRACE_EVENT(sys_renameat, +SC_TRACE_EVENT(sys_renameat, TP_PROTO(int olddfd, const char * oldname, int newdfd, const char * newname), TP_ARGS(olddfd, oldname, newdfd, newname), TP_STRUCT__entry(__field(int, olddfd) __string(oldname, oldname) __field(int, newdfd) __string(newname, newname)), @@ -1245,7 +1242,7 @@ TRACE_EVENT(sys_renameat, ) #endif #ifndef OVERRIDE_sys_readlinkat -TRACE_EVENT(sys_readlinkat, +SC_TRACE_EVENT(sys_readlinkat, TP_PROTO(int dfd, const char * pathname, char * buf, int bufsiz), TP_ARGS(dfd, pathname, buf, bufsiz), TP_STRUCT__entry(__field(int, dfd) __string(pathname, pathname) __field_hex(char *, buf) __field(int, bufsiz)), @@ -1254,7 +1251,7 @@ TRACE_EVENT(sys_readlinkat, ) #endif #ifndef OVERRIDE_sys_vmsplice -TRACE_EVENT(sys_vmsplice, +SC_TRACE_EVENT(sys_vmsplice, TP_PROTO(int fd, const struct iovec * iov, unsigned long nr_segs, unsigned int flags), TP_ARGS(fd, iov, nr_segs, flags), TP_STRUCT__entry(__field(int, fd) __field_hex(const struct iovec *, iov) __field(unsigned long, nr_segs) __field(unsigned int, flags)), @@ -1263,7 +1260,7 @@ TRACE_EVENT(sys_vmsplice, ) #endif #ifndef OVERRIDE_sys_utimensat -TRACE_EVENT(sys_utimensat, +SC_TRACE_EVENT(sys_utimensat, TP_PROTO(int dfd, const char * filename, struct timespec * utimes, int flags), TP_ARGS(dfd, filename, utimes, flags), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field_hex(struct timespec *, utimes) __field(int, flags)), @@ -1272,7 +1269,7 @@ TRACE_EVENT(sys_utimensat, ) #endif #ifndef OVERRIDE_sys_timerfd_settime -TRACE_EVENT(sys_timerfd_settime, +SC_TRACE_EVENT(sys_timerfd_settime, TP_PROTO(int ufd, int flags, const struct itimerspec * utmr, struct itimerspec * otmr), TP_ARGS(ufd, flags, utmr, otmr), TP_STRUCT__entry(__field(int, ufd) __field(int, flags) __field_hex(const struct itimerspec *, utmr) __field_hex(struct itimerspec *, otmr)), @@ -1281,7 +1278,7 @@ TRACE_EVENT(sys_timerfd_settime, ) #endif #ifndef OVERRIDE_sys_accept4 -TRACE_EVENT(sys_accept4, +SC_TRACE_EVENT(sys_accept4, TP_PROTO(int fd, struct sockaddr * upeer_sockaddr, int * upeer_addrlen, int flags), TP_ARGS(fd, upeer_sockaddr, upeer_addrlen, flags), TP_STRUCT__entry(__field(int, fd) __field_hex(struct sockaddr *, upeer_sockaddr) __field_hex(int *, upeer_addrlen) __field(int, flags)), @@ -1290,7 +1287,7 @@ TRACE_EVENT(sys_accept4, ) #endif #ifndef OVERRIDE_sys_signalfd4 -TRACE_EVENT(sys_signalfd4, +SC_TRACE_EVENT(sys_signalfd4, TP_PROTO(int ufd, sigset_t * user_mask, size_t sizemask, int flags), TP_ARGS(ufd, user_mask, sizemask, flags), TP_STRUCT__entry(__field(int, ufd) __field_hex(sigset_t *, user_mask) __field(size_t, sizemask) __field(int, flags)), @@ -1299,7 +1296,7 @@ TRACE_EVENT(sys_signalfd4, ) #endif #ifndef OVERRIDE_sys_rt_tgsigqueueinfo -TRACE_EVENT(sys_rt_tgsigqueueinfo, +SC_TRACE_EVENT(sys_rt_tgsigqueueinfo, TP_PROTO(pid_t tgid, pid_t pid, int sig, siginfo_t * uinfo), TP_ARGS(tgid, pid, sig, uinfo), TP_STRUCT__entry(__field(pid_t, tgid) __field(pid_t, pid) __field(int, sig) __field_hex(siginfo_t *, uinfo)), @@ -1308,7 +1305,7 @@ TRACE_EVENT(sys_rt_tgsigqueueinfo, ) #endif #ifndef OVERRIDE_sys_prlimit64 -TRACE_EVENT(sys_prlimit64, +SC_TRACE_EVENT(sys_prlimit64, TP_PROTO(pid_t pid, unsigned int resource, const struct rlimit64 * new_rlim, struct rlimit64 * old_rlim), TP_ARGS(pid, resource, new_rlim, old_rlim), TP_STRUCT__entry(__field(pid_t, pid) __field(unsigned int, resource) __field_hex(const struct rlimit64 *, new_rlim) __field_hex(struct rlimit64 *, old_rlim)), @@ -1317,7 +1314,7 @@ TRACE_EVENT(sys_prlimit64, ) #endif #ifndef OVERRIDE_sys_sendmmsg -TRACE_EVENT(sys_sendmmsg, +SC_TRACE_EVENT(sys_sendmmsg, TP_PROTO(int fd, struct mmsghdr * mmsg, unsigned int vlen, unsigned int flags), TP_ARGS(fd, mmsg, vlen, flags), TP_STRUCT__entry(__field(int, fd) __field_hex(struct mmsghdr *, mmsg) __field(unsigned int, vlen) __field(unsigned int, flags)), @@ -1326,7 +1323,7 @@ TRACE_EVENT(sys_sendmmsg, ) #endif #ifndef OVERRIDE_sys_select -TRACE_EVENT(sys_select, +SC_TRACE_EVENT(sys_select, TP_PROTO(int n, fd_set * inp, fd_set * outp, fd_set * exp, struct timeval * tvp), TP_ARGS(n, inp, outp, exp, tvp), TP_STRUCT__entry(__field(int, n) __field_hex(fd_set *, inp) __field_hex(fd_set *, outp) __field_hex(fd_set *, exp) __field_hex(struct timeval *, tvp)), @@ -1335,7 +1332,7 @@ TRACE_EVENT(sys_select, ) #endif #ifndef OVERRIDE_sys_setsockopt -TRACE_EVENT(sys_setsockopt, +SC_TRACE_EVENT(sys_setsockopt, TP_PROTO(int fd, int level, int optname, char * optval, int optlen), TP_ARGS(fd, level, optname, optval, optlen), TP_STRUCT__entry(__field(int, fd) __field(int, level) __field(int, optname) __field_hex(char *, optval) __field(int, optlen)), @@ -1344,7 +1341,7 @@ TRACE_EVENT(sys_setsockopt, ) #endif #ifndef OVERRIDE_sys_getsockopt -TRACE_EVENT(sys_getsockopt, +SC_TRACE_EVENT(sys_getsockopt, TP_PROTO(int fd, int level, int optname, char * optval, int * optlen), TP_ARGS(fd, level, optname, optval, optlen), TP_STRUCT__entry(__field(int, fd) __field(int, level) __field(int, optname) __field_hex(char *, optval) __field_hex(int *, optlen)), @@ -1353,7 +1350,7 @@ TRACE_EVENT(sys_getsockopt, ) #endif #ifndef OVERRIDE_sys_msgrcv -TRACE_EVENT(sys_msgrcv, +SC_TRACE_EVENT(sys_msgrcv, TP_PROTO(int msqid, struct msgbuf * msgp, size_t msgsz, long msgtyp, int msgflg), TP_ARGS(msqid, msgp, msgsz, msgtyp, msgflg), TP_STRUCT__entry(__field(int, msqid) __field_hex(struct msgbuf *, msgp) __field(size_t, msgsz) __field(long, msgtyp) __field(int, msgflg)), @@ -1362,7 +1359,7 @@ TRACE_EVENT(sys_msgrcv, ) #endif #ifndef OVERRIDE_sys_mount -TRACE_EVENT(sys_mount, +SC_TRACE_EVENT(sys_mount, TP_PROTO(char * dev_name, char * dir_name, char * type, unsigned long flags, void * data), TP_ARGS(dev_name, dir_name, type, flags, data), TP_STRUCT__entry(__string(dev_name, dev_name) __string(dir_name, dir_name) __field_hex(char *, type) __field(unsigned long, flags) __field_hex(void *, data)), @@ -1371,7 +1368,7 @@ TRACE_EVENT(sys_mount, ) #endif #ifndef OVERRIDE_sys_setxattr -TRACE_EVENT(sys_setxattr, +SC_TRACE_EVENT(sys_setxattr, TP_PROTO(const char * pathname, const char * name, const void * value, size_t size, int flags), TP_ARGS(pathname, name, value, size, flags), TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)), @@ -1380,7 +1377,7 @@ TRACE_EVENT(sys_setxattr, ) #endif #ifndef OVERRIDE_sys_lsetxattr -TRACE_EVENT(sys_lsetxattr, +SC_TRACE_EVENT(sys_lsetxattr, TP_PROTO(const char * pathname, const char * name, const void * value, size_t size, int flags), TP_ARGS(pathname, name, value, size, flags), TP_STRUCT__entry(__string(pathname, pathname) __string(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)), @@ -1389,7 +1386,7 @@ TRACE_EVENT(sys_lsetxattr, ) #endif #ifndef OVERRIDE_sys_fsetxattr -TRACE_EVENT(sys_fsetxattr, +SC_TRACE_EVENT(sys_fsetxattr, TP_PROTO(int fd, const char * name, const void * value, size_t size, int flags), TP_ARGS(fd, name, value, size, flags), TP_STRUCT__entry(__field(int, fd) __string(name, name) __field_hex(const void *, value) __field(size_t, size) __field(int, flags)), @@ -1398,7 +1395,7 @@ TRACE_EVENT(sys_fsetxattr, ) #endif #ifndef OVERRIDE_sys_io_getevents -TRACE_EVENT(sys_io_getevents, +SC_TRACE_EVENT(sys_io_getevents, TP_PROTO(aio_context_t ctx_id, long min_nr, long nr, struct io_event * events, struct timespec * timeout), TP_ARGS(ctx_id, min_nr, nr, events, timeout), TP_STRUCT__entry(__field(aio_context_t, ctx_id) __field(long, min_nr) __field(long, nr) __field_hex(struct io_event *, events) __field_hex(struct timespec *, timeout)), @@ -1407,7 +1404,7 @@ TRACE_EVENT(sys_io_getevents, ) #endif #ifndef OVERRIDE_sys_mq_timedsend -TRACE_EVENT(sys_mq_timedsend, +SC_TRACE_EVENT(sys_mq_timedsend, TP_PROTO(mqd_t mqdes, const char * u_msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec * u_abs_timeout), TP_ARGS(mqdes, u_msg_ptr, msg_len, msg_prio, u_abs_timeout), TP_STRUCT__entry(__field(mqd_t, mqdes) __field_hex(const char *, u_msg_ptr) __field(size_t, msg_len) __field(unsigned int, msg_prio) __field_hex(const struct timespec *, u_abs_timeout)), @@ -1416,7 +1413,7 @@ TRACE_EVENT(sys_mq_timedsend, ) #endif #ifndef OVERRIDE_sys_mq_timedreceive -TRACE_EVENT(sys_mq_timedreceive, +SC_TRACE_EVENT(sys_mq_timedreceive, TP_PROTO(mqd_t mqdes, char * u_msg_ptr, size_t msg_len, unsigned int * u_msg_prio, const struct timespec * u_abs_timeout), TP_ARGS(mqdes, u_msg_ptr, msg_len, u_msg_prio, u_abs_timeout), TP_STRUCT__entry(__field(mqd_t, mqdes) __field_hex(char *, u_msg_ptr) __field(size_t, msg_len) __field_hex(unsigned int *, u_msg_prio) __field_hex(const struct timespec *, u_abs_timeout)), @@ -1425,7 +1422,7 @@ TRACE_EVENT(sys_mq_timedreceive, ) #endif #ifndef OVERRIDE_sys_waitid -TRACE_EVENT(sys_waitid, +SC_TRACE_EVENT(sys_waitid, TP_PROTO(int which, pid_t upid, struct siginfo * infop, int options, struct rusage * ru), TP_ARGS(which, upid, infop, options, ru), TP_STRUCT__entry(__field(int, which) __field(pid_t, upid) __field_hex(struct siginfo *, infop) __field(int, options) __field_hex(struct rusage *, ru)), @@ -1434,7 +1431,7 @@ TRACE_EVENT(sys_waitid, ) #endif #ifndef OVERRIDE_sys_fchownat -TRACE_EVENT(sys_fchownat, +SC_TRACE_EVENT(sys_fchownat, TP_PROTO(int dfd, const char * filename, uid_t user, gid_t group, int flag), TP_ARGS(dfd, filename, user, group, flag), TP_STRUCT__entry(__field(int, dfd) __string(filename, filename) __field(uid_t, user) __field(gid_t, group) __field(int, flag)), @@ -1443,7 +1440,7 @@ TRACE_EVENT(sys_fchownat, ) #endif #ifndef OVERRIDE_sys_linkat -TRACE_EVENT(sys_linkat, +SC_TRACE_EVENT(sys_linkat, TP_PROTO(int olddfd, const char * oldname, int newdfd, const char * newname, int flags), TP_ARGS(olddfd, oldname, newdfd, newname, flags), TP_STRUCT__entry(__field(int, olddfd) __string(oldname, oldname) __field(int, newdfd) __string(newname, newname) __field(int, flags)), @@ -1452,7 +1449,7 @@ TRACE_EVENT(sys_linkat, ) #endif #ifndef OVERRIDE_sys_ppoll -TRACE_EVENT(sys_ppoll, +SC_TRACE_EVENT(sys_ppoll, TP_PROTO(struct pollfd * ufds, unsigned int nfds, struct timespec * tsp, const sigset_t * sigmask, size_t sigsetsize), TP_ARGS(ufds, nfds, tsp, sigmask, sigsetsize), TP_STRUCT__entry(__field_hex(struct pollfd *, ufds) __field(unsigned int, nfds) __field_hex(struct timespec *, tsp) __field_hex(const sigset_t *, sigmask) __field(size_t, sigsetsize)), @@ -1461,7 +1458,7 @@ TRACE_EVENT(sys_ppoll, ) #endif #ifndef OVERRIDE_sys_preadv -TRACE_EVENT(sys_preadv, +SC_TRACE_EVENT(sys_preadv, TP_PROTO(unsigned long fd, const struct iovec * vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h), TP_ARGS(fd, vec, vlen, pos_l, pos_h), TP_STRUCT__entry(__field(unsigned long, fd) __field_hex(const struct iovec *, vec) __field(unsigned long, vlen) __field(unsigned long, pos_l) __field(unsigned long, pos_h)), @@ -1470,7 +1467,7 @@ TRACE_EVENT(sys_preadv, ) #endif #ifndef OVERRIDE_sys_pwritev -TRACE_EVENT(sys_pwritev, +SC_TRACE_EVENT(sys_pwritev, TP_PROTO(unsigned long fd, const struct iovec * vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h), TP_ARGS(fd, vec, vlen, pos_l, pos_h), TP_STRUCT__entry(__field(unsigned long, fd) __field_hex(const struct iovec *, vec) __field(unsigned long, vlen) __field(unsigned long, pos_l) __field(unsigned long, pos_h)), @@ -1479,7 +1476,7 @@ TRACE_EVENT(sys_pwritev, ) #endif #ifndef OVERRIDE_sys_perf_event_open -TRACE_EVENT(sys_perf_event_open, +SC_TRACE_EVENT(sys_perf_event_open, TP_PROTO(struct perf_event_attr * attr_uptr, pid_t pid, int cpu, int group_fd, unsigned long flags), TP_ARGS(attr_uptr, pid, cpu, group_fd, flags), TP_STRUCT__entry(__field_hex(struct perf_event_attr *, attr_uptr) __field(pid_t, pid) __field(int, cpu) __field(int, group_fd) __field(unsigned long, flags)), @@ -1488,7 +1485,7 @@ TRACE_EVENT(sys_perf_event_open, ) #endif #ifndef OVERRIDE_sys_recvmmsg -TRACE_EVENT(sys_recvmmsg, +SC_TRACE_EVENT(sys_recvmmsg, TP_PROTO(int fd, struct mmsghdr * mmsg, unsigned int vlen, unsigned int flags, struct timespec * timeout), TP_ARGS(fd, mmsg, vlen, flags, timeout), TP_STRUCT__entry(__field(int, fd) __field_hex(struct mmsghdr *, mmsg) __field(unsigned int, vlen) __field(unsigned int, flags) __field_hex(struct timespec *, timeout)), @@ -1497,7 +1494,7 @@ TRACE_EVENT(sys_recvmmsg, ) #endif #ifndef OVERRIDE_sys_sendto -TRACE_EVENT(sys_sendto, +SC_TRACE_EVENT(sys_sendto, TP_PROTO(int fd, void * buff, size_t len, unsigned flags, struct sockaddr * addr, int addr_len), TP_ARGS(fd, buff, len, flags, addr, addr_len), TP_STRUCT__entry(__field(int, fd) __field_hex(void *, buff) __field(size_t, len) __field(unsigned, flags) __field_hex(struct sockaddr *, addr) __field_hex(int, addr_len)), @@ -1506,7 +1503,7 @@ TRACE_EVENT(sys_sendto, ) #endif #ifndef OVERRIDE_sys_recvfrom -TRACE_EVENT(sys_recvfrom, +SC_TRACE_EVENT(sys_recvfrom, TP_PROTO(int fd, void * ubuf, size_t size, unsigned flags, struct sockaddr * addr, int * addr_len), TP_ARGS(fd, ubuf, size, flags, addr, addr_len), TP_STRUCT__entry(__field(int, fd) __field_hex(void *, ubuf) __field(size_t, size) __field(unsigned, flags) __field_hex(struct sockaddr *, addr) __field_hex(int *, addr_len)), @@ -1515,7 +1512,7 @@ TRACE_EVENT(sys_recvfrom, ) #endif #ifndef OVERRIDE_sys_futex -TRACE_EVENT(sys_futex, +SC_TRACE_EVENT(sys_futex, TP_PROTO(u32 * uaddr, int op, u32 val, struct timespec * utime, u32 * uaddr2, u32 val3), TP_ARGS(uaddr, op, val, utime, uaddr2, val3), TP_STRUCT__entry(__field_hex(u32 *, uaddr) __field(int, op) __field(u32, val) __field_hex(struct timespec *, utime) __field_hex(u32 *, uaddr2) __field(u32, val3)), @@ -1524,7 +1521,7 @@ TRACE_EVENT(sys_futex, ) #endif #ifndef OVERRIDE_sys_pselect6 -TRACE_EVENT(sys_pselect6, +SC_TRACE_EVENT(sys_pselect6, TP_PROTO(int n, fd_set * inp, fd_set * outp, fd_set * exp, struct timespec * tsp, void * sig), TP_ARGS(n, inp, outp, exp, tsp, sig), TP_STRUCT__entry(__field(int, n) __field_hex(fd_set *, inp) __field_hex(fd_set *, outp) __field_hex(fd_set *, exp) __field_hex(struct timespec *, tsp) __field_hex(void *, sig)), @@ -1533,7 +1530,7 @@ TRACE_EVENT(sys_pselect6, ) #endif #ifndef OVERRIDE_sys_splice -TRACE_EVENT(sys_splice, +SC_TRACE_EVENT(sys_splice, TP_PROTO(int fd_in, loff_t * off_in, int fd_out, loff_t * off_out, size_t len, unsigned int flags), TP_ARGS(fd_in, off_in, fd_out, off_out, len, flags), TP_STRUCT__entry(__field(int, fd_in) __field_hex(loff_t *, off_in) __field(int, fd_out) __field_hex(loff_t *, off_out) __field(size_t, len) __field(unsigned int, flags)), @@ -1542,7 +1539,7 @@ TRACE_EVENT(sys_splice, ) #endif #ifndef OVERRIDE_sys_epoll_pwait -TRACE_EVENT(sys_epoll_pwait, +SC_TRACE_EVENT(sys_epoll_pwait, TP_PROTO(int epfd, struct epoll_event * events, int maxevents, int timeout, const sigset_t * sigmask, size_t sigsetsize), TP_ARGS(epfd, events, maxevents, timeout, sigmask, sigsetsize), TP_STRUCT__entry(__field(int, epfd) __field_hex(struct epoll_event *, events) __field(int, maxevents) __field(int, timeout) __field_hex(const sigset_t *, sigmask) __field(size_t, sigsetsize)), diff --git a/instrumentation/syscalls/lttng-syscalls-generate-headers.sh b/instrumentation/syscalls/lttng-syscalls-generate-headers.sh index 8d53d4ce..c7dd6547 100644 --- a/instrumentation/syscalls/lttng-syscalls-generate-headers.sh +++ b/instrumentation/syscalls/lttng-syscalls-generate-headers.sh @@ -45,9 +45,6 @@ echo "/* THIS FILE IS AUTO-GENERATED. DO NOT EDIT */" > ${HEADER} echo \ "#ifndef CREATE_SYSCALL_TABLE -#undef TRACE_SYSTEM -#define TRACE_SYSTEM syscalls_${CLASS} - #if !defined(_TRACE_SYSCALLS_${CLASSCAP}_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_SYSCALLS_${CLASSCAP}_H @@ -61,7 +58,7 @@ if [ "$CLASS" = integers ]; then NRARGS=0 echo \ -'DECLARE_EVENT_CLASS_NOARGS(syscalls_noargs,\n'\ +'SC_DECLARE_EVENT_CLASS_NOARGS(syscalls_noargs,\n'\ ' TP_STRUCT__entry(),\n'\ ' TP_fast_assign(),\n'\ ' TP_printk()\n'\ @@ -73,7 +70,7 @@ perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ 'types: \(([^)]*)\) '\ 'args: \(([^)]*)\)/'\ '#ifndef OVERRIDE_sys_$1\n'\ -'DEFINE_EVENT_NOARGS(syscalls_noargs, sys_$1)\n'\ +'SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_$1)\n'\ '#endif/g'\ ${TMPFILE} >> ${HEADER} @@ -89,7 +86,7 @@ perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ 'types: \(([^)]*)\) '\ 'args: \(([^)]*)\)/'\ '#ifndef OVERRIDE_sys_$1\n'\ -'TRACE_EVENT(sys_$1,\n'\ +'SC_TRACE_EVENT(sys_$1,\n'\ ' TP_PROTO($4 $5),\n'\ ' TP_ARGS($5),\n'\ ' TP_STRUCT__entry(__field($4, $5)),\n'\ @@ -108,7 +105,7 @@ perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ 'types: \(([^,]*), ([^)]*)\) '\ 'args: \(([^,]*), ([^)]*)\)/'\ '#ifndef OVERRIDE_sys_$1\n'\ -'TRACE_EVENT(sys_$1,\n'\ +'SC_TRACE_EVENT(sys_$1,\n'\ ' TP_PROTO($4 $6, $5 $7),\n'\ ' TP_ARGS($6, $7),\n'\ ' TP_STRUCT__entry(__field($4, $6) __field($5, $7)),\n'\ @@ -127,7 +124,7 @@ perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ 'types: \(([^,]*), ([^,]*), ([^)]*)\) '\ 'args: \(([^,]*), ([^,]*), ([^)]*)\)/'\ '#ifndef OVERRIDE_sys_$1\n'\ -'TRACE_EVENT(sys_$1,\n'\ +'SC_TRACE_EVENT(sys_$1,\n'\ ' TP_PROTO($4 $7, $5 $8, $6 $9),\n'\ ' TP_ARGS($7, $8, $9),\n'\ ' TP_STRUCT__entry(__field($4, $7) __field($5, $8) __field($6, $9)),\n'\ @@ -147,7 +144,7 @@ perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ 'types: \(([^,]*), ([^,]*), ([^,]*), ([^)]*)\) '\ 'args: \(([^,]*), ([^,]*), ([^,]*), ([^)]*)\)/'\ '#ifndef OVERRIDE_sys_$1\n'\ -'TRACE_EVENT(sys_$1,\n'\ +'SC_TRACE_EVENT(sys_$1,\n'\ ' TP_PROTO($4 $8, $5 $9, $6 $10, $7 $11),\n'\ ' TP_ARGS($8, $9, $10, $11),\n'\ ' TP_STRUCT__entry(__field($4, $8) __field($5, $9) __field($6, $10) __field($7, $11)),\n'\ @@ -166,7 +163,7 @@ perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ 'types: \(([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^)]*)\) '\ 'args: \(([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^)]*)\)/'\ '#ifndef OVERRIDE_sys_$1\n'\ -'TRACE_EVENT(sys_$1,\n'\ +'SC_TRACE_EVENT(sys_$1,\n'\ ' TP_PROTO($4 $9, $5 $10, $6 $11, $7 $12, $8 $13),\n'\ ' TP_ARGS($9, $10, $11, $12, $13),\n'\ ' TP_STRUCT__entry(__field($4, $9) __field($5, $10) __field($6, $11) __field($7, $12) __field($8, $13)),\n'\ @@ -186,7 +183,7 @@ perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ 'types: \(([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^\)]*)\) '\ 'args: \(([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^\)]*)\)/'\ '#ifndef OVERRIDE_sys_$1\n'\ -'TRACE_EVENT(sys_$1,\n'\ +'SC_TRACE_EVENT(sys_$1,\n'\ ' TP_PROTO($4 $10, $5 $11, $6 $12, $7 $13, $8 $14, $9 $15),\n'\ ' TP_ARGS($10, $11, $12, $13, $14, $15),\n'\ ' TP_STRUCT__entry(__field($4, $10) __field($5, $11) __field($6, $12) __field($7, $13) __field($8, $14) __field($9, $15)),\n'\ diff --git a/ltt-events.h b/ltt-events.h index e3f0daaa..3ffdcf46 100644 --- a/ltt-events.h +++ b/ltt-events.h @@ -267,13 +267,6 @@ struct ltt_session { int metadata_dumped:1; }; -struct trace_syscall_entry { - void *func; - const struct lttng_event_desc *desc; - const struct lttng_event_field *fields; - unsigned int nrargs; -}; - struct ltt_session *ltt_session_create(void); int ltt_session_enable(struct ltt_session *session); int ltt_session_disable(struct ltt_session *session); diff --git a/lttng-syscalls.c b/lttng-syscalls.c index 52c94f15..e032e940 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -23,6 +23,7 @@ static inline int is_compat_task(void) } #endif +static void syscall_entry_probe(void *__data, struct pt_regs *regs, long id); /* @@ -40,18 +41,74 @@ void syscall_entry_probe(void *__data, struct pt_regs *regs, long id); #define TP_MODULE_OVERRIDE #define TRACE_INCLUDE_PATH ../instrumentation/syscalls/headers +#define PARAMS(args...) args + /* Hijack probe callback for system calls */ +#undef TP_PROBE_CB #define TP_PROBE_CB(_template) &syscall_entry_probe +#define SC_TRACE_EVENT(_name, _proto, _args, _struct, _assign, _printk) \ + TRACE_EVENT(_name, PARAMS(_proto), PARAMS(_args),\ + PARAMS(_struct), PARAMS(_assign), PARAMS(_printk)) +#define SC_DECLARE_EVENT_CLASS_NOARGS(_name, _struct, _assign, _printk) \ + DECLARE_EVENT_CLASS_NOARGS(_name, PARAMS(_struct), PARAMS(_assign),\ + PARAMS(_printk)) +#define SC_DEFINE_EVENT_NOARGS(_template, _name) \ + DEFINE_EVENT_NOARGS(_template, _name) +#undef TRACE_SYSTEM +#define TRACE_SYSTEM syscalls_integers #include "instrumentation/syscalls/headers/syscalls_integers.h" +#undef TRACE_SYSTEM +#define TRACE_SYSTEM syscalls_pointers #include "instrumentation/syscalls/headers/syscalls_pointers.h" -#undef TP_PROBE_CB +#undef TRACE_SYSTEM +#undef SC_TRACE_EVENT +#undef SC_DECLARE_EVENT_CLASS_NOARGS +#undef SC_DEFINE_EVENT_NOARGS +#define TRACE_SYSTEM syscalls_unknown #include "instrumentation/syscalls/headers/syscalls_unknown.h" +#undef TRACE_SYSTEM + +/* For compat syscalls */ +#undef _TRACE_SYSCALLS_integers_H +#undef _TRACE_SYSCALLS_pointers_H + +/* Hijack probe callback for system calls */ +#undef TP_PROBE_CB +#define TP_PROBE_CB(_template) &syscall_entry_probe +#define SC_TRACE_EVENT(_name, _proto, _args, _struct, _assign, _printk) \ + TRACE_EVENT(compat_##_name, PARAMS(_proto), PARAMS(_args), \ + PARAMS(_struct), PARAMS(_assign), \ + PARAMS(_printk)) +#define SC_DECLARE_EVENT_CLASS_NOARGS(_name, _struct, _assign, _printk) \ + DECLARE_EVENT_CLASS_NOARGS(compat_##_name, PARAMS(_struct), \ + PARAMS(_assign), PARAMS(_printk)) +#define SC_DEFINE_EVENT_NOARGS(_template, _name) \ + DEFINE_EVENT_NOARGS(compat_##_template, compat_##_name) +#define TRACE_SYSTEM compat_syscalls_integers +#include "instrumentation/syscalls/headers/compat_syscalls_integers.h" +#undef TRACE_SYSTEM +#define TRACE_SYSTEM compat_syscalls_pointers +#include "instrumentation/syscalls/headers/compat_syscalls_pointers.h" +#undef TRACE_SYSTEM +#undef SC_TRACE_EVENT +#undef SC_DECLARE_EVENT_CLASS_NOARGS +#undef SC_DEFINE_EVENT_NOARGS +#undef TP_PROBE_CB #undef TP_MODULE_OVERRIDE #undef LTTNG_PACKAGE_BUILD #undef CREATE_TRACE_POINTS +struct trace_syscall_entry { + void *func; + const struct lttng_event_desc *desc; + const struct lttng_event_field *fields; + unsigned int nrargs; +}; + +#define CREATE_SYSCALL_TABLE + #undef TRACE_SYSCALL_TABLE #define TRACE_SYSCALL_TABLE(_template, _name, _nr, _nrargs) \ [ _nr ] = { \ @@ -61,20 +118,27 @@ void syscall_entry_probe(void *__data, struct pt_regs *regs, long id); .desc = &__event_desc___##_name, \ }, -#define CREATE_SYSCALL_TABLE - static const struct trace_syscall_entry sc_table[] = { #include "instrumentation/syscalls/headers/syscalls_integers.h" #include "instrumentation/syscalls/headers/syscalls_pointers.h" }; -#undef CREATE_SYSCALL_TABLE +#undef TRACE_SYSCALL_TABLE +#define TRACE_SYSCALL_TABLE(_template, _name, _nr, _nrargs) \ + [ _nr ] = { \ + .func = __event_probe__##compat_##_template, \ + .nrargs = (_nrargs), \ + .fields = __event_fields___##compat_##_template,\ + .desc = &__event_desc___##compat_##_name, \ + }, + +/* Create compatibility syscall table */ +const struct trace_syscall_entry compat_sc_table[] = { +#include "instrumentation/syscalls/headers/compat_syscalls_integers.h" +#include "instrumentation/syscalls/headers/compat_syscalls_pointers.h" +}; -//extern const struct trace_syscall_entry compat_sc_table[]; -//extern const size_t compat_sc_table_len; -//temp disable -static const struct trace_syscall_entry compat_sc_table[] = { }; -static const size_t compat_sc_table_len; +#undef CREATE_SYSCALL_TABLE static void syscall_entry_unknown(struct ltt_event *event, struct pt_regs *regs, unsigned int id) @@ -82,7 +146,10 @@ static void syscall_entry_unknown(struct ltt_event *event, unsigned long args[UNKNOWN_SYSCALL_NRARGS]; syscall_get_arguments(current, regs, 0, UNKNOWN_SYSCALL_NRARGS, args); - __event_probe__sys_unknown(event, id, args); + if (unlikely(is_compat_task())) + __event_probe__compat_sys_unknown(event, id, args); + else + __event_probe__sys_unknown(event, id, args); } void syscall_entry_probe(void *__data, struct pt_regs *regs, long id) @@ -94,7 +161,7 @@ void syscall_entry_probe(void *__data, struct pt_regs *regs, long id) if (unlikely(is_compat_task())) { table = compat_sc_table; - table_len = compat_sc_table_len; + table_len = ARRAY_SIZE(compat_sc_table); unknown_event = chan->sc_compat_unknown; } else { table = sc_table; @@ -262,7 +329,7 @@ int lttng_syscalls_register(struct ltt_channel *chan, void *filter) if (!chan->compat_sc_table) { /* create syscall table mapping compat syscall to events */ chan->compat_sc_table = kzalloc(sizeof(struct ltt_event *) - * compat_sc_table_len, GFP_KERNEL); + * ARRAY_SIZE(compat_sc_table), GFP_KERNEL); if (!chan->compat_sc_table) return -ENOMEM; } @@ -320,7 +387,7 @@ int lttng_syscalls_register(struct ltt_channel *chan, void *filter) if (ret) return ret; #ifdef CONFIG_COMPAT - ret = fill_table(compat_sc_table, compat_sc_table_len, + ret = fill_table(compat_sc_table, ARRAY_SIZE(compat_sc_table), chan->compat_sc_table, chan, filter); if (ret) return ret;