X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.c;h=dd228773bc655eb985e88a6b2fe20e8c87221115;hb=b31610f2294a6a827fa2d0d19d71199567db8dc5;hp=82d766e1c1e70b53f0b0e3ec354bd7ab93da621b;hpb=fb83fe64f250bec7416f18891a8264450c61ead3;p=lttng-tools.git diff --git a/src/common/kernel-ctl/kernel-ctl.c b/src/common/kernel-ctl/kernel-ctl.c index 82d766e1c..dd228773b 100644 --- a/src/common/kernel-ctl/kernel-ctl.c +++ b/src/common/kernel-ctl/kernel-ctl.c @@ -538,3 +538,9 @@ int kernctl_get_sequence_number(int fd, uint64_t *seq) { return ioctl(fd, LTTNG_RING_BUFFER_GET_SEQ_NUM, seq); } + +/* Returns the stream instance id. */ +int kernctl_get_instance_id(int fd, uint64_t *id) +{ + return ioctl(fd, LTTNG_RING_BUFFER_INSTANCE_ID, id); +}