projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial import of kconsumerd and libkernelctl
[lttng-tools.git]
/
libkernelctl
/
libkernelctl.c
diff --git
a/libkernelctl/libkernelctl.c
b/libkernelctl/libkernelctl.c
index e99e777c3ab0b25221e421db9aaca96cc8508cbc..e15dd8da624b9489adf256015950a4b66abeeb9d 100644
(file)
--- a/
libkernelctl/libkernelctl.c
+++ b/
libkernelctl/libkernelctl.c
@@
-25,22
+25,22
@@
int kernctl_create_channel(int fd, struct lttng_channel *chops)
{
int kernctl_create_channel(int fd, struct lttng_channel *chops)
{
- return ioctl(fd, KERNEL_
IO_
CREATE_CHANNEL, chops);
+ return ioctl(fd, KERNEL_CREATE_CHANNEL, chops);
}
int kernctl_create_event(int fd, struct lttng_event *ev)
{
}
int kernctl_create_event(int fd, struct lttng_event *ev)
{
- return ioctl(fd, KERNEL_
IO_
CREATE_EVENT, ev);
+ return ioctl(fd, KERNEL_CREATE_EVENT, ev);
}
int kernctl_create_session(int fd)
{
}
int kernctl_create_session(int fd)
{
- return ioctl(fd, KERNEL_
IO_
CREATE_SESSION);
+ return ioctl(fd, KERNEL_CREATE_SESSION);
}
int kernctl_create_stream(int fd)
{
}
int kernctl_create_stream(int fd)
{
- return ioctl(fd, KERNEL_
IO_
CREATE_STREAM);
+ return ioctl(fd, KERNEL_CREATE_STREAM);
}
/* returns the maximum size for sub-buffers. */
}
/* returns the maximum size for sub-buffers. */
@@
-85,6
+85,12
@@
int kernctl_get_subbuf_size(int fd, unsigned long *len)
return ioctl(fd, RING_BUFFER_GET_SUBBUF_SIZE, len);
}
return ioctl(fd, RING_BUFFER_GET_SUBBUF_SIZE, len);
}
+/* open the metadata global channel */
+int kernctl_open_metadata(int fd, struct lttng_channel *chops)
+{
+ return ioctl(fd, KERNEL_OPEN_METADATA, chops);
+}
+
/* Release exclusive sub-buffer access, move consumer forward. */
int kernctl_put_next_subbuf(int fd)
{
/* Release exclusive sub-buffer access, move consumer forward. */
int kernctl_put_next_subbuf(int fd)
{
@@
-117,11
+123,11
@@
int kernctl_snapshot_get_produced(int fd, unsigned long *pos)
int kernctl_start_session(int fd)
{
int kernctl_start_session(int fd)
{
- return ioctl(fd, KERNEL_
IO_
SESSION_START);
+ return ioctl(fd, KERNEL_SESSION_START);
}
int kernctl_stop_session(int fd)
{
}
int kernctl_stop_session(int fd)
{
- return ioctl(fd, KERNEL_
IO_
SESSION_STOP);
+ return ioctl(fd, KERNEL_SESSION_STOP);
}
}
This page took
0.024051 seconds
and
4
git commands to generate.