From: Mathieu Desnoyers Date: Tue, 17 Dec 2019 14:27:54 +0000 (-0500) Subject: lttng-abi: Document ioctl numbers reserved by lttng-abi-old.h X-Git-Tag: v2.12.0-pre~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=436f640717bab63240d9a624846d947e150a2cee;p=lttng-modules.git lttng-abi: Document ioctl numbers reserved by lttng-abi-old.h Document the ioctl numbers reserved by lttng-abi-old.h in the (relatively) new lttng-abi.h, so they are taken into account when assining numbers to new lttng ioctl commands. Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-abi.h b/lttng-abi.h index f61a6a15..9d345f4a 100644 --- a/lttng-abi.h +++ b/lttng-abi.h @@ -209,6 +209,7 @@ struct lttng_kernel_filter_bytecode { } __attribute__((packed)); /* LTTng file descriptor ioctl */ +/* lttng-abi-old.h reserve 0x40, 0x41, 0x42, 0x43, and 0x44. */ #define LTTNG_KERNEL_SESSION _IO(0xF6, 0x45) #define LTTNG_KERNEL_TRACER_VERSION \ _IOR(0xF6, 0x46, struct lttng_kernel_tracer_version) @@ -221,6 +222,7 @@ struct lttng_kernel_filter_bytecode { _IOR(0xF6, 0x4B, struct lttng_kernel_tracer_abi_version) /* Session FD ioctl */ +/* lttng-abi-old.h reserve 0x50, 0x51, 0x52, and 0x53. */ #define LTTNG_KERNEL_METADATA \ _IOW(0xF6, 0x54, struct lttng_kernel_channel) #define LTTNG_KERNEL_CHANNEL \ @@ -239,7 +241,7 @@ struct lttng_kernel_filter_bytecode { #define LTTNG_KERNEL_SESSION_LIST_TRACKER_PIDS _IO(0xF6, 0x58) #define LTTNG_KERNEL_SESSION_METADATA_REGEN _IO(0xF6, 0x59) -/* 0x5A and 0x5B are reserved for a future ABI-breaking cleanup. */ +/* lttng-abi-old.h reserve 0x5A and 0x5B. */ #define LTTNG_KERNEL_SESSION_STATEDUMP _IO(0xF6, 0x5C) #define LTTNG_KERNEL_SESSION_SET_NAME \ _IOR(0xF6, 0x5D, struct lttng_kernel_session_name) @@ -247,6 +249,7 @@ struct lttng_kernel_filter_bytecode { _IOR(0xF6, 0x5E, struct lttng_kernel_session_creation_time) /* Channel FD ioctl */ +/* lttng-abi-old.h reserve 0x60 and 0x61. */ #define LTTNG_KERNEL_STREAM _IO(0xF6, 0x62) #define LTTNG_KERNEL_EVENT \ _IOW(0xF6, 0x63, struct lttng_kernel_event) @@ -254,10 +257,12 @@ struct lttng_kernel_filter_bytecode { _IOWR(0xF6, 0x64, struct lttng_kernel_syscall_mask) /* Event and Channel FD ioctl */ +/* lttng-abi-old.h reserve 0x70. */ #define LTTNG_KERNEL_CONTEXT \ _IOW(0xF6, 0x71, struct lttng_kernel_context) /* Event, Channel and Session ioctl */ +/* lttng-abi-old.h reserve 0x80 and 0x81. */ #define LTTNG_KERNEL_ENABLE _IO(0xF6, 0x82) #define LTTNG_KERNEL_DISABLE _IO(0xF6, 0x83)