From 9efe29038e6f24e3be124c43a4a783d227ddf5fa Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Fri, 28 May 2021 16:18:05 -0400 Subject: [PATCH] kernel: Add new counter ABI IOCTL macros MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Depends-on: lttng-ust: I1a706cf60059c7106525cf484d4a290c38e197c7 Depends-on: lttng-modules: Ide6aa85f4fc6055b7b76604b107094373d0bf874 Change-Id: I1a1d8f265e42e68632863127721e755f7948b660 --- src/common/kernel-ctl/kernel-ioctl.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/kernel-ctl/kernel-ioctl.hpp b/src/common/kernel-ctl/kernel-ioctl.hpp index 45b01821a..b2df4ff4c 100644 --- a/src/common/kernel-ctl/kernel-ioctl.hpp +++ b/src/common/kernel-ctl/kernel-ioctl.hpp @@ -170,7 +170,11 @@ #define LTTNG_KERNEL_ABI_COUNTER_READ IOWR(0xF6, 0xC0, struct lttng_kernel_abi_counter_read) #define LTTNG_KERNEL_ABI_COUNTER_AGGREGATE \ _IOWR(0xF6, 0xC1, struct lttng_kernel_abi_counter_aggregate) -#define LTTNG_KERNEL_ABI_COUNTER_CLEAR _IOW(0xF6, 0xC2, struct lttng_kernel_abi_counter_clear) +#define LTTNG_KERNEL_ABI_COUNTER_CLEAR _IOW(0xF6, 0xC2, struct lttng_kernel_abi_counter_clear) +#define LTTNG_KERNEL_ABI_COUNTER_MAP_NR_DESCRIPTORS _IOR(0xF6, 0xC3, uint64_t) +#define LTTNG_KERNEL_ABI_COUNTER_MAP_DESCRIPTOR \ + _IOWR(0xF6, 0xC4, struct lttng_kernel_abi_counter_map_descriptor) +#define LTTNG_KERNEL_ABI_COUNTER_EVENT _IOW(0xF6, 0xC5, struct lttng_kernel_abi_counter_event) /* * Those ioctl numbers use the wrong direction, but are kept for ABI backward -- 2.39.5