projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Internal librairies not being installed anymore
[lttng-tools.git]
/
libkernelctl
/
libkernelctl.c
diff --git
a/libkernelctl/libkernelctl.c
b/libkernelctl/libkernelctl.c
index e99e777c3ab0b25221e421db9aaca96cc8508cbc..cfac1fa5c80ce32faa603315e2e5afa0a7142ca1 100644
(file)
--- a/
libkernelctl/libkernelctl.c
+++ b/
libkernelctl/libkernelctl.c
@@
-23,24
+23,24
@@
#include "libkernelctl.h"
#include "lttngerr.h"
#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_IO_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_IO_CREATE
_EVENT, ev);
+ return ioctl(fd,
LTTNG_KERNEL
_EVENT, ev);
}
int kernctl_create_session(int fd)
{
}
int kernctl_create_session(int fd)
{
- return ioctl(fd,
KERNEL_IO_CREATE
_SESSION);
+ return ioctl(fd,
LTTNG_KERNEL
_SESSION);
}
int kernctl_create_stream(int fd)
{
}
int kernctl_create_stream(int fd)
{
- return ioctl(fd,
KERNEL_IO_CREATE
_STREAM);
+ return ioctl(fd,
LTTNG_KERNEL
_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_kernel_channel *chops)
+{
+ return ioctl(fd, LTTNG_KERNEL_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,20
@@
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,
LTTNG_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, LTTNG_KERNEL_SESSION_STOP);
+}
+
+int kernctl_tracepoint_list(int fd)
+{
+ return ioctl(fd, LTTNG_KERNEL_TRACEPOINT_LIST);
}
}
+int kernctl_tracer_version(int fd, struct lttng_kernel_tracer_version *v)
+{
+ return ioctl(fd, LTTNG_KERNEL_TRACER_VERSION, v);
+}
This page took
0.029212 seconds
and
4
git commands to generate.