class Metrics
Defined at line 88 of file ../../src/devices/block/drivers/ftl/metrics.h
Encapsulates all existing metrics, and the property list names for each.
Public Members
static const int kReasonCount
Public Methods
std::string GetMaxWearPropertyName ()
Each of this functions returns the name of the property for a count or rate for the given pair.
Unknown combinations will return an empty string.
Defined at line 94 of file ../../src/devices/block/drivers/ftl/metrics.h
template <typename InspectMetricType>
std::vector<std::string> GetPropertyNames ()
Returns the list of expected properties in the hierarchy for each inspect metric type.
inspect::UintProperty & max_wear ()
Defined at line 102 of file ../../src/devices/block/drivers/ftl/metrics.h
inspect::UintProperty & initial_bad_blocks ()
Defined at line 104 of file ../../src/devices/block/drivers/ftl/metrics.h
inspect::UintProperty & running_bad_blocks ()
Defined at line 105 of file ../../src/devices/block/drivers/ftl/metrics.h
inspect::UintProperty & total_bad_blocks ()
Defined at line 106 of file ../../src/devices/block/drivers/ftl/metrics.h
inspect::UintProperty & worn_blocks_detected ()
Defined at line 107 of file ../../src/devices/block/drivers/ftl/metrics.h
inspect::UintProperty & projected_bad_blocks ()
Defined at line 108 of file ../../src/devices/block/drivers/ftl/metrics.h
BlockOperationProperties & read ()
Defined at line 110 of file ../../src/devices/block/drivers/ftl/metrics.h
BlockOperationProperties & write ()
Defined at line 111 of file ../../src/devices/block/drivers/ftl/metrics.h
BlockOperationProperties & trim ()
Defined at line 112 of file ../../src/devices/block/drivers/ftl/metrics.h
BlockOperationProperties & flush ()
Defined at line 113 of file ../../src/devices/block/drivers/ftl/metrics.h
inspect::UintProperty & map_block_end_page_failure_reason (int reason)
Defined at line 115 of file ../../src/devices/block/drivers/ftl/metrics.h
template <>
std::vector<std::string> GetPropertyNames<inspect::internal::NumericProperty<unsigned long>> ()
Defined at line 118 of file ../../src/devices/block/drivers/ftl/metrics.cc
template <>
std::vector<std::string> GetPropertyNames<inspect::internal::NumericProperty<double>> ()
Defined at line 139 of file ../../src/devices/block/drivers/ftl/metrics.cc
void Metrics (inspect::Node root)
Defined at line 150 of file ../../src/devices/block/drivers/ftl/metrics.cc