X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.c;h=5ea3e1ae12a122761750c291a7240708b4c36469;hb=24bc0841bdd3fb38b76a9244d21f28000d653fcf;hp=495301e5ff362cc85d9748fa4ad0ee60938b0490;hpb=309167d2a6f59d0c8cbf64eb23ba912cdea76a34;p=lttng-tools.git diff --git a/src/common/kernel-ctl/kernel-ctl.c b/src/common/kernel-ctl/kernel-ctl.c index 495301e5f..5ea3e1ae1 100644 --- a/src/common/kernel-ctl/kernel-ctl.c +++ b/src/common/kernel-ctl/kernel-ctl.c @@ -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); } + +/* Returns the current timestamp. */ +int kernctl_get_current_timestamp(int fd, uint64_t *ts) +{ + return ioctl(fd, LTTNG_RING_BUFFER_GET_CURRENT_TIMESTAMP, ts); +}