From: Mathieu Desnoyers Date: Sat, 17 Sep 2011 02:59:39 +0000 (-0400) Subject: Use perl for regexp X-Git-Tag: v2.0-pre9~51 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=177b36924b27f47d604bcdd8e363bb401286fbb7;p=lttng-modules.git Use perl for regexp Allows more than 9 backward refs. Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/syscalls/headers/syscalls.h b/instrumentation/syscalls/headers/syscalls.h deleted file mode 100644 index 72fba30e..00000000 --- a/instrumentation/syscalls/headers/syscalls.h +++ /dev/null @@ -1 +0,0 @@ -#include "x86-64-syscalls-3.0.4-integers.h" diff --git a/instrumentation/syscalls/headers/syscalls_integers.h b/instrumentation/syscalls/headers/syscalls_integers.h new file mode 100644 index 00000000..72973104 --- /dev/null +++ b/instrumentation/syscalls/headers/syscalls_integers.h @@ -0,0 +1 @@ +#include "x86-64-syscalls-3.0.4_integers.h" 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 deleted file mode 100644 index 1ed412cd..00000000 --- a/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4-integers.h +++ /dev/null @@ -1,651 +0,0 @@ -/* THIS FILE IS AUTO-GENERATED. DO NOT EDIT */ -#ifndef CREATE_SYSCALL_TABLE - -#undef TRACE_SYSTEM -#define TRACE_SYSTEM syscalls - -#if !defined(_TRACE_SYSCALLS_H) || defined(TRACE_HEADER_MULTI_READ) -#define _TRACE_SYSCALLS_H - -#include -#include - -DECLARE_EVENT_CLASS_NOARGS(syscalls_noargs, - TP_STRUCT__entry(), - TP_fast_assign(), - TP_printk() -) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sched_yield) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_pause) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getpid) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getuid) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getgid) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_geteuid) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getegid) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getppid) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getpgrp) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_setsid) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_munlockall) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_vhangup) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sync) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_gettid) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_restart_syscall) -DEFINE_EVENT_NOARGS(syscalls_noargs, sys_inotify_init) -TRACE_EVENT(sys_close, - TP_PROTO(unsigned int fd), - TP_ARGS(fd), - TP_STRUCT__entry(__field(unsigned int, fd)), - TP_fast_assign(tp_assign(fd, fd)), - TP_printk() -) -TRACE_EVENT(sys_brk, - TP_PROTO(unsigned long brk), - TP_ARGS(brk), - TP_STRUCT__entry(__field(unsigned long, brk)), - TP_fast_assign(tp_assign(brk, brk)), - TP_printk() -) -TRACE_EVENT(sys_dup, - TP_PROTO(unsigned int fildes), - TP_ARGS(fildes), - TP_STRUCT__entry(__field(unsigned int, fildes)), - TP_fast_assign(tp_assign(fildes, fildes)), - TP_printk() -) -TRACE_EVENT(sys_alarm, - TP_PROTO(unsigned int seconds), - TP_ARGS(seconds), - TP_STRUCT__entry(__field(unsigned int, seconds)), - TP_fast_assign(tp_assign(seconds, seconds)), - TP_printk() -) -TRACE_EVENT(sys_exit, - TP_PROTO(int error_code), - TP_ARGS(error_code), - TP_STRUCT__entry(__field(int, error_code)), - TP_fast_assign(tp_assign(error_code, error_code)), - TP_printk() -) -TRACE_EVENT(sys_fsync, - TP_PROTO(unsigned int fd), - TP_ARGS(fd), - TP_STRUCT__entry(__field(unsigned int, fd)), - TP_fast_assign(tp_assign(fd, fd)), - TP_printk() -) -TRACE_EVENT(sys_fdatasync, - TP_PROTO(unsigned int fd), - TP_ARGS(fd), - TP_STRUCT__entry(__field(unsigned int, fd)), - TP_fast_assign(tp_assign(fd, fd)), - TP_printk() -) -TRACE_EVENT(sys_fchdir, - TP_PROTO(unsigned int fd), - TP_ARGS(fd), - TP_STRUCT__entry(__field(unsigned int, fd)), - TP_fast_assign(tp_assign(fd, fd)), - TP_printk() -) -TRACE_EVENT(sys_umask, - TP_PROTO(int mask), - TP_ARGS(mask), - TP_STRUCT__entry(__field(int, mask)), - TP_fast_assign(tp_assign(mask, mask)), - TP_printk() -) -TRACE_EVENT(sys_setuid, - TP_PROTO(uid_t uid), - TP_ARGS(uid), - TP_STRUCT__entry(__field(uid_t, uid)), - TP_fast_assign(tp_assign(uid, uid)), - TP_printk() -) -TRACE_EVENT(sys_setgid, - TP_PROTO(gid_t gid), - TP_ARGS(gid), - TP_STRUCT__entry(__field(gid_t, gid)), - TP_fast_assign(tp_assign(gid, gid)), - TP_printk() -) -TRACE_EVENT(sys_getpgid, - TP_PROTO(pid_t pid), - TP_ARGS(pid), - TP_STRUCT__entry(__field(pid_t, pid)), - TP_fast_assign(tp_assign(pid, pid)), - TP_printk() -) -TRACE_EVENT(sys_setfsuid, - TP_PROTO(uid_t uid), - TP_ARGS(uid), - TP_STRUCT__entry(__field(uid_t, uid)), - TP_fast_assign(tp_assign(uid, uid)), - TP_printk() -) -TRACE_EVENT(sys_setfsgid, - TP_PROTO(gid_t gid), - TP_ARGS(gid), - TP_STRUCT__entry(__field(gid_t, gid)), - TP_fast_assign(tp_assign(gid, gid)), - TP_printk() -) -TRACE_EVENT(sys_getsid, - TP_PROTO(pid_t pid), - TP_ARGS(pid), - TP_STRUCT__entry(__field(pid_t, pid)), - TP_fast_assign(tp_assign(pid, pid)), - TP_printk() -) -TRACE_EVENT(sys_personality, - TP_PROTO(unsigned int personality), - TP_ARGS(personality), - TP_STRUCT__entry(__field(unsigned int, personality)), - TP_fast_assign(tp_assign(personality, personality)), - TP_printk() -) -TRACE_EVENT(sys_sched_getscheduler, - TP_PROTO(pid_t pid), - TP_ARGS(pid), - TP_STRUCT__entry(__field(pid_t, pid)), - TP_fast_assign(tp_assign(pid, pid)), - TP_printk() -) -TRACE_EVENT(sys_sched_get_priority_max, - TP_PROTO(int policy), - TP_ARGS(policy), - TP_STRUCT__entry(__field(int, policy)), - TP_fast_assign(tp_assign(policy, policy)), - TP_printk() -) -TRACE_EVENT(sys_sched_get_priority_min, - TP_PROTO(int policy), - TP_ARGS(policy), - TP_STRUCT__entry(__field(int, policy)), - TP_fast_assign(tp_assign(policy, policy)), - TP_printk() -) -TRACE_EVENT(sys_mlockall, - TP_PROTO(int flags), - TP_ARGS(flags), - TP_STRUCT__entry(__field(int, flags)), - TP_fast_assign(tp_assign(flags, flags)), - TP_printk() -) -TRACE_EVENT(sys_io_destroy, - TP_PROTO(aio_context_t ctx), - TP_ARGS(ctx), - TP_STRUCT__entry(__field(aio_context_t, ctx)), - TP_fast_assign(tp_assign(ctx, ctx)), - TP_printk() -) -TRACE_EVENT(sys_epoll_create, - TP_PROTO(int size), - TP_ARGS(size), - TP_STRUCT__entry(__field(int, size)), - TP_fast_assign(tp_assign(size, size)), - TP_printk() -) -TRACE_EVENT(sys_timer_getoverrun, - TP_PROTO(timer_t timer_id), - TP_ARGS(timer_id), - TP_STRUCT__entry(__field(timer_t, timer_id)), - TP_fast_assign(tp_assign(timer_id, timer_id)), - TP_printk() -) -TRACE_EVENT(sys_timer_delete, - TP_PROTO(timer_t timer_id), - TP_ARGS(timer_id), - TP_STRUCT__entry(__field(timer_t, timer_id)), - TP_fast_assign(tp_assign(timer_id, timer_id)), - TP_printk() -) -TRACE_EVENT(sys_exit_group, - TP_PROTO(int error_code), - TP_ARGS(error_code), - TP_STRUCT__entry(__field(int, error_code)), - TP_fast_assign(tp_assign(error_code, error_code)), - TP_printk() -) -TRACE_EVENT(sys_unshare, - TP_PROTO(unsigned long unshare_flags), - TP_ARGS(unshare_flags), - TP_STRUCT__entry(__field(unsigned long, unshare_flags)), - TP_fast_assign(tp_assign(unshare_flags, unshare_flags)), - TP_printk() -) -TRACE_EVENT(sys_eventfd, - TP_PROTO(unsigned int count), - TP_ARGS(count), - TP_STRUCT__entry(__field(unsigned int, count)), - TP_fast_assign(tp_assign(count, count)), - TP_printk() -) -TRACE_EVENT(sys_epoll_create1, - TP_PROTO(int flags), - TP_ARGS(flags), - TP_STRUCT__entry(__field(int, flags)), - TP_fast_assign(tp_assign(flags, flags)), - TP_printk() -) -TRACE_EVENT(sys_inotify_init1, - TP_PROTO(int flags), - TP_ARGS(flags), - TP_STRUCT__entry(__field(int, flags)), - TP_fast_assign(tp_assign(flags, flags)), - TP_printk() -) -TRACE_EVENT(sys_syncfs, - TP_PROTO(int fd), - TP_ARGS(fd), - TP_STRUCT__entry(__field(int, fd)), - TP_fast_assign(tp_assign(fd, fd)), - TP_printk() -) -TRACE_EVENT(sys_munmap, - TP_PROTO(unsigned long addr, size_t len), - TP_ARGS(addr, len), - TP_STRUCT__entry(__field(unsigned long, addr) __field(size_t, len)), - TP_fast_assign(tp_assign(addr, addr) tp_assign(len, len)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(oldfd, oldfd) tp_assign(newfd, newfd)), - TP_printk() -) -TRACE_EVENT(sys_shutdown, - TP_PROTO(int fd, int how), - TP_ARGS(fd, how), - TP_STRUCT__entry(__field(int, fd) __field(int, how)), - TP_fast_assign(tp_assign(fd, fd) tp_assign(how, how)), - TP_printk() -) -TRACE_EVENT(sys_listen, - TP_PROTO(int fd, int backlog), - TP_ARGS(fd, backlog), - TP_STRUCT__entry(__field(int, fd) __field(int, backlog)), - TP_fast_assign(tp_assign(fd, fd) tp_assign(backlog, backlog)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(pid, pid) tp_assign(sig, sig)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(key, key) tp_assign(msgflg, msgflg)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(fd, fd) tp_assign(cmd, cmd)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(fd, fd) tp_assign(length, length)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(fd, fd) tp_assign(mode, mode)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(pid, pid) tp_assign(pgid, pgid)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(ruid, ruid) tp_assign(euid, euid)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(rgid, rgid) tp_assign(egid, egid)), - TP_printk() -) -TRACE_EVENT(sys_getpriority, - TP_PROTO(int which, int who), - TP_ARGS(which, who), - TP_STRUCT__entry(__field(int, which) __field(int, who)), - TP_fast_assign(tp_assign(which, which) tp_assign(who, who)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(start, start) tp_assign(len, len)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(start, start) tp_assign(len, len)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(pid, pid) tp_assign(sig, sig)), - TP_printk() -) -TRACE_EVENT(sys_ioprio_get, - TP_PROTO(int which, int who), - TP_ARGS(which, who), - TP_STRUCT__entry(__field(int, which) __field(int, who)), - TP_fast_assign(tp_assign(which, which) tp_assign(who, who)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(fd, fd) tp_assign(wd, wd)), - TP_printk() -) -TRACE_EVENT(sys_timerfd_create, - TP_PROTO(int clockid, int flags), - TP_ARGS(clockid, flags), - TP_STRUCT__entry(__field(int, clockid) __field(int, flags)), - TP_fast_assign(tp_assign(clockid, clockid) tp_assign(flags, flags)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(count, count) tp_assign(flags, flags)), - TP_printk() -) -TRACE_EVENT(sys_setns, - TP_PROTO(int fd, int nstype), - TP_ARGS(fd, nstype), - TP_STRUCT__entry(__field(int, fd) __field(int, nstype)), - TP_fast_assign(tp_assign(fd, fd) tp_assign(nstype, nstype)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(fd, fd) tp_assign(offset, offset) tp_assign(origin, origin)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(start, start) tp_assign(len, len) tp_assign(prot, prot)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(fd, fd) tp_assign(cmd, cmd) tp_assign(arg, arg)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(start, start) tp_assign(len, len) tp_assign(flags, flags)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(start, start) tp_assign(len_in, len_in) tp_assign(behavior, behavior)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(key, key) tp_assign(size, size) tp_assign(shmflg, shmflg)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(family, family) tp_assign(type, type) tp_assign(protocol, protocol)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(key, key) tp_assign(nsems, nsems) tp_assign(semflg, semflg)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(fd, fd) tp_assign(cmd, cmd) tp_assign(arg, arg)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(fd, fd) tp_assign(user, user) tp_assign(group, group)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(ruid, ruid) tp_assign(euid, euid) tp_assign(suid, suid)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(rgid, rgid) tp_assign(egid, egid) tp_assign(sgid, sgid)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(option, option) tp_assign(arg1, arg1) tp_assign(arg2, arg2)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(which, which) tp_assign(who, who) tp_assign(niceval, niceval)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(tgid, tgid) tp_assign(pid, pid) tp_assign(sig, sig)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(which, which) tp_assign(who, who) tp_assign(ioprio, ioprio)), - TP_printk() -) -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)), - TP_fast_assign(tp_assign(oldfd, oldfd) tp_assign(newfd, newfd) tp_assign(flags, flags)), - TP_printk() -) -TRACE_EVENT(sys_ptrace, - TP_PROTO(long request, long pid, unsigned long ptrace0, unsigned long ptrace1), - TP_ARGS(request, pid, ptrace0, ptrace1), - TP_STRUCT__entry(__field(long, request) __field(long, pid) __field(unsigned long, ptrace0) __field(unsigned long, ptrace1)), - TP_fast_assign(tp_assign(request, request) tp_assign(pid, pid) tp_assign(ptrace0, ptrace0) tp_assign(ptrace1, ptrace1)), - TP_printk() -) -TRACE_EVENT(sys_tee, - TP_PROTO(int fdin, int fdout, size_t tee0, unsigned int tee1), - TP_ARGS(fdin, fdout, tee0, tee1), - TP_STRUCT__entry(__field(int, fdin) __field(int, fdout) __field(size_t, tee0) __field(unsigned int, tee1)), - TP_fast_assign(tp_assign(fdin, fdin) tp_assign(fdout, fdout) tp_assign(tee0, tee0) tp_assign(tee1, tee1)), - TP_printk() -) -TRACE_EVENT(sys_mremap, - TP_PROTO(unsigned long addr, unsigned long mremap0, unsigned long mremap1, unsigned long mremap2, unsigned long mremap3), - TP_ARGS(addr, mremap0, mremap1, mremap2, mremap3), - TP_STRUCT__entry(__field(unsigned long, addr) __field(unsigned long, mremap0) __field(unsigned long, mremap1) __field(unsigned long, mremap2) __field(unsigned long, mremap3)), - TP_fast_assign(tp_assign(addr, addr) tp_assign(mremap0, mremap0) tp_assign(mremap1, mremap1) tp_assign(mremap2, mremap2) tp_assign(mremap3, mremap3)), - TP_printk() -) -TRACE_EVENT(sys_prctl, - TP_PROTO(int option, unsigned long prctl0, unsigned long prctl1, unsigned long prctl2, unsigned long prctl3), - TP_ARGS(option, prctl0, prctl1, prctl2, prctl3), - TP_STRUCT__entry(__field(int, option) __field(unsigned long, prctl0) __field(unsigned long, prctl1) __field(unsigned long, prctl2) __field(unsigned long, prctl3)), - TP_fast_assign(tp_assign(option, option) tp_assign(prctl0, prctl0) tp_assign(prctl1, prctl1) tp_assign(prctl2, prctl2) tp_assign(prctl3, prctl3)), - TP_printk() -) -TRACE_EVENT(sys_remap_file_pages, - TP_PROTO(unsigned long start, unsigned long remap_file_pages0, unsigned long remap_file_pages1, unsigned long remap_file_pages2, unsigned long remap_file_pages3), - TP_ARGS(start, remap_file_pages0, remap_file_pages1, remap_file_pages2, remap_file_pages3), - TP_STRUCT__entry(__field(unsigned long, start) __field(unsigned long, remap_file_pages0) __field(unsigned long, remap_file_pages1) __field(unsigned long, remap_file_pages2) __field(unsigned long, remap_file_pages3)), - TP_fast_assign(tp_assign(start, start) tp_assign(remap_file_pages0, remap_file_pages0) tp_assign(remap_file_pages1, remap_file_pages1) tp_assign(remap_file_pages2, remap_file_pages2) tp_assign(remap_file_pages3, remap_file_pages3)), - TP_printk() -) -TRACE_EVENT(sys_mmap, - TP_PROTO(unsigned long mmap0, unsigned long mmap1, unsigned long mmap2, unsigned long mmap3, unsigned long mmap4, unsigned long mmap5), - TP_ARGS(mmap0, mmap1, mmap2, mmap3, mmap4, mmap5), - TP_STRUCT__entry(__field(unsigned long, mmap0) __field(unsigned long, mmap1) __field(unsigned long, mmap2) __field(unsigned long, mmap3) __field(unsigned long, mmap4) __field(unsigned long, mmap5)), - TP_fast_assign(tp_assign(mmap0, mmap0) tp_assign(mmap1, mmap1) tp_assign(mmap2, 12) tp_assign(mmap3, mmap3) tp_assign(mmap4, mmap4) tp_assign(mmap5, mmap5)), - TP_printk() -) - -#endif /* _TRACE_SYSCALLS_H */ - -/* This part must be outside protection */ -#include "../../../probes/define_trace.h" - -#else /* CREATE_SYSCALL_TABLE */ - -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_sched_yield, 24, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_pause, 34, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_getpid, 39, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_getuid, 102, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_getgid, 104, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_geteuid, 107, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_getegid, 108, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_getppid, 110, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_getpgrp, 111, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_setsid, 112, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_munlockall, 152, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_vhangup, 153, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_sync, 162, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_gettid, 186, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_restart_syscall, 219, 0) -TRACE_SYSCALL_TABLE(syscalls_noargs, sys_inotify_init, 253, 0) -TRACE_SYSCALL_TABLE(sys_close, sys_close, 3, 1) -TRACE_SYSCALL_TABLE(sys_lseek, sys_lseek, 8, 3) -TRACE_SYSCALL_TABLE(sys_mmap, sys_mmap, 9, 6) -TRACE_SYSCALL_TABLE(sys_mprotect, sys_mprotect, 10, 3) -TRACE_SYSCALL_TABLE(sys_munmap, sys_munmap, 11, 2) -TRACE_SYSCALL_TABLE(sys_brk, sys_brk, 12, 1) -TRACE_SYSCALL_TABLE(sys_ioctl, sys_ioctl, 16, 3) -TRACE_SYSCALL_TABLE(sys_mremap, sys_mremap, 25, 5) -TRACE_SYSCALL_TABLE(sys_msync, sys_msync, 26, 3) -TRACE_SYSCALL_TABLE(sys_madvise, sys_madvise, 28, 3) -TRACE_SYSCALL_TABLE(sys_shmget, sys_shmget, 29, 3) -TRACE_SYSCALL_TABLE(sys_dup, sys_dup, 32, 1) -TRACE_SYSCALL_TABLE(sys_dup2, sys_dup2, 33, 2) -TRACE_SYSCALL_TABLE(sys_alarm, sys_alarm, 37, 1) -TRACE_SYSCALL_TABLE(sys_socket, sys_socket, 41, 3) -TRACE_SYSCALL_TABLE(sys_shutdown, sys_shutdown, 48, 2) -TRACE_SYSCALL_TABLE(sys_listen, sys_listen, 50, 2) -TRACE_SYSCALL_TABLE(sys_exit, sys_exit, 60, 1) -TRACE_SYSCALL_TABLE(sys_kill, sys_kill, 62, 2) -TRACE_SYSCALL_TABLE(sys_semget, sys_semget, 64, 3) -TRACE_SYSCALL_TABLE(sys_msgget, sys_msgget, 68, 2) -TRACE_SYSCALL_TABLE(sys_fcntl, sys_fcntl, 72, 3) -TRACE_SYSCALL_TABLE(sys_flock, sys_flock, 73, 2) -TRACE_SYSCALL_TABLE(sys_fsync, sys_fsync, 74, 1) -TRACE_SYSCALL_TABLE(sys_fdatasync, sys_fdatasync, 75, 1) -TRACE_SYSCALL_TABLE(sys_ftruncate, sys_ftruncate, 77, 2) -TRACE_SYSCALL_TABLE(sys_fchdir, sys_fchdir, 81, 1) -TRACE_SYSCALL_TABLE(sys_fchmod, sys_fchmod, 91, 2) -TRACE_SYSCALL_TABLE(sys_fchown, sys_fchown, 93, 3) -TRACE_SYSCALL_TABLE(sys_umask, sys_umask, 95, 1) -TRACE_SYSCALL_TABLE(sys_ptrace, sys_ptrace, 101, 4) -TRACE_SYSCALL_TABLE(sys_setuid, sys_setuid, 105, 1) -TRACE_SYSCALL_TABLE(sys_setgid, sys_setgid, 106, 1) -TRACE_SYSCALL_TABLE(sys_setpgid, sys_setpgid, 109, 2) -TRACE_SYSCALL_TABLE(sys_setreuid, sys_setreuid, 113, 2) -TRACE_SYSCALL_TABLE(sys_setregid, sys_setregid, 114, 2) -TRACE_SYSCALL_TABLE(sys_setresuid, sys_setresuid, 117, 3) -TRACE_SYSCALL_TABLE(sys_setresgid, sys_setresgid, 119, 3) -TRACE_SYSCALL_TABLE(sys_getpgid, sys_getpgid, 121, 1) -TRACE_SYSCALL_TABLE(sys_setfsuid, sys_setfsuid, 122, 1) -TRACE_SYSCALL_TABLE(sys_setfsgid, sys_setfsgid, 123, 1) -TRACE_SYSCALL_TABLE(sys_getsid, sys_getsid, 124, 1) -TRACE_SYSCALL_TABLE(sys_personality, sys_personality, 135, 1) -TRACE_SYSCALL_TABLE(sys_sysfs, sys_sysfs, 139, 3) -TRACE_SYSCALL_TABLE(sys_getpriority, sys_getpriority, 140, 2) -TRACE_SYSCALL_TABLE(sys_setpriority, sys_setpriority, 141, 3) -TRACE_SYSCALL_TABLE(sys_sched_getscheduler, sys_sched_getscheduler, 145, 1) -TRACE_SYSCALL_TABLE(sys_sched_get_priority_max, sys_sched_get_priority_max, 146, 1) -TRACE_SYSCALL_TABLE(sys_sched_get_priority_min, sys_sched_get_priority_min, 147, 1) -TRACE_SYSCALL_TABLE(sys_mlock, sys_mlock, 149, 2) -TRACE_SYSCALL_TABLE(sys_munlock, sys_munlock, 150, 2) -TRACE_SYSCALL_TABLE(sys_mlockall, sys_mlockall, 151, 1) -TRACE_SYSCALL_TABLE(sys_prctl, sys_prctl, 157, 5) -TRACE_SYSCALL_TABLE(sys_tkill, sys_tkill, 200, 2) -TRACE_SYSCALL_TABLE(sys_io_destroy, sys_io_destroy, 207, 1) -TRACE_SYSCALL_TABLE(sys_epoll_create, sys_epoll_create, 213, 1) -TRACE_SYSCALL_TABLE(sys_remap_file_pages, sys_remap_file_pages, 216, 5) -TRACE_SYSCALL_TABLE(sys_timer_getoverrun, sys_timer_getoverrun, 225, 1) -TRACE_SYSCALL_TABLE(sys_timer_delete, sys_timer_delete, 226, 1) -TRACE_SYSCALL_TABLE(sys_exit_group, sys_exit_group, 231, 1) -TRACE_SYSCALL_TABLE(sys_tgkill, sys_tgkill, 234, 3) -TRACE_SYSCALL_TABLE(sys_ioprio_set, sys_ioprio_set, 251, 3) -TRACE_SYSCALL_TABLE(sys_ioprio_get, sys_ioprio_get, 252, 2) -TRACE_SYSCALL_TABLE(sys_inotify_rm_watch, sys_inotify_rm_watch, 255, 2) -TRACE_SYSCALL_TABLE(sys_unshare, sys_unshare, 272, 1) -TRACE_SYSCALL_TABLE(sys_tee, sys_tee, 276, 4) -TRACE_SYSCALL_TABLE(sys_timerfd_create, sys_timerfd_create, 283, 2) -TRACE_SYSCALL_TABLE(sys_eventfd, sys_eventfd, 284, 1) -TRACE_SYSCALL_TABLE(sys_eventfd2, sys_eventfd2, 290, 2) -TRACE_SYSCALL_TABLE(sys_epoll_create1, sys_epoll_create1, 291, 1) -TRACE_SYSCALL_TABLE(sys_dup3, sys_dup3, 292, 3) -TRACE_SYSCALL_TABLE(sys_inotify_init1, sys_inotify_init1, 294, 1) -TRACE_SYSCALL_TABLE(sys_syncfs, sys_syncfs, 306, 1) -TRACE_SYSCALL_TABLE(sys_setns, sys_setns, 308, 2) - -#endif /* CREATE_SYSCALL_TABLE */ 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 new file mode 100644 index 00000000..bedcc9c6 --- /dev/null +++ b/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_integers.h @@ -0,0 +1,651 @@ +/* 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 + +#include +#include + +DECLARE_EVENT_CLASS_NOARGS(syscalls_noargs, + TP_STRUCT__entry(), + TP_fast_assign(), + TP_printk() +) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sched_yield) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_pause) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getpid) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getuid) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getgid) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_geteuid) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getegid) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getppid) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_getpgrp) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_setsid) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_munlockall) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_vhangup) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_sync) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_gettid) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_restart_syscall) +DEFINE_EVENT_NOARGS(syscalls_noargs, sys_inotify_init) +TRACE_EVENT(sys_close, + TP_PROTO(unsigned int fd), + TP_ARGS(fd), + TP_STRUCT__entry(__field(unsigned int, fd)), + TP_fast_assign(tp_assign(fd, fd)), + TP_printk() +) +TRACE_EVENT(sys_brk, + TP_PROTO(unsigned long brk), + TP_ARGS(brk), + TP_STRUCT__entry(__field(unsigned long, brk)), + TP_fast_assign(tp_assign(brk, brk)), + TP_printk() +) +TRACE_EVENT(sys_dup, + TP_PROTO(unsigned int fildes), + TP_ARGS(fildes), + TP_STRUCT__entry(__field(unsigned int, fildes)), + TP_fast_assign(tp_assign(fildes, fildes)), + TP_printk() +) +TRACE_EVENT(sys_alarm, + TP_PROTO(unsigned int seconds), + TP_ARGS(seconds), + TP_STRUCT__entry(__field(unsigned int, seconds)), + TP_fast_assign(tp_assign(seconds, seconds)), + TP_printk() +) +TRACE_EVENT(sys_exit, + TP_PROTO(int error_code), + TP_ARGS(error_code), + TP_STRUCT__entry(__field(int, error_code)), + TP_fast_assign(tp_assign(error_code, error_code)), + TP_printk() +) +TRACE_EVENT(sys_fsync, + TP_PROTO(unsigned int fd), + TP_ARGS(fd), + TP_STRUCT__entry(__field(unsigned int, fd)), + TP_fast_assign(tp_assign(fd, fd)), + TP_printk() +) +TRACE_EVENT(sys_fdatasync, + TP_PROTO(unsigned int fd), + TP_ARGS(fd), + TP_STRUCT__entry(__field(unsigned int, fd)), + TP_fast_assign(tp_assign(fd, fd)), + TP_printk() +) +TRACE_EVENT(sys_fchdir, + TP_PROTO(unsigned int fd), + TP_ARGS(fd), + TP_STRUCT__entry(__field(unsigned int, fd)), + TP_fast_assign(tp_assign(fd, fd)), + TP_printk() +) +TRACE_EVENT(sys_umask, + TP_PROTO(int mask), + TP_ARGS(mask), + TP_STRUCT__entry(__field(int, mask)), + TP_fast_assign(tp_assign(mask, mask)), + TP_printk() +) +TRACE_EVENT(sys_setuid, + TP_PROTO(uid_t uid), + TP_ARGS(uid), + TP_STRUCT__entry(__field(uid_t, uid)), + TP_fast_assign(tp_assign(uid, uid)), + TP_printk() +) +TRACE_EVENT(sys_setgid, + TP_PROTO(gid_t gid), + TP_ARGS(gid), + TP_STRUCT__entry(__field(gid_t, gid)), + TP_fast_assign(tp_assign(gid, gid)), + TP_printk() +) +TRACE_EVENT(sys_getpgid, + TP_PROTO(pid_t pid), + TP_ARGS(pid), + TP_STRUCT__entry(__field(pid_t, pid)), + TP_fast_assign(tp_assign(pid, pid)), + TP_printk() +) +TRACE_EVENT(sys_setfsuid, + TP_PROTO(uid_t uid), + TP_ARGS(uid), + TP_STRUCT__entry(__field(uid_t, uid)), + TP_fast_assign(tp_assign(uid, uid)), + TP_printk() +) +TRACE_EVENT(sys_setfsgid, + TP_PROTO(gid_t gid), + TP_ARGS(gid), + TP_STRUCT__entry(__field(gid_t, gid)), + TP_fast_assign(tp_assign(gid, gid)), + TP_printk() +) +TRACE_EVENT(sys_getsid, + TP_PROTO(pid_t pid), + TP_ARGS(pid), + TP_STRUCT__entry(__field(pid_t, pid)), + TP_fast_assign(tp_assign(pid, pid)), + TP_printk() +) +TRACE_EVENT(sys_personality, + TP_PROTO(unsigned int personality), + TP_ARGS(personality), + TP_STRUCT__entry(__field(unsigned int, personality)), + TP_fast_assign(tp_assign(personality, personality)), + TP_printk() +) +TRACE_EVENT(sys_sched_getscheduler, + TP_PROTO(pid_t pid), + TP_ARGS(pid), + TP_STRUCT__entry(__field(pid_t, pid)), + TP_fast_assign(tp_assign(pid, pid)), + TP_printk() +) +TRACE_EVENT(sys_sched_get_priority_max, + TP_PROTO(int policy), + TP_ARGS(policy), + TP_STRUCT__entry(__field(int, policy)), + TP_fast_assign(tp_assign(policy, policy)), + TP_printk() +) +TRACE_EVENT(sys_sched_get_priority_min, + TP_PROTO(int policy), + TP_ARGS(policy), + TP_STRUCT__entry(__field(int, policy)), + TP_fast_assign(tp_assign(policy, policy)), + TP_printk() +) +TRACE_EVENT(sys_mlockall, + TP_PROTO(int flags), + TP_ARGS(flags), + TP_STRUCT__entry(__field(int, flags)), + TP_fast_assign(tp_assign(flags, flags)), + TP_printk() +) +TRACE_EVENT(sys_io_destroy, + TP_PROTO(aio_context_t ctx), + TP_ARGS(ctx), + TP_STRUCT__entry(__field(aio_context_t, ctx)), + TP_fast_assign(tp_assign(ctx, ctx)), + TP_printk() +) +TRACE_EVENT(sys_epoll_create, + TP_PROTO(int size), + TP_ARGS(size), + TP_STRUCT__entry(__field(int, size)), + TP_fast_assign(tp_assign(size, size)), + TP_printk() +) +TRACE_EVENT(sys_timer_getoverrun, + TP_PROTO(timer_t timer_id), + TP_ARGS(timer_id), + TP_STRUCT__entry(__field(timer_t, timer_id)), + TP_fast_assign(tp_assign(timer_id, timer_id)), + TP_printk() +) +TRACE_EVENT(sys_timer_delete, + TP_PROTO(timer_t timer_id), + TP_ARGS(timer_id), + TP_STRUCT__entry(__field(timer_t, timer_id)), + TP_fast_assign(tp_assign(timer_id, timer_id)), + TP_printk() +) +TRACE_EVENT(sys_exit_group, + TP_PROTO(int error_code), + TP_ARGS(error_code), + TP_STRUCT__entry(__field(int, error_code)), + TP_fast_assign(tp_assign(error_code, error_code)), + TP_printk() +) +TRACE_EVENT(sys_unshare, + TP_PROTO(unsigned long unshare_flags), + TP_ARGS(unshare_flags), + TP_STRUCT__entry(__field(unsigned long, unshare_flags)), + TP_fast_assign(tp_assign(unshare_flags, unshare_flags)), + TP_printk() +) +TRACE_EVENT(sys_eventfd, + TP_PROTO(unsigned int count), + TP_ARGS(count), + TP_STRUCT__entry(__field(unsigned int, count)), + TP_fast_assign(tp_assign(count, count)), + TP_printk() +) +TRACE_EVENT(sys_epoll_create1, + TP_PROTO(int flags), + TP_ARGS(flags), + TP_STRUCT__entry(__field(int, flags)), + TP_fast_assign(tp_assign(flags, flags)), + TP_printk() +) +TRACE_EVENT(sys_inotify_init1, + TP_PROTO(int flags), + TP_ARGS(flags), + TP_STRUCT__entry(__field(int, flags)), + TP_fast_assign(tp_assign(flags, flags)), + TP_printk() +) +TRACE_EVENT(sys_syncfs, + TP_PROTO(int fd), + TP_ARGS(fd), + TP_STRUCT__entry(__field(int, fd)), + TP_fast_assign(tp_assign(fd, fd)), + TP_printk() +) +TRACE_EVENT(sys_munmap, + TP_PROTO(unsigned long addr, size_t len), + TP_ARGS(addr, len), + TP_STRUCT__entry(__field(unsigned long, addr) __field(size_t, len)), + TP_fast_assign(tp_assign(addr, addr) tp_assign(len, len)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(oldfd, oldfd) tp_assign(newfd, newfd)), + TP_printk() +) +TRACE_EVENT(sys_shutdown, + TP_PROTO(int fd, int how), + TP_ARGS(fd, how), + TP_STRUCT__entry(__field(int, fd) __field(int, how)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(how, how)), + TP_printk() +) +TRACE_EVENT(sys_listen, + TP_PROTO(int fd, int backlog), + TP_ARGS(fd, backlog), + TP_STRUCT__entry(__field(int, fd) __field(int, backlog)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(backlog, backlog)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(pid, pid) tp_assign(sig, sig)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(key, key) tp_assign(msgflg, msgflg)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(cmd, cmd)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(length, length)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(mode, mode)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(pid, pid) tp_assign(pgid, pgid)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(ruid, ruid) tp_assign(euid, euid)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(rgid, rgid) tp_assign(egid, egid)), + TP_printk() +) +TRACE_EVENT(sys_getpriority, + TP_PROTO(int which, int who), + TP_ARGS(which, who), + TP_STRUCT__entry(__field(int, which) __field(int, who)), + TP_fast_assign(tp_assign(which, which) tp_assign(who, who)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(start, start) tp_assign(len, len)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(start, start) tp_assign(len, len)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(pid, pid) tp_assign(sig, sig)), + TP_printk() +) +TRACE_EVENT(sys_ioprio_get, + TP_PROTO(int which, int who), + TP_ARGS(which, who), + TP_STRUCT__entry(__field(int, which) __field(int, who)), + TP_fast_assign(tp_assign(which, which) tp_assign(who, who)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(wd, wd)), + TP_printk() +) +TRACE_EVENT(sys_timerfd_create, + TP_PROTO(int clockid, int flags), + TP_ARGS(clockid, flags), + TP_STRUCT__entry(__field(int, clockid) __field(int, flags)), + TP_fast_assign(tp_assign(clockid, clockid) tp_assign(flags, flags)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(count, count) tp_assign(flags, flags)), + TP_printk() +) +TRACE_EVENT(sys_setns, + TP_PROTO(int fd, int nstype), + TP_ARGS(fd, nstype), + TP_STRUCT__entry(__field(int, fd) __field(int, nstype)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(nstype, nstype)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(offset, offset) tp_assign(origin, origin)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(start, start) tp_assign(len, len) tp_assign(prot, prot)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(cmd, cmd) tp_assign(arg, arg)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(start, start) tp_assign(len, len) tp_assign(flags, flags)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(start, start) tp_assign(len_in, len_in) tp_assign(behavior, behavior)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(key, key) tp_assign(size, size) tp_assign(shmflg, shmflg)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(family, family) tp_assign(type, type) tp_assign(protocol, protocol)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(key, key) tp_assign(nsems, nsems) tp_assign(semflg, semflg)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(cmd, cmd) tp_assign(arg, arg)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(user, user) tp_assign(group, group)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(ruid, ruid) tp_assign(euid, euid) tp_assign(suid, suid)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(rgid, rgid) tp_assign(egid, egid) tp_assign(sgid, sgid)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(option, option) tp_assign(arg1, arg1) tp_assign(arg2, arg2)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(which, which) tp_assign(who, who) tp_assign(niceval, niceval)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(tgid, tgid) tp_assign(pid, pid) tp_assign(sig, sig)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(which, which) tp_assign(who, who) tp_assign(ioprio, ioprio)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(oldfd, oldfd) tp_assign(newfd, newfd) tp_assign(flags, flags)), + TP_printk() +) +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(unsigned long, addr) __field(unsigned long, data)), + TP_fast_assign(tp_assign(request, request) tp_assign(pid, pid) tp_assign(addr, addr) tp_assign(data, data)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(fdin, fdin) tp_assign(fdout, fdout) tp_assign(len, len) tp_assign(flags, flags)), + TP_printk() +) +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(unsigned long, addr) __field(unsigned long, old_len) __field(unsigned long, new_len) __field(unsigned long, flags) __field(unsigned long, new_addr)), + TP_fast_assign(tp_assign(addr, addr) tp_assign(old_len, old_len) tp_assign(new_len, new_len) tp_assign(flags, flags) tp_assign(new_addr, new_addr)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(option, option) tp_assign(arg2, arg2) tp_assign(arg3, arg3) tp_assign(arg4, arg4) tp_assign(arg5, arg5)), + TP_printk() +) +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)), + TP_fast_assign(tp_assign(start, start) tp_assign(size, size) tp_assign(prot, prot) tp_assign(pgoff, pgoff) tp_assign(flags, flags)), + TP_printk() +) +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(unsigned long, addr) __field(unsigned long, len) __field(unsigned long, prot) __field(unsigned long, flags) __field(unsigned long, fd) __field(unsigned long, off)), + TP_fast_assign(tp_assign(addr, addr) tp_assign(len, len) tp_assign(prot, prot) tp_assign(flags, flags) tp_assign(fd, fd) tp_assign(off, off)), + TP_printk() +) + +#endif /* _TRACE_SYSCALLS_INTEGERS_H */ + +/* This part must be outside protection */ +#include "../../../probes/define_trace.h" + +#else /* CREATE_SYSCALL_TABLE */ + +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_sched_yield, 24, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_pause, 34, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_getpid, 39, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_getuid, 102, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_getgid, 104, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_geteuid, 107, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_getegid, 108, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_getppid, 110, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_getpgrp, 111, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_setsid, 112, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_munlockall, 152, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_vhangup, 153, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_sync, 162, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_gettid, 186, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_restart_syscall, 219, 0) +TRACE_SYSCALL_TABLE(syscalls_noargs, sys_inotify_init, 253, 0) +TRACE_SYSCALL_TABLE(sys_close, sys_close, 3, 1) +TRACE_SYSCALL_TABLE(sys_lseek, sys_lseek, 8, 3) +TRACE_SYSCALL_TABLE(sys_mmap, sys_mmap, 9, 6) +TRACE_SYSCALL_TABLE(sys_mprotect, sys_mprotect, 10, 3) +TRACE_SYSCALL_TABLE(sys_munmap, sys_munmap, 11, 2) +TRACE_SYSCALL_TABLE(sys_brk, sys_brk, 12, 1) +TRACE_SYSCALL_TABLE(sys_ioctl, sys_ioctl, 16, 3) +TRACE_SYSCALL_TABLE(sys_mremap, sys_mremap, 25, 5) +TRACE_SYSCALL_TABLE(sys_msync, sys_msync, 26, 3) +TRACE_SYSCALL_TABLE(sys_madvise, sys_madvise, 28, 3) +TRACE_SYSCALL_TABLE(sys_shmget, sys_shmget, 29, 3) +TRACE_SYSCALL_TABLE(sys_dup, sys_dup, 32, 1) +TRACE_SYSCALL_TABLE(sys_dup2, sys_dup2, 33, 2) +TRACE_SYSCALL_TABLE(sys_alarm, sys_alarm, 37, 1) +TRACE_SYSCALL_TABLE(sys_socket, sys_socket, 41, 3) +TRACE_SYSCALL_TABLE(sys_shutdown, sys_shutdown, 48, 2) +TRACE_SYSCALL_TABLE(sys_listen, sys_listen, 50, 2) +TRACE_SYSCALL_TABLE(sys_exit, sys_exit, 60, 1) +TRACE_SYSCALL_TABLE(sys_kill, sys_kill, 62, 2) +TRACE_SYSCALL_TABLE(sys_semget, sys_semget, 64, 3) +TRACE_SYSCALL_TABLE(sys_msgget, sys_msgget, 68, 2) +TRACE_SYSCALL_TABLE(sys_fcntl, sys_fcntl, 72, 3) +TRACE_SYSCALL_TABLE(sys_flock, sys_flock, 73, 2) +TRACE_SYSCALL_TABLE(sys_fsync, sys_fsync, 74, 1) +TRACE_SYSCALL_TABLE(sys_fdatasync, sys_fdatasync, 75, 1) +TRACE_SYSCALL_TABLE(sys_ftruncate, sys_ftruncate, 77, 2) +TRACE_SYSCALL_TABLE(sys_fchdir, sys_fchdir, 81, 1) +TRACE_SYSCALL_TABLE(sys_fchmod, sys_fchmod, 91, 2) +TRACE_SYSCALL_TABLE(sys_fchown, sys_fchown, 93, 3) +TRACE_SYSCALL_TABLE(sys_umask, sys_umask, 95, 1) +TRACE_SYSCALL_TABLE(sys_ptrace, sys_ptrace, 101, 4) +TRACE_SYSCALL_TABLE(sys_setuid, sys_setuid, 105, 1) +TRACE_SYSCALL_TABLE(sys_setgid, sys_setgid, 106, 1) +TRACE_SYSCALL_TABLE(sys_setpgid, sys_setpgid, 109, 2) +TRACE_SYSCALL_TABLE(sys_setreuid, sys_setreuid, 113, 2) +TRACE_SYSCALL_TABLE(sys_setregid, sys_setregid, 114, 2) +TRACE_SYSCALL_TABLE(sys_setresuid, sys_setresuid, 117, 3) +TRACE_SYSCALL_TABLE(sys_setresgid, sys_setresgid, 119, 3) +TRACE_SYSCALL_TABLE(sys_getpgid, sys_getpgid, 121, 1) +TRACE_SYSCALL_TABLE(sys_setfsuid, sys_setfsuid, 122, 1) +TRACE_SYSCALL_TABLE(sys_setfsgid, sys_setfsgid, 123, 1) +TRACE_SYSCALL_TABLE(sys_getsid, sys_getsid, 124, 1) +TRACE_SYSCALL_TABLE(sys_personality, sys_personality, 135, 1) +TRACE_SYSCALL_TABLE(sys_sysfs, sys_sysfs, 139, 3) +TRACE_SYSCALL_TABLE(sys_getpriority, sys_getpriority, 140, 2) +TRACE_SYSCALL_TABLE(sys_setpriority, sys_setpriority, 141, 3) +TRACE_SYSCALL_TABLE(sys_sched_getscheduler, sys_sched_getscheduler, 145, 1) +TRACE_SYSCALL_TABLE(sys_sched_get_priority_max, sys_sched_get_priority_max, 146, 1) +TRACE_SYSCALL_TABLE(sys_sched_get_priority_min, sys_sched_get_priority_min, 147, 1) +TRACE_SYSCALL_TABLE(sys_mlock, sys_mlock, 149, 2) +TRACE_SYSCALL_TABLE(sys_munlock, sys_munlock, 150, 2) +TRACE_SYSCALL_TABLE(sys_mlockall, sys_mlockall, 151, 1) +TRACE_SYSCALL_TABLE(sys_prctl, sys_prctl, 157, 5) +TRACE_SYSCALL_TABLE(sys_tkill, sys_tkill, 200, 2) +TRACE_SYSCALL_TABLE(sys_io_destroy, sys_io_destroy, 207, 1) +TRACE_SYSCALL_TABLE(sys_epoll_create, sys_epoll_create, 213, 1) +TRACE_SYSCALL_TABLE(sys_remap_file_pages, sys_remap_file_pages, 216, 5) +TRACE_SYSCALL_TABLE(sys_timer_getoverrun, sys_timer_getoverrun, 225, 1) +TRACE_SYSCALL_TABLE(sys_timer_delete, sys_timer_delete, 226, 1) +TRACE_SYSCALL_TABLE(sys_exit_group, sys_exit_group, 231, 1) +TRACE_SYSCALL_TABLE(sys_tgkill, sys_tgkill, 234, 3) +TRACE_SYSCALL_TABLE(sys_ioprio_set, sys_ioprio_set, 251, 3) +TRACE_SYSCALL_TABLE(sys_ioprio_get, sys_ioprio_get, 252, 2) +TRACE_SYSCALL_TABLE(sys_inotify_rm_watch, sys_inotify_rm_watch, 255, 2) +TRACE_SYSCALL_TABLE(sys_unshare, sys_unshare, 272, 1) +TRACE_SYSCALL_TABLE(sys_tee, sys_tee, 276, 4) +TRACE_SYSCALL_TABLE(sys_timerfd_create, sys_timerfd_create, 283, 2) +TRACE_SYSCALL_TABLE(sys_eventfd, sys_eventfd, 284, 1) +TRACE_SYSCALL_TABLE(sys_eventfd2, sys_eventfd2, 290, 2) +TRACE_SYSCALL_TABLE(sys_epoll_create1, sys_epoll_create1, 291, 1) +TRACE_SYSCALL_TABLE(sys_dup3, sys_dup3, 292, 3) +TRACE_SYSCALL_TABLE(sys_inotify_init1, sys_inotify_init1, 294, 1) +TRACE_SYSCALL_TABLE(sys_syncfs, sys_syncfs, 306, 1) +TRACE_SYSCALL_TABLE(sys_setns, sys_setns, 308, 2) + +#endif /* CREATE_SYSCALL_TABLE */ 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 new file mode 100644 index 00000000..109b2723 --- /dev/null +++ b/instrumentation/syscalls/headers/x86-64-syscalls-3.0.4_pointers.h @@ -0,0 +1,1390 @@ +/* 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 + +#include +#include + +TRACE_EVENT(sys_pipe, + TP_PROTO(int * fildes), + TP_ARGS(fildes), + TP_STRUCT__entry(__field(int *, fildes)), + TP_fast_assign(tp_assign(fildes, fildes)), + TP_printk() +) +TRACE_EVENT(sys_newuname, + TP_PROTO(struct new_utsname * name), + TP_ARGS(name), + TP_STRUCT__entry(__field(struct new_utsname *, name)), + TP_fast_assign(tp_assign(name, name)), + TP_printk() +) +TRACE_EVENT(sys_shmdt, + TP_PROTO(char * shmaddr), + TP_ARGS(shmaddr), + TP_STRUCT__entry(__field(char *, shmaddr)), + TP_fast_assign(tp_assign(shmaddr, shmaddr)), + TP_printk() +) +TRACE_EVENT(sys_chdir, + TP_PROTO(const char * filename), + TP_ARGS(filename), + TP_STRUCT__entry(__field(const char *, filename)), + TP_fast_assign(tp_assign(filename, filename)), + TP_printk() +) +TRACE_EVENT(sys_rmdir, + TP_PROTO(const char * pathname), + TP_ARGS(pathname), + TP_STRUCT__entry(__field(const char *, pathname)), + TP_fast_assign(tp_assign(pathname, pathname)), + TP_printk() +) +TRACE_EVENT(sys_unlink, + TP_PROTO(const char * pathname), + TP_ARGS(pathname), + TP_STRUCT__entry(__field(const char *, pathname)), + TP_fast_assign(tp_assign(pathname, pathname)), + TP_printk() +) +TRACE_EVENT(sys_sysinfo, + TP_PROTO(struct sysinfo * info), + TP_ARGS(info), + TP_STRUCT__entry(__field(struct sysinfo *, info)), + TP_fast_assign(tp_assign(info, info)), + TP_printk() +) +TRACE_EVENT(sys_times, + TP_PROTO(struct tms * tbuf), + TP_ARGS(tbuf), + TP_STRUCT__entry(__field(struct tms *, tbuf)), + TP_fast_assign(tp_assign(tbuf, tbuf)), + TP_printk() +) +TRACE_EVENT(sys_sysctl, + TP_PROTO(struct __sysctl_args * args), + TP_ARGS(args), + TP_STRUCT__entry(__field(struct __sysctl_args *, args)), + TP_fast_assign(tp_assign(args, args)), + TP_printk() +) +TRACE_EVENT(sys_adjtimex, + TP_PROTO(struct timex * txc_p), + TP_ARGS(txc_p), + TP_STRUCT__entry(__field(struct timex *, txc_p)), + TP_fast_assign(tp_assign(txc_p, txc_p)), + TP_printk() +) +TRACE_EVENT(sys_chroot, + TP_PROTO(const char * filename), + TP_ARGS(filename), + TP_STRUCT__entry(__field(const char *, filename)), + TP_fast_assign(tp_assign(filename, filename)), + TP_printk() +) +TRACE_EVENT(sys_swapoff, + TP_PROTO(const char * specialfile), + TP_ARGS(specialfile), + TP_STRUCT__entry(__field(const char *, specialfile)), + TP_fast_assign(tp_assign(specialfile, specialfile)), + TP_printk() +) +TRACE_EVENT(sys_time, + TP_PROTO(time_t * tloc), + TP_ARGS(tloc), + TP_STRUCT__entry(__field(time_t *, tloc)), + TP_fast_assign(tp_assign(tloc, tloc)), + TP_printk() +) +TRACE_EVENT(sys_set_tid_address, + TP_PROTO(int * tidptr), + TP_ARGS(tidptr), + TP_STRUCT__entry(__field(int *, tidptr)), + TP_fast_assign(tp_assign(tidptr, tidptr)), + TP_printk() +) +TRACE_EVENT(sys_mq_unlink, + TP_PROTO(const char * u_name), + TP_ARGS(u_name), + TP_STRUCT__entry(__field(const char *, u_name)), + TP_fast_assign(tp_assign(u_name, u_name)), + TP_printk() +) +TRACE_EVENT(sys_newstat, + TP_PROTO(const char * filename, struct stat * statbuf), + TP_ARGS(filename, statbuf), + TP_STRUCT__entry(__field(const char *, filename) __field(struct stat *, statbuf)), + TP_fast_assign(tp_assign(filename, filename) tp_assign(statbuf, statbuf)), + TP_printk() +) +TRACE_EVENT(sys_newfstat, + TP_PROTO(unsigned int fd, struct stat * statbuf), + TP_ARGS(fd, statbuf), + TP_STRUCT__entry(__field(unsigned int, fd) __field(struct stat *, statbuf)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(statbuf, statbuf)), + TP_printk() +) +TRACE_EVENT(sys_newlstat, + TP_PROTO(const char * filename, struct stat * statbuf), + TP_ARGS(filename, statbuf), + TP_STRUCT__entry(__field(const char *, filename) __field(struct stat *, statbuf)), + TP_fast_assign(tp_assign(filename, filename) tp_assign(statbuf, statbuf)), + TP_printk() +) +TRACE_EVENT(sys_access, + TP_PROTO(const char * filename, int mode), + TP_ARGS(filename, mode), + TP_STRUCT__entry(__field(const char *, filename) __field(int, mode)), + TP_fast_assign(tp_assign(filename, filename) tp_assign(mode, mode)), + TP_printk() +) +TRACE_EVENT(sys_nanosleep, + TP_PROTO(struct timespec * rqtp, struct timespec * rmtp), + TP_ARGS(rqtp, rmtp), + TP_STRUCT__entry(__field(struct timespec *, rqtp) __field(struct timespec *, rmtp)), + TP_fast_assign(tp_assign(rqtp, rqtp) tp_assign(rmtp, rmtp)), + TP_printk() +) +TRACE_EVENT(sys_getitimer, + TP_PROTO(int which, struct itimerval * value), + TP_ARGS(which, value), + TP_STRUCT__entry(__field(int, which) __field(struct itimerval *, value)), + TP_fast_assign(tp_assign(which, which) tp_assign(value, value)), + TP_printk() +) +TRACE_EVENT(sys_truncate, + TP_PROTO(const char * path, long length), + TP_ARGS(path, length), + TP_STRUCT__entry(__field(const char *, path) __field(long, length)), + TP_fast_assign(tp_assign(path, path) tp_assign(length, length)), + TP_printk() +) +TRACE_EVENT(sys_getcwd, + TP_PROTO(char * buf, unsigned long size), + TP_ARGS(buf, size), + TP_STRUCT__entry(__field(char *, buf) __field(unsigned long, size)), + TP_fast_assign(tp_assign(buf, buf) tp_assign(size, size)), + TP_printk() +) +TRACE_EVENT(sys_rename, + TP_PROTO(const char * oldname, const char * newname), + TP_ARGS(oldname, newname), + TP_STRUCT__entry(__field(const char *, oldname) __field(const char *, newname)), + TP_fast_assign(tp_assign(oldname, oldname) tp_assign(newname, newname)), + TP_printk() +) +TRACE_EVENT(sys_mkdir, + TP_PROTO(const char * pathname, int mode), + TP_ARGS(pathname, mode), + TP_STRUCT__entry(__field(const char *, pathname) __field(int, mode)), + TP_fast_assign(tp_assign(pathname, pathname) tp_assign(mode, mode)), + TP_printk() +) +TRACE_EVENT(sys_creat, + TP_PROTO(const char * pathname, int mode), + TP_ARGS(pathname, mode), + TP_STRUCT__entry(__field(const char *, pathname) __field(int, mode)), + TP_fast_assign(tp_assign(pathname, pathname) tp_assign(mode, mode)), + TP_printk() +) +TRACE_EVENT(sys_link, + TP_PROTO(const char * oldname, const char * newname), + TP_ARGS(oldname, newname), + TP_STRUCT__entry(__field(const char *, oldname) __field(const char *, newname)), + TP_fast_assign(tp_assign(oldname, oldname) tp_assign(newname, newname)), + TP_printk() +) +TRACE_EVENT(sys_symlink, + TP_PROTO(const char * oldname, const char * newname), + TP_ARGS(oldname, newname), + TP_STRUCT__entry(__field(const char *, oldname) __field(const char *, newname)), + TP_fast_assign(tp_assign(oldname, oldname) tp_assign(newname, newname)), + TP_printk() +) +TRACE_EVENT(sys_chmod, + TP_PROTO(const char * filename, mode_t mode), + TP_ARGS(filename, mode), + TP_STRUCT__entry(__field(const char *, filename) __field(mode_t, mode)), + TP_fast_assign(tp_assign(filename, filename) tp_assign(mode, mode)), + TP_printk() +) +TRACE_EVENT(sys_gettimeofday, + TP_PROTO(struct timeval * tv, struct timezone * tz), + TP_ARGS(tv, tz), + TP_STRUCT__entry(__field(struct timeval *, tv) __field(struct timezone *, tz)), + TP_fast_assign(tp_assign(tv, tv) tp_assign(tz, tz)), + TP_printk() +) +TRACE_EVENT(sys_getrlimit, + TP_PROTO(unsigned int resource, struct rlimit * rlim), + TP_ARGS(resource, rlim), + TP_STRUCT__entry(__field(unsigned int, resource) __field(struct rlimit *, rlim)), + TP_fast_assign(tp_assign(resource, resource) tp_assign(rlim, rlim)), + TP_printk() +) +TRACE_EVENT(sys_getrusage, + TP_PROTO(int who, struct rusage * ru), + TP_ARGS(who, ru), + TP_STRUCT__entry(__field(int, who) __field(struct rusage *, ru)), + TP_fast_assign(tp_assign(who, who) tp_assign(ru, ru)), + TP_printk() +) +TRACE_EVENT(sys_getgroups, + TP_PROTO(int gidsetsize, gid_t * grouplist), + TP_ARGS(gidsetsize, grouplist), + TP_STRUCT__entry(__field(int, gidsetsize) __field(gid_t *, grouplist)), + TP_fast_assign(tp_assign(gidsetsize, gidsetsize) tp_assign(grouplist, grouplist)), + TP_printk() +) +TRACE_EVENT(sys_setgroups, + TP_PROTO(int gidsetsize, gid_t * grouplist), + TP_ARGS(gidsetsize, grouplist), + TP_STRUCT__entry(__field(int, gidsetsize) __field(gid_t *, grouplist)), + TP_fast_assign(tp_assign(gidsetsize, gidsetsize) tp_assign(grouplist, grouplist)), + TP_printk() +) +TRACE_EVENT(sys_rt_sigpending, + TP_PROTO(sigset_t * set, size_t sigsetsize), + TP_ARGS(set, sigsetsize), + TP_STRUCT__entry(__field(sigset_t *, set) __field(size_t, sigsetsize)), + TP_fast_assign(tp_assign(set, set) tp_assign(sigsetsize, sigsetsize)), + TP_printk() +) +TRACE_EVENT(sys_rt_sigsuspend, + TP_PROTO(sigset_t * unewset, size_t sigsetsize), + TP_ARGS(unewset, sigsetsize), + TP_STRUCT__entry(__field(sigset_t *, unewset) __field(size_t, sigsetsize)), + TP_fast_assign(tp_assign(unewset, unewset) tp_assign(sigsetsize, sigsetsize)), + TP_printk() +) +TRACE_EVENT(sys_utime, + TP_PROTO(char * filename, struct utimbuf * times), + TP_ARGS(filename, times), + TP_STRUCT__entry(__field(char *, filename) __field(struct utimbuf *, times)), + TP_fast_assign(tp_assign(filename, filename) tp_assign(times, times)), + TP_printk() +) +TRACE_EVENT(sys_ustat, + TP_PROTO(unsigned dev, struct ustat * ubuf), + TP_ARGS(dev, ubuf), + TP_STRUCT__entry(__field(unsigned, dev) __field(struct ustat *, ubuf)), + TP_fast_assign(tp_assign(dev, dev) tp_assign(ubuf, ubuf)), + TP_printk() +) +TRACE_EVENT(sys_statfs, + TP_PROTO(const char * pathname, struct statfs * buf), + TP_ARGS(pathname, buf), + TP_STRUCT__entry(__field(const char *, pathname) __field(struct statfs *, buf)), + TP_fast_assign(tp_assign(pathname, pathname) tp_assign(buf, buf)), + TP_printk() +) +TRACE_EVENT(sys_fstatfs, + TP_PROTO(unsigned int fd, struct statfs * buf), + TP_ARGS(fd, buf), + TP_STRUCT__entry(__field(unsigned int, fd) __field(struct statfs *, buf)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(buf, buf)), + TP_printk() +) +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(struct sched_param *, param)), + TP_fast_assign(tp_assign(pid, pid) tp_assign(param, param)), + TP_printk() +) +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(struct sched_param *, param)), + TP_fast_assign(tp_assign(pid, pid) tp_assign(param, param)), + TP_printk() +) +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(struct timespec *, interval)), + TP_fast_assign(tp_assign(pid, pid) tp_assign(interval, interval)), + TP_printk() +) +TRACE_EVENT(sys_pivot_root, + TP_PROTO(const char * new_root, const char * put_old), + TP_ARGS(new_root, put_old), + TP_STRUCT__entry(__field(const char *, new_root) __field(const char *, put_old)), + TP_fast_assign(tp_assign(new_root, new_root) tp_assign(put_old, put_old)), + TP_printk() +) +TRACE_EVENT(sys_setrlimit, + TP_PROTO(unsigned int resource, struct rlimit * rlim), + TP_ARGS(resource, rlim), + TP_STRUCT__entry(__field(unsigned int, resource) __field(struct rlimit *, rlim)), + TP_fast_assign(tp_assign(resource, resource) tp_assign(rlim, rlim)), + TP_printk() +) +TRACE_EVENT(sys_settimeofday, + TP_PROTO(struct timeval * tv, struct timezone * tz), + TP_ARGS(tv, tz), + TP_STRUCT__entry(__field(struct timeval *, tv) __field(struct timezone *, tz)), + TP_fast_assign(tp_assign(tv, tv) tp_assign(tz, tz)), + TP_printk() +) +TRACE_EVENT(sys_umount, + TP_PROTO(char * name, int flags), + TP_ARGS(name, flags), + TP_STRUCT__entry(__field(char *, name) __field(int, flags)), + TP_fast_assign(tp_assign(name, name) tp_assign(flags, flags)), + TP_printk() +) +TRACE_EVENT(sys_swapon, + TP_PROTO(const char * specialfile, int swap_flags), + TP_ARGS(specialfile, swap_flags), + TP_STRUCT__entry(__field(const char *, specialfile) __field(int, swap_flags)), + TP_fast_assign(tp_assign(specialfile, specialfile) tp_assign(swap_flags, swap_flags)), + TP_printk() +) +TRACE_EVENT(sys_sethostname, + TP_PROTO(char * name, int len), + TP_ARGS(name, len), + TP_STRUCT__entry(__field(char *, name) __field(int, len)), + TP_fast_assign(tp_assign(name, name) tp_assign(len, len)), + TP_printk() +) +TRACE_EVENT(sys_setdomainname, + TP_PROTO(char * name, int len), + TP_ARGS(name, len), + TP_STRUCT__entry(__field(char *, name) __field(int, len)), + TP_fast_assign(tp_assign(name, name) tp_assign(len, len)), + TP_printk() +) +TRACE_EVENT(sys_delete_module, + TP_PROTO(const char * name_user, unsigned int flags), + TP_ARGS(name_user, flags), + TP_STRUCT__entry(__field(const char *, name_user) __field(unsigned int, flags)), + TP_fast_assign(tp_assign(name_user, name_user) tp_assign(flags, flags)), + TP_printk() +) +TRACE_EVENT(sys_removexattr, + TP_PROTO(const char * pathname, const char * name), + TP_ARGS(pathname, name), + TP_STRUCT__entry(__field(const char *, pathname) __field(const char *, name)), + TP_fast_assign(tp_assign(pathname, pathname) tp_assign(name, name)), + TP_printk() +) +TRACE_EVENT(sys_lremovexattr, + TP_PROTO(const char * pathname, const char * name), + TP_ARGS(pathname, name), + TP_STRUCT__entry(__field(const char *, pathname) __field(const char *, name)), + TP_fast_assign(tp_assign(pathname, pathname) tp_assign(name, name)), + TP_printk() +) +TRACE_EVENT(sys_fremovexattr, + TP_PROTO(int fd, const char * name), + TP_ARGS(fd, name), + TP_STRUCT__entry(__field(int, fd) __field(const char *, name)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(name, name)), + TP_printk() +) +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(aio_context_t *, ctxp)), + TP_fast_assign(tp_assign(nr_events, nr_events) tp_assign(ctxp, ctxp)), + TP_printk() +) +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(struct itimerspec *, setting)), + TP_fast_assign(tp_assign(timer_id, timer_id) tp_assign(setting, setting)), + TP_printk() +) +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(const struct timespec *, tp)), + TP_fast_assign(tp_assign(which_clock, which_clock) tp_assign(tp, tp)), + TP_printk() +) +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(struct timespec *, tp)), + TP_fast_assign(tp_assign(which_clock, which_clock) tp_assign(tp, tp)), + TP_printk() +) +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(struct timespec *, tp)), + TP_fast_assign(tp_assign(which_clock, which_clock) tp_assign(tp, tp)), + TP_printk() +) +TRACE_EVENT(sys_utimes, + TP_PROTO(char * filename, struct timeval * utimes), + TP_ARGS(filename, utimes), + TP_STRUCT__entry(__field(char *, filename) __field(struct timeval *, utimes)), + TP_fast_assign(tp_assign(filename, filename) tp_assign(utimes, utimes)), + TP_printk() +) +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(const struct sigevent *, u_notification)), + TP_fast_assign(tp_assign(mqdes, mqdes) tp_assign(u_notification, u_notification)), + TP_printk() +) +TRACE_EVENT(sys_set_robust_list, + TP_PROTO(struct robust_list_head * head, size_t len), + TP_ARGS(head, len), + TP_STRUCT__entry(__field(struct robust_list_head *, head) __field(size_t, len)), + TP_fast_assign(tp_assign(head, head) tp_assign(len, len)), + TP_printk() +) +TRACE_EVENT(sys_timerfd_gettime, + TP_PROTO(int ufd, struct itimerspec * otmr), + TP_ARGS(ufd, otmr), + TP_STRUCT__entry(__field(int, ufd) __field(struct itimerspec *, otmr)), + TP_fast_assign(tp_assign(ufd, ufd) tp_assign(otmr, otmr)), + TP_printk() +) +TRACE_EVENT(sys_pipe2, + TP_PROTO(int * fildes, int flags), + TP_ARGS(fildes, flags), + TP_STRUCT__entry(__field(int *, fildes) __field(int, flags)), + TP_fast_assign(tp_assign(fildes, fildes) tp_assign(flags, flags)), + TP_printk() +) +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(struct timex *, utx)), + TP_fast_assign(tp_assign(which_clock, which_clock) tp_assign(utx, utx)), + TP_printk() +) +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(char *, buf) __field(size_t, count)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(buf, buf) tp_assign(count, count)), + TP_printk() +) +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(const char *, buf) __field(size_t, count)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(buf, buf) tp_assign(count, count)), + TP_printk() +) +TRACE_EVENT(sys_open, + TP_PROTO(const char * filename, int flags, int mode), + TP_ARGS(filename, flags, mode), + TP_STRUCT__entry(__field(const char *, filename) __field(int, flags) __field(int, mode)), + TP_fast_assign(tp_assign(filename, filename) tp_assign(flags, flags) tp_assign(mode, mode)), + TP_printk() +) +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(struct pollfd *, ufds) __field(unsigned int, nfds) __field(long, timeout_msecs)), + TP_fast_assign(tp_assign(ufds, ufds) tp_assign(nfds, nfds) tp_assign(timeout_msecs, timeout_msecs)), + TP_printk() +) +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(const struct iovec *, vec) __field(unsigned long, vlen)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(vec, vec) tp_assign(vlen, vlen)), + TP_printk() +) +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(const struct iovec *, vec) __field(unsigned long, vlen)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(vec, vec) tp_assign(vlen, vlen)), + TP_printk() +) +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(unsigned char *, vec)), + TP_fast_assign(tp_assign(start, start) tp_assign(len, len) tp_assign(vec, vec)), + TP_printk() +) +TRACE_EVENT(sys_shmat, + TP_PROTO(int shmid, char * shmaddr, int shmflg), + TP_ARGS(shmid, shmaddr, shmflg), + TP_STRUCT__entry(__field(int, shmid) __field(char *, shmaddr) __field(int, shmflg)), + TP_fast_assign(tp_assign(shmid, shmid) tp_assign(shmaddr, shmaddr) tp_assign(shmflg, shmflg)), + TP_printk() +) +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(struct shmid_ds *, buf)), + TP_fast_assign(tp_assign(shmid, shmid) tp_assign(cmd, cmd) tp_assign(buf, buf)), + TP_printk() +) +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(struct itimerval *, value) __field(struct itimerval *, ovalue)), + TP_fast_assign(tp_assign(which, which) tp_assign(value, value) tp_assign(ovalue, ovalue)), + TP_printk() +) +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(struct sockaddr *, uservaddr) __field(int, addrlen)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(uservaddr, uservaddr) tp_assign(addrlen, addrlen)), + TP_printk() +) +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(struct sockaddr *, upeer_sockaddr) __field(int *, upeer_addrlen)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(upeer_sockaddr, upeer_sockaddr) tp_assign(upeer_addrlen, upeer_addrlen)), + TP_printk() +) +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(struct msghdr *, msg) __field(unsigned, flags)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(msg, msg) tp_assign(flags, flags)), + TP_printk() +) +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(struct msghdr *, msg) __field(unsigned int, flags)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(msg, msg) tp_assign(flags, flags)), + TP_printk() +) +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(struct sockaddr *, umyaddr) __field(int, addrlen)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(umyaddr, umyaddr) tp_assign(addrlen, addrlen)), + TP_printk() +) +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(struct sockaddr *, usockaddr) __field(int *, usockaddr_len)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(usockaddr, usockaddr) tp_assign(usockaddr_len, usockaddr_len)), + TP_printk() +) +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(struct sockaddr *, usockaddr) __field(int *, usockaddr_len)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(usockaddr, usockaddr) tp_assign(usockaddr_len, usockaddr_len)), + TP_printk() +) +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(struct sembuf *, tsops) __field(unsigned, nsops)), + TP_fast_assign(tp_assign(semid, semid) tp_assign(tsops, tsops) tp_assign(nsops, nsops)), + TP_printk() +) +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(struct msqid_ds *, buf)), + TP_fast_assign(tp_assign(msqid, msqid) tp_assign(cmd, cmd) tp_assign(buf, buf)), + TP_printk() +) +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(struct linux_dirent *, dirent) __field(unsigned int, count)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(dirent, dirent) tp_assign(count, count)), + TP_printk() +) +TRACE_EVENT(sys_readlink, + TP_PROTO(const char * path, char * buf, int bufsiz), + TP_ARGS(path, buf, bufsiz), + TP_STRUCT__entry(__field(const char *, path) __field(char *, buf) __field(int, bufsiz)), + TP_fast_assign(tp_assign(path, path) tp_assign(buf, buf) tp_assign(bufsiz, bufsiz)), + TP_printk() +) +TRACE_EVENT(sys_chown, + TP_PROTO(const char * filename, uid_t user, gid_t group), + TP_ARGS(filename, user, group), + TP_STRUCT__entry(__field(const char *, filename) __field(uid_t, user) __field(gid_t, group)), + TP_fast_assign(tp_assign(filename, filename) tp_assign(user, user) tp_assign(group, group)), + TP_printk() +) +TRACE_EVENT(sys_lchown, + TP_PROTO(const char * filename, uid_t user, gid_t group), + TP_ARGS(filename, user, group), + TP_STRUCT__entry(__field(const char *, filename) __field(uid_t, user) __field(gid_t, group)), + TP_fast_assign(tp_assign(filename, filename) tp_assign(user, user) tp_assign(group, group)), + TP_printk() +) +TRACE_EVENT(sys_syslog, + TP_PROTO(int type, char * buf, int len), + TP_ARGS(type, buf, len), + TP_STRUCT__entry(__field(int, type) __field(char *, buf) __field(int, len)), + TP_fast_assign(tp_assign(type, type) tp_assign(buf, buf) tp_assign(len, len)), + TP_printk() +) +TRACE_EVENT(sys_getresuid, + 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)), + TP_fast_assign(tp_assign(ruid, ruid) tp_assign(euid, euid) tp_assign(suid, suid)), + TP_printk() +) +TRACE_EVENT(sys_getresgid, + 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)), + TP_fast_assign(tp_assign(rgid, rgid) tp_assign(egid, egid) tp_assign(sgid, sgid)), + TP_printk() +) +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(siginfo_t *, uinfo)), + TP_fast_assign(tp_assign(pid, pid) tp_assign(sig, sig) tp_assign(uinfo, uinfo)), + TP_printk() +) +TRACE_EVENT(sys_mknod, + TP_PROTO(const char * filename, int mode, unsigned dev), + TP_ARGS(filename, mode, dev), + TP_STRUCT__entry(__field(const char *, filename) __field(int, mode) __field(unsigned, dev)), + TP_fast_assign(tp_assign(filename, filename) tp_assign(mode, mode) tp_assign(dev, dev)), + TP_printk() +) +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(struct sched_param *, param)), + TP_fast_assign(tp_assign(pid, pid) tp_assign(policy, policy) tp_assign(param, param)), + TP_printk() +) +TRACE_EVENT(sys_init_module, + TP_PROTO(void * umod, unsigned long len, const char * uargs), + TP_ARGS(umod, len, uargs), + TP_STRUCT__entry(__field(void *, umod) __field(unsigned long, len) __field(const char *, uargs)), + TP_fast_assign(tp_assign(umod, umod) tp_assign(len, len) tp_assign(uargs, uargs)), + TP_printk() +) +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(struct nfsctl_arg *, arg) __field(void *, res)), + TP_fast_assign(tp_assign(cmd, cmd) tp_assign(arg, arg) tp_assign(res, res)), + TP_printk() +) +TRACE_EVENT(sys_listxattr, + TP_PROTO(const char * pathname, char * list, size_t size), + TP_ARGS(pathname, list, size), + TP_STRUCT__entry(__field(const char *, pathname) __field(char *, list) __field(size_t, size)), + TP_fast_assign(tp_assign(pathname, pathname) tp_assign(list, list) tp_assign(size, size)), + TP_printk() +) +TRACE_EVENT(sys_llistxattr, + TP_PROTO(const char * pathname, char * list, size_t size), + TP_ARGS(pathname, list, size), + TP_STRUCT__entry(__field(const char *, pathname) __field(char *, list) __field(size_t, size)), + TP_fast_assign(tp_assign(pathname, pathname) tp_assign(list, list) tp_assign(size, size)), + TP_printk() +) +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(char *, list) __field(size_t, size)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(list, list) tp_assign(size, size)), + TP_printk() +) +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(unsigned long *, user_mask_ptr)), + TP_fast_assign(tp_assign(pid, pid) tp_assign(len, len) tp_assign(user_mask_ptr, user_mask_ptr)), + TP_printk() +) +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(unsigned long *, user_mask_ptr)), + TP_fast_assign(tp_assign(pid, pid) tp_assign(len, len) tp_assign(user_mask_ptr, user_mask_ptr)), + TP_printk() +) +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(struct iocb * *, iocbpp)), + TP_fast_assign(tp_assign(ctx_id, ctx_id) tp_assign(nr, nr) tp_assign(iocbpp, iocbpp)), + TP_printk() +) +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(struct iocb *, iocb) __field(struct io_event *, result)), + TP_fast_assign(tp_assign(ctx_id, ctx_id) tp_assign(iocb, iocb) tp_assign(result, result)), + TP_printk() +) +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(struct linux_dirent64 *, dirent) __field(unsigned int, count)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(dirent, dirent) tp_assign(count, count)), + TP_printk() +) +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(struct sigevent *, timer_event_spec) __field(timer_t *, created_timer_id)), + TP_fast_assign(tp_assign(which_clock, which_clock) tp_assign(timer_event_spec, timer_event_spec) tp_assign(created_timer_id, created_timer_id)), + TP_printk() +) +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(const struct mq_attr *, u_mqstat) __field(struct mq_attr *, u_omqstat)), + TP_fast_assign(tp_assign(mqdes, mqdes) tp_assign(u_mqstat, u_mqstat) tp_assign(u_omqstat, u_omqstat)), + TP_printk() +) +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) __field(const char *, pathname) __field(u32, mask)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(pathname, pathname) tp_assign(mask, mask)), + TP_printk() +) +TRACE_EVENT(sys_mkdirat, + TP_PROTO(int dfd, const char * pathname, int mode), + TP_ARGS(dfd, pathname, mode), + TP_STRUCT__entry(__field(int, dfd) __field(const char *, pathname) __field(int, mode)), + TP_fast_assign(tp_assign(dfd, dfd) tp_assign(pathname, pathname) tp_assign(mode, mode)), + TP_printk() +) +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) __field(const char *, filename) __field(struct timeval *, utimes)), + TP_fast_assign(tp_assign(dfd, dfd) tp_assign(filename, filename) tp_assign(utimes, utimes)), + TP_printk() +) +TRACE_EVENT(sys_unlinkat, + TP_PROTO(int dfd, const char * pathname, int flag), + TP_ARGS(dfd, pathname, flag), + TP_STRUCT__entry(__field(int, dfd) __field(const char *, pathname) __field(int, flag)), + TP_fast_assign(tp_assign(dfd, dfd) tp_assign(pathname, pathname) tp_assign(flag, flag)), + TP_printk() +) +TRACE_EVENT(sys_symlinkat, + TP_PROTO(const char * oldname, int newdfd, const char * newname), + TP_ARGS(oldname, newdfd, newname), + TP_STRUCT__entry(__field(const char *, oldname) __field(int, newdfd) __field(const char *, newname)), + TP_fast_assign(tp_assign(oldname, oldname) tp_assign(newdfd, newdfd) tp_assign(newname, newname)), + TP_printk() +) +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) __field(const char *, filename) __field(mode_t, mode)), + TP_fast_assign(tp_assign(dfd, dfd) tp_assign(filename, filename) tp_assign(mode, mode)), + TP_printk() +) +TRACE_EVENT(sys_faccessat, + TP_PROTO(int dfd, const char * filename, int mode), + TP_ARGS(dfd, filename, mode), + TP_STRUCT__entry(__field(int, dfd) __field(const char *, filename) __field(int, mode)), + TP_fast_assign(tp_assign(dfd, dfd) tp_assign(filename, filename) tp_assign(mode, mode)), + TP_printk() +) +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(struct robust_list_head * *, head_ptr) __field(size_t *, len_ptr)), + TP_fast_assign(tp_assign(pid, pid) tp_assign(head_ptr, head_ptr) tp_assign(len_ptr, len_ptr)), + TP_printk() +) +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(sigset_t *, user_mask) __field(size_t, sizemask)), + TP_fast_assign(tp_assign(ufd, ufd) tp_assign(user_mask, user_mask) tp_assign(sizemask, sizemask)), + TP_printk() +) +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(const struct sigaction *, act) __field(struct sigaction *, oact) __field(size_t, sigsetsize)), + TP_fast_assign(tp_assign(sig, sig) tp_assign(act, act) tp_assign(oact, oact) tp_assign(sigsetsize, sigsetsize)), + TP_printk() +) +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(sigset_t *, nset) __field(sigset_t *, oset) __field(size_t, sigsetsize)), + TP_fast_assign(tp_assign(how, how) tp_assign(nset, nset) tp_assign(oset, oset) tp_assign(sigsetsize, sigsetsize)), + TP_printk() +) +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(loff_t *, offset) __field(size_t, count)), + TP_fast_assign(tp_assign(out_fd, out_fd) tp_assign(in_fd, in_fd) tp_assign(offset, offset) tp_assign(count, count)), + TP_printk() +) +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(int *, usockvec)), + TP_fast_assign(tp_assign(family, family) tp_assign(type, type) tp_assign(protocol, protocol) tp_assign(usockvec, usockvec)), + TP_printk() +) +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(int *, stat_addr) __field(int, options) __field(struct rusage *, ru)), + TP_fast_assign(tp_assign(upid, upid) tp_assign(stat_addr, stat_addr) tp_assign(options, options) tp_assign(ru, ru)), + TP_printk() +) +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(struct msgbuf *, msgp) __field(size_t, msgsz) __field(int, msgflg)), + TP_fast_assign(tp_assign(msqid, msqid) tp_assign(msgp, msgp) tp_assign(msgsz, msgsz) tp_assign(msgflg, msgflg)), + TP_printk() +) +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(const sigset_t *, uthese) __field(siginfo_t *, uinfo) __field(const struct timespec *, uts) __field(size_t, sigsetsize)), + TP_fast_assign(tp_assign(uthese, uthese) tp_assign(uinfo, uinfo) tp_assign(uts, uts) tp_assign(sigsetsize, sigsetsize)), + TP_printk() +) +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(void *, arg)), + TP_fast_assign(tp_assign(magic1, magic1) tp_assign(magic2, magic2) tp_assign(cmd, cmd) tp_assign(arg, arg)), + TP_printk() +) +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(__field(const char *, pathname) __field(const char *, name) __field(void *, value) __field(size_t, size)), + TP_fast_assign(tp_assign(pathname, pathname) tp_assign(name, name) tp_assign(value, value) tp_assign(size, size)), + TP_printk() +) +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(__field(const char *, pathname) __field(const char *, name) __field(void *, value) __field(size_t, size)), + TP_fast_assign(tp_assign(pathname, pathname) tp_assign(name, name) tp_assign(value, value) tp_assign(size, size)), + TP_printk() +) +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) __field(const char *, name) __field(void *, value) __field(size_t, size)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(name, name) tp_assign(value, value) tp_assign(size, size)), + TP_printk() +) +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(struct sembuf *, tsops) __field(unsigned, nsops) __field(const struct timespec *, timeout)), + TP_fast_assign(tp_assign(semid, semid) tp_assign(tsops, tsops) tp_assign(nsops, nsops) tp_assign(timeout, timeout)), + TP_printk() +) +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(const struct itimerspec *, new_setting) __field(struct itimerspec *, old_setting)), + TP_fast_assign(tp_assign(timer_id, timer_id) tp_assign(flags, flags) tp_assign(new_setting, new_setting) tp_assign(old_setting, old_setting)), + TP_printk() +) +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(const struct timespec *, rqtp) __field(struct timespec *, rmtp)), + TP_fast_assign(tp_assign(which_clock, which_clock) tp_assign(flags, flags) tp_assign(rqtp, rqtp) tp_assign(rmtp, rmtp)), + TP_printk() +) +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(struct epoll_event *, events) __field(int, maxevents) __field(int, timeout)), + TP_fast_assign(tp_assign(epfd, epfd) tp_assign(events, events) tp_assign(maxevents, maxevents) tp_assign(timeout, timeout)), + TP_printk() +) +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(struct epoll_event *, event)), + TP_fast_assign(tp_assign(epfd, epfd) tp_assign(op, op) tp_assign(fd, fd) tp_assign(event, event)), + TP_printk() +) +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(__field(const char *, u_name) __field(int, oflag) __field(mode_t, mode) __field(struct mq_attr *, u_attr)), + TP_fast_assign(tp_assign(u_name, u_name) tp_assign(oflag, oflag) tp_assign(mode, mode) tp_assign(u_attr, u_attr)), + TP_printk() +) +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(struct kexec_segment *, segments) __field(unsigned long, flags)), + TP_fast_assign(tp_assign(entry, entry) tp_assign(nr_segments, nr_segments) tp_assign(segments, segments) tp_assign(flags, flags)), + TP_printk() +) +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) __field(const char *, filename) __field(int, flags) __field(int, mode)), + TP_fast_assign(tp_assign(dfd, dfd) tp_assign(filename, filename) tp_assign(flags, flags) tp_assign(mode, mode)), + TP_printk() +) +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) __field(const char *, filename) __field(int, mode) __field(unsigned, dev)), + TP_fast_assign(tp_assign(dfd, dfd) tp_assign(filename, filename) tp_assign(mode, mode) tp_assign(dev, dev)), + TP_printk() +) +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) __field(const char *, filename) __field(struct stat *, statbuf) __field(int, flag)), + TP_fast_assign(tp_assign(dfd, dfd) tp_assign(filename, filename) tp_assign(statbuf, statbuf) tp_assign(flag, flag)), + TP_printk() +) +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) __field(const char *, oldname) __field(int, newdfd) __field(const char *, newname)), + TP_fast_assign(tp_assign(olddfd, olddfd) tp_assign(oldname, oldname) tp_assign(newdfd, newdfd) tp_assign(newname, newname)), + TP_printk() +) +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) __field(const char *, pathname) __field(char *, buf) __field(int, bufsiz)), + TP_fast_assign(tp_assign(dfd, dfd) tp_assign(pathname, pathname) tp_assign(buf, buf) tp_assign(bufsiz, bufsiz)), + TP_printk() +) +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(const struct iovec *, iov) __field(unsigned long, nr_segs) __field(unsigned int, flags)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(iov, iov) tp_assign(nr_segs, nr_segs) tp_assign(flags, flags)), + TP_printk() +) +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) __field(const char *, filename) __field(struct timespec *, utimes) __field(int, flags)), + TP_fast_assign(tp_assign(dfd, dfd) tp_assign(filename, filename) tp_assign(utimes, utimes) tp_assign(flags, flags)), + TP_printk() +) +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(const struct itimerspec *, utmr) __field(struct itimerspec *, otmr)), + TP_fast_assign(tp_assign(ufd, ufd) tp_assign(flags, flags) tp_assign(utmr, utmr) tp_assign(otmr, otmr)), + TP_printk() +) +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(struct sockaddr *, upeer_sockaddr) __field(int *, upeer_addrlen) __field(int, flags)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(upeer_sockaddr, upeer_sockaddr) tp_assign(upeer_addrlen, upeer_addrlen) tp_assign(flags, flags)), + TP_printk() +) +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(sigset_t *, user_mask) __field(size_t, sizemask) __field(int, flags)), + TP_fast_assign(tp_assign(ufd, ufd) tp_assign(user_mask, user_mask) tp_assign(sizemask, sizemask) tp_assign(flags, flags)), + TP_printk() +) +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(siginfo_t *, uinfo)), + TP_fast_assign(tp_assign(tgid, tgid) tp_assign(pid, pid) tp_assign(sig, sig) tp_assign(uinfo, uinfo)), + TP_printk() +) +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(const struct rlimit64 *, new_rlim) __field(struct rlimit64 *, old_rlim)), + TP_fast_assign(tp_assign(pid, pid) tp_assign(resource, resource) tp_assign(new_rlim, new_rlim) tp_assign(old_rlim, old_rlim)), + TP_printk() +) +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(struct mmsghdr *, mmsg) __field(unsigned int, vlen) __field(unsigned int, flags)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(mmsg, mmsg) tp_assign(vlen, vlen) tp_assign(flags, flags)), + TP_printk() +) +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(fd_set *, inp) __field(fd_set *, outp) __field(fd_set *, exp) __field(struct timeval *, tvp)), + TP_fast_assign(tp_assign(n, n) tp_assign(inp, inp) tp_assign(outp, outp) tp_assign(exp, exp) tp_assign(tvp, tvp)), + TP_printk() +) +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(char *, optval) __field(int, optlen)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(level, level) tp_assign(optname, optname) tp_assign(optval, optval) tp_assign(optlen, optlen)), + TP_printk() +) +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(char *, optval) __field(int *, optlen)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(level, level) tp_assign(optname, optname) tp_assign(optval, optval) tp_assign(optlen, optlen)), + TP_printk() +) +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(struct msgbuf *, msgp) __field(size_t, msgsz) __field(long, msgtyp) __field(int, msgflg)), + TP_fast_assign(tp_assign(msqid, msqid) tp_assign(msgp, msgp) tp_assign(msgsz, msgsz) tp_assign(msgtyp, msgtyp) tp_assign(msgflg, msgflg)), + TP_printk() +) +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(__field(char *, dev_name) __field(char *, dir_name) __field(char *, type) __field(unsigned long, flags) __field(void *, data)), + TP_fast_assign(tp_assign(dev_name, dev_name) tp_assign(dir_name, dir_name) tp_assign(type, type) tp_assign(flags, flags) tp_assign(data, data)), + TP_printk() +) +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(__field(const char *, pathname) __field(const char *, name) __field(const void *, value) __field(size_t, size) __field(int, flags)), + TP_fast_assign(tp_assign(pathname, pathname) tp_assign(name, name) tp_assign(value, value) tp_assign(size, size) tp_assign(flags, flags)), + TP_printk() +) +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(__field(const char *, pathname) __field(const char *, name) __field(const void *, value) __field(size_t, size) __field(int, flags)), + TP_fast_assign(tp_assign(pathname, pathname) tp_assign(name, name) tp_assign(value, value) tp_assign(size, size) tp_assign(flags, flags)), + TP_printk() +) +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) __field(const char *, name) __field(const void *, value) __field(size_t, size) __field(int, flags)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(name, name) tp_assign(value, value) tp_assign(size, size) tp_assign(flags, flags)), + TP_printk() +) +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(struct io_event *, events) __field(struct timespec *, timeout)), + TP_fast_assign(tp_assign(ctx_id, ctx_id) tp_assign(min_nr, min_nr) tp_assign(nr, nr) tp_assign(events, events) tp_assign(timeout, timeout)), + TP_printk() +) +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(const char *, u_msg_ptr) __field(size_t, msg_len) __field(unsigned int, msg_prio) __field(const struct timespec *, u_abs_timeout)), + TP_fast_assign(tp_assign(mqdes, mqdes) tp_assign(u_msg_ptr, u_msg_ptr) tp_assign(msg_len, msg_len) tp_assign(msg_prio, msg_prio) tp_assign(u_abs_timeout, u_abs_timeout)), + TP_printk() +) +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(char *, u_msg_ptr) __field(size_t, msg_len) __field(unsigned int *, u_msg_prio) __field(const struct timespec *, u_abs_timeout)), + TP_fast_assign(tp_assign(mqdes, mqdes) tp_assign(u_msg_ptr, u_msg_ptr) tp_assign(msg_len, msg_len) tp_assign(u_msg_prio, u_msg_prio) tp_assign(u_abs_timeout, u_abs_timeout)), + TP_printk() +) +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(struct siginfo *, infop) __field(int, options) __field(struct rusage *, ru)), + TP_fast_assign(tp_assign(which, which) tp_assign(upid, upid) tp_assign(infop, infop) tp_assign(options, options) tp_assign(ru, ru)), + TP_printk() +) +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) __field(const char *, filename) __field(uid_t, user) __field(gid_t, group) __field(int, flag)), + TP_fast_assign(tp_assign(dfd, dfd) tp_assign(filename, filename) tp_assign(user, user) tp_assign(group, group) tp_assign(flag, flag)), + TP_printk() +) +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) __field(const char *, oldname) __field(int, newdfd) __field(const char *, newname) __field(int, flags)), + TP_fast_assign(tp_assign(olddfd, olddfd) tp_assign(oldname, oldname) tp_assign(newdfd, newdfd) tp_assign(newname, newname) tp_assign(flags, flags)), + TP_printk() +) +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(struct pollfd *, ufds) __field(unsigned int, nfds) __field(struct timespec *, tsp) __field(const sigset_t *, sigmask) __field(size_t, sigsetsize)), + TP_fast_assign(tp_assign(ufds, ufds) tp_assign(nfds, nfds) tp_assign(tsp, tsp) tp_assign(sigmask, sigmask) tp_assign(sigsetsize, sigsetsize)), + TP_printk() +) +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(const struct iovec *, vec) __field(unsigned long, vlen) __field(unsigned long, pos_l) __field(unsigned long, pos_h)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(vec, vec) tp_assign(vlen, vlen) tp_assign(pos_l, pos_l) tp_assign(pos_h, pos_h)), + TP_printk() +) +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(const struct iovec *, vec) __field(unsigned long, vlen) __field(unsigned long, pos_l) __field(unsigned long, pos_h)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(vec, vec) tp_assign(vlen, vlen) tp_assign(pos_l, pos_l) tp_assign(pos_h, pos_h)), + TP_printk() +) +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(struct perf_event_attr *, attr_uptr) __field(pid_t, pid) __field(int, cpu) __field(int, group_fd) __field(unsigned long, flags)), + TP_fast_assign(tp_assign(attr_uptr, attr_uptr) tp_assign(pid, pid) tp_assign(cpu, cpu) tp_assign(group_fd, group_fd) tp_assign(flags, flags)), + TP_printk() +) +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(struct mmsghdr *, mmsg) __field(unsigned int, vlen) __field(unsigned int, flags) __field(struct timespec *, timeout)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(mmsg, mmsg) tp_assign(vlen, vlen) tp_assign(flags, flags) tp_assign(timeout, timeout)), + TP_printk() +) +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(void *, buff) __field(size_t, len) __field(unsigned, flags) __field(struct sockaddr *, addr) __field(int, addr_len)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(buff, buff) tp_assign(len, len) tp_assign(flags, flags) tp_assign(addr, addr) tp_assign(addr_len, addr_len)), + TP_printk() +) +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(void *, ubuf) __field(size_t, size) __field(unsigned, flags) __field(struct sockaddr *, addr) __field(int *, addr_len)), + TP_fast_assign(tp_assign(fd, fd) tp_assign(ubuf, ubuf) tp_assign(size, size) tp_assign(flags, flags) tp_assign(addr, addr) tp_assign(addr_len, addr_len)), + TP_printk() +) +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(u32 *, uaddr) __field(int, op) __field(u32, val) __field(struct timespec *, utime) __field(u32 *, uaddr2) __field(u32, val3)), + TP_fast_assign(tp_assign(uaddr, uaddr) tp_assign(op, op) tp_assign(val, val) tp_assign(utime, utime) tp_assign(uaddr2, uaddr2) tp_assign(val3, val3)), + TP_printk() +) +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(fd_set *, inp) __field(fd_set *, outp) __field(fd_set *, exp) __field(struct timespec *, tsp) __field(void *, sig)), + TP_fast_assign(tp_assign(n, n) tp_assign(inp, inp) tp_assign(outp, outp) tp_assign(exp, exp) tp_assign(tsp, tsp) tp_assign(sig, sig)), + TP_printk() +) +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(loff_t *, off_in) __field(int, fd_out) __field(loff_t *, off_out) __field(size_t, len) __field(unsigned int, flags)), + TP_fast_assign(tp_assign(fd_in, fd_in) tp_assign(off_in, off_in) tp_assign(fd_out, fd_out) tp_assign(off_out, off_out) tp_assign(len, len) tp_assign(flags, flags)), + TP_printk() +) +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(struct epoll_event *, events) __field(int, maxevents) __field(int, timeout) __field(const sigset_t *, sigmask) __field(size_t, sigsetsize)), + TP_fast_assign(tp_assign(epfd, epfd) tp_assign(events, events) tp_assign(maxevents, maxevents) tp_assign(timeout, timeout) tp_assign(sigmask, sigmask) tp_assign(sigsetsize, sigsetsize)), + TP_printk() +) + +#endif /* _TRACE_SYSCALLS_POINTERS_H */ + +/* This part must be outside protection */ +#include "../../../probes/define_trace.h" + +#else /* CREATE_SYSCALL_TABLE */ + +TRACE_SYSCALL_TABLE(sys_read, sys_read, 0, 3) +TRACE_SYSCALL_TABLE(sys_write, sys_write, 1, 3) +TRACE_SYSCALL_TABLE(sys_open, sys_open, 2, 3) +TRACE_SYSCALL_TABLE(sys_newstat, sys_newstat, 4, 2) +TRACE_SYSCALL_TABLE(sys_newfstat, sys_newfstat, 5, 2) +TRACE_SYSCALL_TABLE(sys_newlstat, sys_newlstat, 6, 2) +TRACE_SYSCALL_TABLE(sys_poll, sys_poll, 7, 3) +TRACE_SYSCALL_TABLE(sys_rt_sigaction, sys_rt_sigaction, 13, 4) +TRACE_SYSCALL_TABLE(sys_rt_sigprocmask, sys_rt_sigprocmask, 14, 4) +TRACE_SYSCALL_TABLE(sys_readv, sys_readv, 19, 3) +TRACE_SYSCALL_TABLE(sys_writev, sys_writev, 20, 3) +TRACE_SYSCALL_TABLE(sys_access, sys_access, 21, 2) +TRACE_SYSCALL_TABLE(sys_pipe, sys_pipe, 22, 1) +TRACE_SYSCALL_TABLE(sys_select, sys_select, 23, 5) +TRACE_SYSCALL_TABLE(sys_mincore, sys_mincore, 27, 3) +TRACE_SYSCALL_TABLE(sys_shmat, sys_shmat, 30, 3) +TRACE_SYSCALL_TABLE(sys_shmctl, sys_shmctl, 31, 3) +TRACE_SYSCALL_TABLE(sys_nanosleep, sys_nanosleep, 35, 2) +TRACE_SYSCALL_TABLE(sys_getitimer, sys_getitimer, 36, 2) +TRACE_SYSCALL_TABLE(sys_setitimer, sys_setitimer, 38, 3) +TRACE_SYSCALL_TABLE(sys_sendfile64, sys_sendfile64, 40, 4) +TRACE_SYSCALL_TABLE(sys_connect, sys_connect, 42, 3) +TRACE_SYSCALL_TABLE(sys_accept, sys_accept, 43, 3) +TRACE_SYSCALL_TABLE(sys_sendto, sys_sendto, 44, 6) +TRACE_SYSCALL_TABLE(sys_recvfrom, sys_recvfrom, 45, 6) +TRACE_SYSCALL_TABLE(sys_sendmsg, sys_sendmsg, 46, 3) +TRACE_SYSCALL_TABLE(sys_recvmsg, sys_recvmsg, 47, 3) +TRACE_SYSCALL_TABLE(sys_bind, sys_bind, 49, 3) +TRACE_SYSCALL_TABLE(sys_getsockname, sys_getsockname, 51, 3) +TRACE_SYSCALL_TABLE(sys_getpeername, sys_getpeername, 52, 3) +TRACE_SYSCALL_TABLE(sys_socketpair, sys_socketpair, 53, 4) +TRACE_SYSCALL_TABLE(sys_setsockopt, sys_setsockopt, 54, 5) +TRACE_SYSCALL_TABLE(sys_getsockopt, sys_getsockopt, 55, 5) +TRACE_SYSCALL_TABLE(sys_wait4, sys_wait4, 61, 4) +TRACE_SYSCALL_TABLE(sys_newuname, sys_newuname, 63, 1) +TRACE_SYSCALL_TABLE(sys_semop, sys_semop, 65, 3) +TRACE_SYSCALL_TABLE(sys_shmdt, sys_shmdt, 67, 1) +TRACE_SYSCALL_TABLE(sys_msgsnd, sys_msgsnd, 69, 4) +TRACE_SYSCALL_TABLE(sys_msgrcv, sys_msgrcv, 70, 5) +TRACE_SYSCALL_TABLE(sys_msgctl, sys_msgctl, 71, 3) +TRACE_SYSCALL_TABLE(sys_truncate, sys_truncate, 76, 2) +TRACE_SYSCALL_TABLE(sys_getdents, sys_getdents, 78, 3) +TRACE_SYSCALL_TABLE(sys_getcwd, sys_getcwd, 79, 2) +TRACE_SYSCALL_TABLE(sys_chdir, sys_chdir, 80, 1) +TRACE_SYSCALL_TABLE(sys_rename, sys_rename, 82, 2) +TRACE_SYSCALL_TABLE(sys_mkdir, sys_mkdir, 83, 2) +TRACE_SYSCALL_TABLE(sys_rmdir, sys_rmdir, 84, 1) +TRACE_SYSCALL_TABLE(sys_creat, sys_creat, 85, 2) +TRACE_SYSCALL_TABLE(sys_link, sys_link, 86, 2) +TRACE_SYSCALL_TABLE(sys_unlink, sys_unlink, 87, 1) +TRACE_SYSCALL_TABLE(sys_symlink, sys_symlink, 88, 2) +TRACE_SYSCALL_TABLE(sys_readlink, sys_readlink, 89, 3) +TRACE_SYSCALL_TABLE(sys_chmod, sys_chmod, 90, 2) +TRACE_SYSCALL_TABLE(sys_chown, sys_chown, 92, 3) +TRACE_SYSCALL_TABLE(sys_lchown, sys_lchown, 94, 3) +TRACE_SYSCALL_TABLE(sys_gettimeofday, sys_gettimeofday, 96, 2) +TRACE_SYSCALL_TABLE(sys_getrlimit, sys_getrlimit, 97, 2) +TRACE_SYSCALL_TABLE(sys_getrusage, sys_getrusage, 98, 2) +TRACE_SYSCALL_TABLE(sys_sysinfo, sys_sysinfo, 99, 1) +TRACE_SYSCALL_TABLE(sys_times, sys_times, 100, 1) +TRACE_SYSCALL_TABLE(sys_syslog, sys_syslog, 103, 3) +TRACE_SYSCALL_TABLE(sys_getgroups, sys_getgroups, 115, 2) +TRACE_SYSCALL_TABLE(sys_setgroups, sys_setgroups, 116, 2) +TRACE_SYSCALL_TABLE(sys_getresuid, sys_getresuid, 118, 3) +TRACE_SYSCALL_TABLE(sys_getresgid, sys_getresgid, 120, 3) +TRACE_SYSCALL_TABLE(sys_rt_sigpending, sys_rt_sigpending, 127, 2) +TRACE_SYSCALL_TABLE(sys_rt_sigtimedwait, sys_rt_sigtimedwait, 128, 4) +TRACE_SYSCALL_TABLE(sys_rt_sigqueueinfo, sys_rt_sigqueueinfo, 129, 3) +TRACE_SYSCALL_TABLE(sys_rt_sigsuspend, sys_rt_sigsuspend, 130, 2) +TRACE_SYSCALL_TABLE(sys_utime, sys_utime, 132, 2) +TRACE_SYSCALL_TABLE(sys_mknod, sys_mknod, 133, 3) +TRACE_SYSCALL_TABLE(sys_ustat, sys_ustat, 136, 2) +TRACE_SYSCALL_TABLE(sys_statfs, sys_statfs, 137, 2) +TRACE_SYSCALL_TABLE(sys_fstatfs, sys_fstatfs, 138, 2) +TRACE_SYSCALL_TABLE(sys_sched_setparam, sys_sched_setparam, 142, 2) +TRACE_SYSCALL_TABLE(sys_sched_getparam, sys_sched_getparam, 143, 2) +TRACE_SYSCALL_TABLE(sys_sched_setscheduler, sys_sched_setscheduler, 144, 3) +TRACE_SYSCALL_TABLE(sys_sched_rr_get_interval, sys_sched_rr_get_interval, 148, 2) +TRACE_SYSCALL_TABLE(sys_pivot_root, sys_pivot_root, 155, 2) +TRACE_SYSCALL_TABLE(sys_sysctl, sys_sysctl, 156, 1) +TRACE_SYSCALL_TABLE(sys_adjtimex, sys_adjtimex, 159, 1) +TRACE_SYSCALL_TABLE(sys_setrlimit, sys_setrlimit, 160, 2) +TRACE_SYSCALL_TABLE(sys_chroot, sys_chroot, 161, 1) +TRACE_SYSCALL_TABLE(sys_settimeofday, sys_settimeofday, 164, 2) +TRACE_SYSCALL_TABLE(sys_mount, sys_mount, 165, 5) +TRACE_SYSCALL_TABLE(sys_umount, sys_umount, 166, 2) +TRACE_SYSCALL_TABLE(sys_swapon, sys_swapon, 167, 2) +TRACE_SYSCALL_TABLE(sys_swapoff, sys_swapoff, 168, 1) +TRACE_SYSCALL_TABLE(sys_reboot, sys_reboot, 169, 4) +TRACE_SYSCALL_TABLE(sys_sethostname, sys_sethostname, 170, 2) +TRACE_SYSCALL_TABLE(sys_setdomainname, sys_setdomainname, 171, 2) +TRACE_SYSCALL_TABLE(sys_init_module, sys_init_module, 175, 3) +TRACE_SYSCALL_TABLE(sys_delete_module, sys_delete_module, 176, 2) +TRACE_SYSCALL_TABLE(sys_nfsservctl, sys_nfsservctl, 180, 3) +TRACE_SYSCALL_TABLE(sys_setxattr, sys_setxattr, 188, 5) +TRACE_SYSCALL_TABLE(sys_lsetxattr, sys_lsetxattr, 189, 5) +TRACE_SYSCALL_TABLE(sys_fsetxattr, sys_fsetxattr, 190, 5) +TRACE_SYSCALL_TABLE(sys_getxattr, sys_getxattr, 191, 4) +TRACE_SYSCALL_TABLE(sys_lgetxattr, sys_lgetxattr, 192, 4) +TRACE_SYSCALL_TABLE(sys_fgetxattr, sys_fgetxattr, 193, 4) +TRACE_SYSCALL_TABLE(sys_listxattr, sys_listxattr, 194, 3) +TRACE_SYSCALL_TABLE(sys_llistxattr, sys_llistxattr, 195, 3) +TRACE_SYSCALL_TABLE(sys_flistxattr, sys_flistxattr, 196, 3) +TRACE_SYSCALL_TABLE(sys_removexattr, sys_removexattr, 197, 2) +TRACE_SYSCALL_TABLE(sys_lremovexattr, sys_lremovexattr, 198, 2) +TRACE_SYSCALL_TABLE(sys_fremovexattr, sys_fremovexattr, 199, 2) +TRACE_SYSCALL_TABLE(sys_time, sys_time, 201, 1) +TRACE_SYSCALL_TABLE(sys_futex, sys_futex, 202, 6) +TRACE_SYSCALL_TABLE(sys_sched_setaffinity, sys_sched_setaffinity, 203, 3) +TRACE_SYSCALL_TABLE(sys_sched_getaffinity, sys_sched_getaffinity, 204, 3) +TRACE_SYSCALL_TABLE(sys_io_setup, sys_io_setup, 206, 2) +TRACE_SYSCALL_TABLE(sys_io_getevents, sys_io_getevents, 208, 5) +TRACE_SYSCALL_TABLE(sys_io_submit, sys_io_submit, 209, 3) +TRACE_SYSCALL_TABLE(sys_io_cancel, sys_io_cancel, 210, 3) +TRACE_SYSCALL_TABLE(sys_getdents64, sys_getdents64, 217, 3) +TRACE_SYSCALL_TABLE(sys_set_tid_address, sys_set_tid_address, 218, 1) +TRACE_SYSCALL_TABLE(sys_semtimedop, sys_semtimedop, 220, 4) +TRACE_SYSCALL_TABLE(sys_timer_create, sys_timer_create, 222, 3) +TRACE_SYSCALL_TABLE(sys_timer_settime, sys_timer_settime, 223, 4) +TRACE_SYSCALL_TABLE(sys_timer_gettime, sys_timer_gettime, 224, 2) +TRACE_SYSCALL_TABLE(sys_clock_settime, sys_clock_settime, 227, 2) +TRACE_SYSCALL_TABLE(sys_clock_gettime, sys_clock_gettime, 228, 2) +TRACE_SYSCALL_TABLE(sys_clock_getres, sys_clock_getres, 229, 2) +TRACE_SYSCALL_TABLE(sys_clock_nanosleep, sys_clock_nanosleep, 230, 4) +TRACE_SYSCALL_TABLE(sys_epoll_wait, sys_epoll_wait, 232, 4) +TRACE_SYSCALL_TABLE(sys_epoll_ctl, sys_epoll_ctl, 233, 4) +TRACE_SYSCALL_TABLE(sys_utimes, sys_utimes, 235, 2) +TRACE_SYSCALL_TABLE(sys_mq_open, sys_mq_open, 240, 4) +TRACE_SYSCALL_TABLE(sys_mq_unlink, sys_mq_unlink, 241, 1) +TRACE_SYSCALL_TABLE(sys_mq_timedsend, sys_mq_timedsend, 242, 5) +TRACE_SYSCALL_TABLE(sys_mq_timedreceive, sys_mq_timedreceive, 243, 5) +TRACE_SYSCALL_TABLE(sys_mq_notify, sys_mq_notify, 244, 2) +TRACE_SYSCALL_TABLE(sys_mq_getsetattr, sys_mq_getsetattr, 245, 3) +TRACE_SYSCALL_TABLE(sys_kexec_load, sys_kexec_load, 246, 4) +TRACE_SYSCALL_TABLE(sys_waitid, sys_waitid, 247, 5) +TRACE_SYSCALL_TABLE(sys_inotify_add_watch, sys_inotify_add_watch, 254, 3) +TRACE_SYSCALL_TABLE(sys_openat, sys_openat, 257, 4) +TRACE_SYSCALL_TABLE(sys_mkdirat, sys_mkdirat, 258, 3) +TRACE_SYSCALL_TABLE(sys_mknodat, sys_mknodat, 259, 4) +TRACE_SYSCALL_TABLE(sys_fchownat, sys_fchownat, 260, 5) +TRACE_SYSCALL_TABLE(sys_futimesat, sys_futimesat, 261, 3) +TRACE_SYSCALL_TABLE(sys_newfstatat, sys_newfstatat, 262, 4) +TRACE_SYSCALL_TABLE(sys_unlinkat, sys_unlinkat, 263, 3) +TRACE_SYSCALL_TABLE(sys_renameat, sys_renameat, 264, 4) +TRACE_SYSCALL_TABLE(sys_linkat, sys_linkat, 265, 5) +TRACE_SYSCALL_TABLE(sys_symlinkat, sys_symlinkat, 266, 3) +TRACE_SYSCALL_TABLE(sys_readlinkat, sys_readlinkat, 267, 4) +TRACE_SYSCALL_TABLE(sys_fchmodat, sys_fchmodat, 268, 3) +TRACE_SYSCALL_TABLE(sys_faccessat, sys_faccessat, 269, 3) +TRACE_SYSCALL_TABLE(sys_pselect6, sys_pselect6, 270, 6) +TRACE_SYSCALL_TABLE(sys_ppoll, sys_ppoll, 271, 5) +TRACE_SYSCALL_TABLE(sys_set_robust_list, sys_set_robust_list, 273, 2) +TRACE_SYSCALL_TABLE(sys_get_robust_list, sys_get_robust_list, 274, 3) +TRACE_SYSCALL_TABLE(sys_splice, sys_splice, 275, 6) +TRACE_SYSCALL_TABLE(sys_vmsplice, sys_vmsplice, 278, 4) +TRACE_SYSCALL_TABLE(sys_utimensat, sys_utimensat, 280, 4) +TRACE_SYSCALL_TABLE(sys_epoll_pwait, sys_epoll_pwait, 281, 6) +TRACE_SYSCALL_TABLE(sys_signalfd, sys_signalfd, 282, 3) +TRACE_SYSCALL_TABLE(sys_timerfd_settime, sys_timerfd_settime, 286, 4) +TRACE_SYSCALL_TABLE(sys_timerfd_gettime, sys_timerfd_gettime, 287, 2) +TRACE_SYSCALL_TABLE(sys_accept4, sys_accept4, 288, 4) +TRACE_SYSCALL_TABLE(sys_signalfd4, sys_signalfd4, 289, 4) +TRACE_SYSCALL_TABLE(sys_pipe2, sys_pipe2, 293, 2) +TRACE_SYSCALL_TABLE(sys_preadv, sys_preadv, 295, 5) +TRACE_SYSCALL_TABLE(sys_pwritev, sys_pwritev, 296, 5) +TRACE_SYSCALL_TABLE(sys_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo, 297, 4) +TRACE_SYSCALL_TABLE(sys_perf_event_open, sys_perf_event_open, 298, 5) +TRACE_SYSCALL_TABLE(sys_recvmmsg, sys_recvmmsg, 299, 5) +TRACE_SYSCALL_TABLE(sys_prlimit64, sys_prlimit64, 302, 4) +TRACE_SYSCALL_TABLE(sys_clock_adjtime, sys_clock_adjtime, 305, 2) +TRACE_SYSCALL_TABLE(sys_sendmmsg, sys_sendmmsg, 307, 4) + +#endif /* CREATE_SYSCALL_TABLE */ diff --git a/instrumentation/syscalls/lttng-syscalls-generate-headers.sh b/instrumentation/syscalls/lttng-syscalls-generate-headers.sh index 231bd5c4..c68f2e14 100644 --- a/instrumentation/syscalls/lttng-syscalls-generate-headers.sh +++ b/instrumentation/syscalls/lttng-syscalls-generate-headers.sh @@ -12,20 +12,22 @@ INPUTFILE=$3 INPUT=${INPUTDIR}/${INPUTFILE} SRCFILE=gen.tmp.0 TMPFILE=gen.tmp.1 +HEADER=headers/${INPUTFILE}_${CLASS}.h cp ${INPUT} ${SRCFILE} #Cleanup -sed 's/^\[.*\] //g' ${SRCFILE} > ${TMPFILE} +perl -p -e 's/^\[.*\] //g' ${SRCFILE} > ${TMPFILE} mv ${TMPFILE} ${SRCFILE} -sed 's/^syscall sys_\([^ ]*\)/syscall \1/g' ${SRCFILE} > ${TMPFILE} +perl -p -e 's/^syscall sys_([^ ]*)/syscall $1/g' ${SRCFILE} > ${TMPFILE} mv ${TMPFILE} ${SRCFILE} #Filter if [ "$CLASS" = integers ]; then #select integers and no-args. + CLASSCAP=INTEGERS grep -v "\\*\|cap_user_header_t" ${SRCFILE} > ${TMPFILE} mv ${TMPFILE} ${SRCFILE} fi @@ -33,22 +35,21 @@ fi if [ "$CLASS" = pointers ]; then #select system calls using pointers. + CLASSCAP=POINTERS grep "\\*\|cap_#user_header_t" ${SRCFILE} > ${TMPFILE} mv ${TMPFILE} ${SRCFILE} fi -HEADER=headers/${INPUTFILE}-${CLASS}.h - echo "/* THIS FILE IS AUTO-GENERATED. DO NOT EDIT */" > ${HEADER} echo \ "#ifndef CREATE_SYSCALL_TABLE #undef TRACE_SYSTEM -#define TRACE_SYSTEM syscalls +#define TRACE_SYSTEM syscalls_${CLASS} -#if !defined(_TRACE_SYSCALLS_H) || defined(TRACE_HEADER_MULTI_READ) -#define _TRACE_SYSCALLS_H +#if !defined(_TRACE_SYSCALLS_${CLASSCAP}_H) || defined(TRACE_HEADER_MULTI_READ) +#define _TRACE_SYSCALLS_${CLASSCAP}_H #include #include @@ -67,28 +68,29 @@ echo \ >> ${HEADER} grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE} -sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) '\ -'types: (\([^)]*\)) '\ -'args: (\([^)]*\))/'\ -'DEFINE_EVENT_NOARGS(syscalls_noargs, sys_\1)'\ +perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ +'types: \(([^)]*)\) '\ +'args: \(([^)]*)\)/'\ +'DEFINE_EVENT_NOARGS(syscalls_noargs, sys_$1)'\ '/g'\ ${TMPFILE} >> ${HEADER} fi + # types: 4 # args 5 NRARGS=1 grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE} -sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) '\ -'types: (\([^)]*\)) '\ -'args: (\([^)]*\))/'\ -'TRACE_EVENT(sys_\1,\n'\ -' TP_PROTO(\4 \5),\n'\ -' TP_ARGS(\5),\n'\ -' TP_STRUCT__entry(__field(\4, \5)),\n'\ -' TP_fast_assign(tp_assign(\5, \5)),\n'\ +perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ +'types: \(([^)]*)\) '\ +'args: \(([^)]*)\)/'\ +'TRACE_EVENT(sys_$1,\n'\ +' TP_PROTO($4 $5),\n'\ +' TP_ARGS($5),\n'\ +' TP_STRUCT__entry(__field($4, $5)),\n'\ +' TP_fast_assign(tp_assign($5, $5)),\n'\ ' TP_printk()\n'\ ')/g'\ ${TMPFILE} >> ${HEADER} @@ -98,14 +100,14 @@ sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) '\ NRARGS=2 grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE} -sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) '\ -'types: (\([^,]*\), \([^)]*\)) '\ -'args: (\([^,]*\), \([^)]*\))/'\ -'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'\ -' TP_fast_assign(tp_assign(\6, \6) tp_assign(\7, \7)),\n'\ +perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ +'types: \(([^,]*), ([^)]*)\) '\ +'args: \(([^,]*), ([^)]*)\)/'\ +'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'\ +' TP_fast_assign(tp_assign($6, $6) tp_assign($7, $7)),\n'\ ' TP_printk()\n'\ ')/g'\ ${TMPFILE} >> ${HEADER} @@ -115,14 +117,14 @@ sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) '\ NRARGS=3 grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE} -sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) '\ -'types: (\([^,]*\), \([^,]*\), \([^)]*\)) '\ -'args: (\([^,]*\), \([^,]*\), \([^)]*\))/'\ -'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'\ -' TP_fast_assign(tp_assign(\7, \7) tp_assign(\8, \8) tp_assign(\9, \9)),\n'\ +perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ +'types: \(([^,]*), ([^,]*), ([^)]*)\) '\ +'args: \(([^,]*), ([^,]*), ([^)]*)\)/'\ +'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'\ +' TP_fast_assign(tp_assign($7, $7) tp_assign($8, $8) tp_assign($9, $9)),\n'\ ' TP_printk()\n'\ ')/g'\ ${TMPFILE} >> ${HEADER} @@ -133,14 +135,14 @@ sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) '\ NRARGS=4 grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE} -sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) '\ -'types: (\([^,]*\), \([^,]*\), \([^,]*\), \([^)]*\)) '\ -'args: (\([^,]*\), \([^,]*\), \([^,]*\), \([^)]*\))/'\ -'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'\ -' TP_fast_assign(tp_assign(\8, \8) tp_assign(\9, \9) tp_assign(\10, \10) tp_assign(\11, \11)),\n'\ +perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ +'types: \(([^,]*), ([^,]*), ([^,]*), ([^)]*)\) '\ +'args: \(([^,]*), ([^,]*), ([^,]*), ([^)]*)\)/'\ +'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'\ +' TP_fast_assign(tp_assign($8, $8) tp_assign($9, $9) tp_assign($10, $10) tp_assign($11, $11)),\n'\ ' TP_printk()\n'\ ')/g'\ ${TMPFILE} >> ${HEADER} @@ -150,14 +152,14 @@ sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) '\ NRARGS=5 grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE} -sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) '\ -'types: (\([^,]*\), \([^,]*\), \([^,]*\), \([^,]*\), \([^)]*\)) '\ -'args: (\([^,]*\), \([^,]*\), \([^,]*\), \([^,]*\), \([^)]*\))/'\ -'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'\ -' TP_fast_assign(tp_assign(\9, \9) tp_assign(\10, \10) tp_assign(\11, \11) tp_assign(\12, \12) tp_assign(\13, \13)),\n'\ +perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ +'types: \(([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^)]*)\) '\ +'args: \(([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^)]*)\)/'\ +'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'\ +' TP_fast_assign(tp_assign($9, $9) tp_assign($10, $10) tp_assign($11, $11) tp_assign($12, $12) tp_assign($13, $13)),\n'\ ' TP_printk()\n'\ ')/g'\ ${TMPFILE} >> ${HEADER} @@ -168,14 +170,14 @@ sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) '\ NRARGS=6 grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE} -sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) '\ -'types: (\([^,]*\), \([^,]*\), \([^,]*\), \([^,]*\), \([^,]*\), \([^)]*\)) '\ -'args: (\([^,]*\), \([^,]*\), \([^,]*\), \([^,]*\), \([^,]*\), \([^)]*\))/'\ -'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'\ -' TP_fast_assign(tp_assign(\10, \10) tp_assign(\11, \11) tp_assign(\12, 12) tp_assign(\13, \13) tp_assign(\14, \14) tp_assign(\15, \15)),\n'\ +perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\ +'types: \(([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^\)]*)\) '\ +'args: \(([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^\)]*)\)/'\ +'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'\ +' TP_fast_assign(tp_assign($10, $10) tp_assign($11, $11) tp_assign($12, $12) tp_assign($13, $13) tp_assign($14, $14) tp_assign($15, $15)),\n'\ ' TP_printk()\n'\ ')/g'\ ${TMPFILE} >> ${HEADER} @@ -189,7 +191,7 @@ done echo \ " -#endif /* _TRACE_SYSCALLS_H */ +#endif /* _TRACE_SYSCALLS_${CLASSCAP}_H */ /* This part must be outside protection */ #include \"../../../probes/define_trace.h\" @@ -203,15 +205,15 @@ NRARGS=0 if [ "$CLASS" = integers ]; then #noargs grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE} -sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) .*$/'\ -'TRACE_SYSCALL_TABLE(syscalls_noargs, sys_\1, \2, \3)/g'\ +perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) .*$/'\ +'TRACE_SYSCALL_TABLE\(syscalls_noargs, sys_$1, $2, $3\)/g'\ ${TMPFILE} >> ${HEADER} fi #others. grep -v "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE} -sed 's/^syscall \([^ ]*\) nr \([^ ]*\) nbargs \([^ ]*\) .*$/'\ -'TRACE_SYSCALL_TABLE(sys_\1, sys_\1, \2, \3)/g'\ +perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) .*$/'\ +'TRACE_SYSCALL_TABLE(sys_$1, sys_$1, $2, $3)/g'\ ${TMPFILE} >> ${HEADER} echo -n \ diff --git a/lttng-syscalls.c b/lttng-syscalls.c index 2a63ad52..c0550ab0 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -35,8 +35,8 @@ static void syscall_entry_probe(void *__data, struct pt_regs *regs, long id); #define TP_MODULE_OVERRIDE #define TRACE_INCLUDE_PATH ../instrumentation/syscalls/headers - -#include "instrumentation/syscalls/headers/syscalls.h" +#include "instrumentation/syscalls/headers/syscalls_integers.h" +#include "instrumentation/syscalls/headers/syscalls_pointers.h" #undef TP_MODULE_OVERRIDE #undef TP_PROBE_CB @@ -62,7 +62,8 @@ struct trace_syscall_entry { }, static struct trace_syscall_entry sc_table[] = { -#include "instrumentation/syscalls/headers/syscalls.h" +#include "instrumentation/syscalls/headers/syscalls_integers.h" +#include "instrumentation/syscalls/headers/syscalls_pointers.h" }; #undef CREATE_SYSCALL_TABLE diff --git a/probes/lttng-events.h b/probes/lttng-events.h index 63bde185..f86bd39d 100644 --- a/probes/lttng-events.h +++ b/probes/lttng-events.h @@ -200,8 +200,6 @@ void trace_##_name(void *__data); #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) -#undef __type_integer - /* * Stage 3 of the trace events. * @@ -642,3 +640,7 @@ module_exit_eval(__lttng_events_exit__, TRACE_SYSTEM); #undef module_exit_eval #undef TP_ID1 #undef TP_ID + +#undef TP_PROTO +#undef TP_ARGS +#undef TRACE_EVENT_FLAGS