From: Mathieu Desnoyers Date: Fri, 12 Sep 2014 16:10:29 +0000 (-0400) Subject: Add kernctl_syscall_list X-Git-Tag: v2.6.0-rc1~41 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d02666a971a38c0b088ae1570731646d5d663ce4;p=lttng-tools.git Add kernctl_syscall_list Signed-off-by: Mathieu Desnoyers Signed-off-by: David Goulet --- diff --git a/src/common/kernel-ctl/kernel-ctl.c b/src/common/kernel-ctl/kernel-ctl.c index ce8d8a0eb..cb487853a 100644 --- a/src/common/kernel-ctl/kernel-ctl.c +++ b/src/common/kernel-ctl/kernel-ctl.c @@ -259,6 +259,11 @@ int kernctl_tracepoint_list(int fd) LTTNG_KERNEL_TRACEPOINT_LIST); } +int kernctl_syscall_list(int fd) +{ + return ioctl(fd, LTTNG_KERNEL_SYSCALL_LIST); +} + int kernctl_tracer_version(int fd, struct lttng_kernel_tracer_version *v) { int ret; diff --git a/src/common/kernel-ctl/kernel-ctl.h b/src/common/kernel-ctl/kernel-ctl.h index b67e8e356..a20c68997 100644 --- a/src/common/kernel-ctl/kernel-ctl.h +++ b/src/common/kernel-ctl/kernel-ctl.h @@ -36,6 +36,7 @@ int kernctl_start_session(int fd); int kernctl_stop_session(int fd); int kernctl_tracepoint_list(int fd); +int kernctl_syscall_list(int fd); int kernctl_tracer_version(int fd, struct lttng_kernel_tracer_version *v); int kernctl_wait_quiescent(int fd); int kernctl_calibrate(int fd, struct lttng_kernel_calibrate *calibrate); diff --git a/src/common/kernel-ctl/kernel-ioctl.h b/src/common/kernel-ctl/kernel-ioctl.h index 1db964e00..29a29a4a8 100644 --- a/src/common/kernel-ctl/kernel-ioctl.h +++ b/src/common/kernel-ctl/kernel-ioctl.h @@ -99,10 +99,11 @@ #define LTTNG_KERNEL_SESSION _IO(0xF6, 0x45) #define LTTNG_KERNEL_TRACER_VERSION \ _IOR(0xF6, 0x46, struct lttng_kernel_tracer_version) -#define LTTNG_KERNEL_TRACEPOINT_LIST _IO(0xF6, 0x47) +#define LTTNG_KERNEL_TRACEPOINT_LIST _IO(0xF6, 0x47) #define LTTNG_KERNEL_WAIT_QUIESCENT _IO(0xF6, 0x48) #define LTTNG_KERNEL_CALIBRATE \ _IOWR(0xF6, 0x49, struct lttng_kernel_calibrate) +#define LTTNG_KERNEL_SYSCALL_LIST _IO(0xF6, 0x49) /* Session FD ioctl */ #define LTTNG_KERNEL_METADATA \