aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_ioctl.h
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2019-02-23 04:24:44 +0000
committerAlexander Motin <mav@FreeBSD.org>2019-02-23 04:24:44 +0000
commite806165bee38257eb6d94b46cdacb16996af461b (patch)
treed002e49186f09ebd0924723bee690e0beefca811 /sys/cam/ctl/ctl_ioctl.h
parentc5235dce89765ee87a21bdec9ad0047a16ade89a (diff)
downloadsrc-e806165bee38257eb6d94b46cdacb16996af461b.tar.gz
src-e806165bee38257eb6d94b46cdacb16996af461b.zip
Remove disabled CTL_LEGACY_STATS support.
It was not only disabled for quite a while, but also appeared to be broken at r325517, when maximum number of ports was made configurable. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=344480
Diffstat (limited to 'sys/cam/ctl/ctl_ioctl.h')
-rw-r--r--sys/cam/ctl/ctl_ioctl.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/sys/cam/ctl/ctl_ioctl.h b/sys/cam/ctl/ctl_ioctl.h
index 0c3aa1e1095c..322eccb16658 100644
--- a/sys/cam/ctl/ctl_ioctl.h
+++ b/sys/cam/ctl/ctl_ioctl.h
@@ -69,9 +69,6 @@
/* Hopefully this won't conflict with new misc devices that pop up */
#define CTL_MINOR 225
-/* Legacy statistics accumulated for every port for every LU. */
-//#define CTL_LEGACY_STATS 1
-
typedef enum {
CTL_DELAY_TYPE_NONE,
CTL_DELAY_TYPE_CONT,
@@ -119,39 +116,6 @@ typedef enum {
CTL_STATS_FLAG_TIME_VALID = 0x01
} ctl_stats_flags;
-#ifdef CTL_LEGACY_STATS
-typedef enum {
- CTL_LUN_STATS_NO_BLOCKSIZE = 0x01
-} ctl_lun_stats_flags;
-
-struct ctl_lun_io_port_stats {
- uint32_t targ_port;
- uint64_t bytes[CTL_STATS_NUM_TYPES];
- uint64_t operations[CTL_STATS_NUM_TYPES];
- struct bintime time[CTL_STATS_NUM_TYPES];
- uint64_t num_dmas[CTL_STATS_NUM_TYPES];
- struct bintime dma_time[CTL_STATS_NUM_TYPES];
-};
-
-struct ctl_lun_io_stats {
- uint8_t device_type;
- uint64_t lun_number;
- uint32_t blocksize;
- ctl_lun_stats_flags flags;
- struct ctl_lun_io_port_stats *ports;
-};
-
-struct ctl_stats {
- int alloc_len; /* passed to kernel */
- struct ctl_lun_io_stats *lun_stats; /* passed to/from kernel */
- int fill_len; /* passed to userland */
- int num_luns; /* passed to userland */
- ctl_stats_status status; /* passed to userland */
- ctl_stats_flags flags; /* passed to userland */
- struct timespec timestamp; /* passed to userland */
-};
-#endif /* CTL_LEGACY_STATS */
-
struct ctl_io_stats {
uint32_t item;
uint64_t bytes[CTL_STATS_NUM_TYPES];
@@ -795,7 +759,6 @@ struct ctl_lun_map {
#define CTL_ENABLE_PORT _IOW(CTL_MINOR, 0x04, struct ctl_port_entry)
#define CTL_DISABLE_PORT _IOW(CTL_MINOR, 0x05, struct ctl_port_entry)
#define CTL_DELAY_IO _IOWR(CTL_MINOR, 0x10, struct ctl_io_delay_info)
-#define CTL_GETSTATS _IOWR(CTL_MINOR, 0x15, struct ctl_stats)
#define CTL_ERROR_INJECT _IOWR(CTL_MINOR, 0x16, struct ctl_error_desc)
#define CTL_GET_OOA _IOWR(CTL_MINOR, 0x18, struct ctl_ooa)
#define CTL_DUMP_STRUCTS _IO(CTL_MINOR, 0x19)