X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=libkernelctl%2Flibkernelctl.c;fp=libkernelctl%2Flibkernelctl.c;h=c06f579698619716c478a4a8df1aaaf51afe232c;hp=e15dd8da624b9489adf256015950a4b66abeeb9d;hb=9cb983500508a95363a09a5a65d2f67774c38b69;hpb=bcd8d9db8fccd691c1e919bfa7c0d49a2fda35f9 diff --git a/libkernelctl/libkernelctl.c b/libkernelctl/libkernelctl.c index e15dd8da6..c06f57969 100644 --- a/libkernelctl/libkernelctl.c +++ b/libkernelctl/libkernelctl.c @@ -23,24 +23,24 @@ #include "libkernelctl.h" #include "lttngerr.h" -int kernctl_create_channel(int fd, struct lttng_channel *chops) +int kernctl_create_channel(int fd, struct lttng_kernel_channel *chops) { - return ioctl(fd, KERNEL_CREATE_CHANNEL, chops); + return ioctl(fd, LTTNG_KERNEL_CHANNEL, chops); } -int kernctl_create_event(int fd, struct lttng_event *ev) +int kernctl_create_event(int fd, struct lttng_kernel_event *ev) { - return ioctl(fd, KERNEL_CREATE_EVENT, ev); + return ioctl(fd, LTTNG_KERNEL_EVENT, ev); } int kernctl_create_session(int fd) { - return ioctl(fd, KERNEL_CREATE_SESSION); + return ioctl(fd, LTTNG_KERNEL_SESSION); } int kernctl_create_stream(int fd) { - return ioctl(fd, KERNEL_CREATE_STREAM); + return ioctl(fd, LTTNG_KERNEL_STREAM); } /* returns the maximum size for sub-buffers. */ @@ -86,9 +86,9 @@ int kernctl_get_subbuf_size(int fd, unsigned long *len) } /* open the metadata global channel */ -int kernctl_open_metadata(int fd, struct lttng_channel *chops) +int kernctl_open_metadata(int fd, struct lttng_kernel_channel *chops) { - return ioctl(fd, KERNEL_OPEN_METADATA, chops); + return ioctl(fd, LTTNG_KERNEL_METADATA, chops); } /* Release exclusive sub-buffer access, move consumer forward. */ @@ -123,11 +123,11 @@ int kernctl_snapshot_get_produced(int fd, unsigned long *pos) int kernctl_start_session(int fd) { - return ioctl(fd, KERNEL_SESSION_START); + return ioctl(fd, LTTNG_KERNEL_SESSION_START); } int kernctl_stop_session(int fd) { - return ioctl(fd, KERNEL_SESSION_STOP); + return ioctl(fd, LTTNG_KERNEL_SESSION_STOP); }