projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: on session load, add it to the .lttngrc
[lttng-tools.git]
/
src
/
common
/
kernel-ctl
/
kernel-ctl.c
diff --git
a/src/common/kernel-ctl/kernel-ctl.c
b/src/common/kernel-ctl/kernel-ctl.c
index 495301e5ff362cc85d9748fa4ad0ee60938b0490..d153a1cff7dafbbc3460f7aac1baae55042263fd 100644
(file)
--- a/
src/common/kernel-ctl/kernel-ctl.c
+++ b/
src/common/kernel-ctl/kernel-ctl.c
@@
-188,7
+188,7
@@
int kernctl_add_context(int fd, struct lttng_kernel_context *ctx)
old_ctx.ctx = ctx->ctx;
/* only type that uses the union */
old_ctx.ctx = ctx->ctx;
/* only type that uses the union */
- if (ctx->ctx == LTTNG_KERNEL_CONTEXT_PERF_COUNTER) {
+ if (ctx->ctx == LTTNG_KERNEL_CONTEXT_PERF_C
PU_C
OUNTER) {
old_ctx.u.perf_counter.type =
ctx->u.perf_counter.type;
old_ctx.u.perf_counter.config =
old_ctx.u.perf_counter.type =
ctx->u.perf_counter.type;
old_ctx.u.perf_counter.config =
@@
-426,3
+426,9
@@
int kernctl_get_stream_id(int fd, uint64_t *stream_id)
{
return ioctl(fd, LTTNG_RING_BUFFER_GET_STREAM_ID, stream_id);
}
{
return ioctl(fd, LTTNG_RING_BUFFER_GET_STREAM_ID, stream_id);
}
+
+/* Returns the current timestamp. */
+int kernctl_get_current_timestamp(int fd, uint64_t *ts)
+{
+ return ioctl(fd, LTTNG_RING_BUFFER_GET_CURRENT_TIMESTAMP, ts);
+}
This page took
0.028196 seconds
and
4
git commands to generate.