Drop support for kernels < 4.4 from scsi instrumentation
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 21 Nov 2022 17:21:11 +0000 (12:21 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 23 Nov 2022 20:07:22 +0000 (15:07 -0500)
Change-Id: I714da0df56c0101dd6a05c19477c0658f18de053
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/instrumentation/events/scsi.h

index 52c0ebdffa69f161217d9165463e13d3023694cb..41d4f7484643e1c98719aaacfa8babd6a3a4d5e1 100644 (file)
                scsi_opcode_name(ATA_16),                       \
                scsi_opcode_name(ATA_12))
 
-#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,19,0) \
-       || LTTNG_RHEL_KERNEL_RANGE(3,10,0,327,0,0, 3,11,0,0,0,0))
+#else
 
 #define show_opcode_name(val)                                  \
        __print_symbolic(val,                                   \
                scsi_opcode_name(ATA_16),                       \
                scsi_opcode_name(ATA_12))
 
-#else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,19,0)) */
-
-#define show_opcode_name(val)                                  \
-       __print_symbolic(val,                                   \
-               scsi_opcode_name(TEST_UNIT_READY),              \
-               scsi_opcode_name(REZERO_UNIT),                  \
-               scsi_opcode_name(REQUEST_SENSE),                \
-               scsi_opcode_name(FORMAT_UNIT),                  \
-               scsi_opcode_name(READ_BLOCK_LIMITS),            \
-               scsi_opcode_name(REASSIGN_BLOCKS),              \
-               scsi_opcode_name(INITIALIZE_ELEMENT_STATUS),    \
-               scsi_opcode_name(READ_6),                       \
-               scsi_opcode_name(WRITE_6),                      \
-               scsi_opcode_name(SEEK_6),                       \
-               scsi_opcode_name(READ_REVERSE),                 \
-               scsi_opcode_name(WRITE_FILEMARKS),              \
-               scsi_opcode_name(SPACE),                        \
-               scsi_opcode_name(INQUIRY),                      \
-               scsi_opcode_name(RECOVER_BUFFERED_DATA),        \
-               scsi_opcode_name(MODE_SELECT),                  \
-               scsi_opcode_name(RESERVE),                      \
-               scsi_opcode_name(RELEASE),                      \
-               scsi_opcode_name(COPY),                         \
-               scsi_opcode_name(ERASE),                        \
-               scsi_opcode_name(MODE_SENSE),                   \
-               scsi_opcode_name(START_STOP),                   \
-               scsi_opcode_name(RECEIVE_DIAGNOSTIC),           \
-               scsi_opcode_name(SEND_DIAGNOSTIC),              \
-               scsi_opcode_name(ALLOW_MEDIUM_REMOVAL),         \
-               scsi_opcode_name(SET_WINDOW),                   \
-               scsi_opcode_name(READ_CAPACITY),                \
-               scsi_opcode_name(READ_10),                      \
-               scsi_opcode_name(WRITE_10),                     \
-               scsi_opcode_name(SEEK_10),                      \
-               scsi_opcode_name(POSITION_TO_ELEMENT),          \
-               scsi_opcode_name(WRITE_VERIFY),                 \
-               scsi_opcode_name(VERIFY),                       \
-               scsi_opcode_name(SEARCH_HIGH),                  \
-               scsi_opcode_name(SEARCH_EQUAL),                 \
-               scsi_opcode_name(SEARCH_LOW),                   \
-               scsi_opcode_name(SET_LIMITS),                   \
-               scsi_opcode_name(PRE_FETCH),                    \
-               scsi_opcode_name(READ_POSITION),                \
-               scsi_opcode_name(SYNCHRONIZE_CACHE),            \
-               scsi_opcode_name(LOCK_UNLOCK_CACHE),            \
-               scsi_opcode_name(READ_DEFECT_DATA),             \
-               scsi_opcode_name(MEDIUM_SCAN),                  \
-               scsi_opcode_name(COMPARE),                      \
-               scsi_opcode_name(COPY_VERIFY),                  \
-               scsi_opcode_name(WRITE_BUFFER),                 \
-               scsi_opcode_name(READ_BUFFER),                  \
-               scsi_opcode_name(UPDATE_BLOCK),                 \
-               scsi_opcode_name(READ_LONG),                    \
-               scsi_opcode_name(WRITE_LONG),                   \
-               scsi_opcode_name(CHANGE_DEFINITION),            \
-               scsi_opcode_name(WRITE_SAME),                   \
-               scsi_opcode_name(UNMAP),                        \
-               scsi_opcode_name(READ_TOC),                     \
-               scsi_opcode_name(LOG_SELECT),                   \
-               scsi_opcode_name(LOG_SENSE),                    \
-               scsi_opcode_name(XDWRITEREAD_10),               \
-               scsi_opcode_name(MODE_SELECT_10),               \
-               scsi_opcode_name(RESERVE_10),                   \
-               scsi_opcode_name(RELEASE_10),                   \
-               scsi_opcode_name(MODE_SENSE_10),                \
-               scsi_opcode_name(PERSISTENT_RESERVE_IN),        \
-               scsi_opcode_name(PERSISTENT_RESERVE_OUT),       \
-               scsi_opcode_name(VARIABLE_LENGTH_CMD),          \
-               scsi_opcode_name(REPORT_LUNS),                  \
-               scsi_opcode_name(MAINTENANCE_IN),               \
-               scsi_opcode_name(MAINTENANCE_OUT),              \
-               scsi_opcode_name(MOVE_MEDIUM),                  \
-               scsi_opcode_name(EXCHANGE_MEDIUM),              \
-               scsi_opcode_name(READ_12),                      \
-               scsi_opcode_name(WRITE_12),                     \
-               scsi_opcode_name(WRITE_VERIFY_12),              \
-               scsi_opcode_name(SEARCH_HIGH_12),               \
-               scsi_opcode_name(SEARCH_EQUAL_12),              \
-               scsi_opcode_name(SEARCH_LOW_12),                \
-               scsi_opcode_name(READ_ELEMENT_STATUS),          \
-               scsi_opcode_name(SEND_VOLUME_TAG),              \
-               scsi_opcode_name(WRITE_LONG_2),                 \
-               scsi_opcode_name(READ_16),                      \
-               scsi_opcode_name(WRITE_16),                     \
-               scsi_opcode_name(VERIFY_16),                    \
-               scsi_opcode_name(WRITE_SAME_16),                \
-               scsi_opcode_name(SERVICE_ACTION_IN),            \
-               scsi_opcode_name(SAI_READ_CAPACITY_16),         \
-               scsi_opcode_name(SAI_GET_LBA_STATUS),           \
-               scsi_opcode_name(MI_REPORT_TARGET_PGS),         \
-               scsi_opcode_name(MO_SET_TARGET_PGS),            \
-               scsi_opcode_name(READ_32),                      \
-               scsi_opcode_name(WRITE_32),                     \
-               scsi_opcode_name(WRITE_SAME_32),                \
-               scsi_opcode_name(ATA_16),                       \
-               scsi_opcode_name(ATA_12))
-
-#endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,19,0)) */
+#endif /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,7,0)) */
 
 #define scsi_hostbyte_name(result)     { result, #result }
 #define show_hostbyte_name(val)                                        \
This page took 0.027206 seconds and 4 git commands to generate.