Home
last modified time | relevance | path

Searched refs:threshold (Results 1 – 25 of 185) sorted by relevance

12345678

/openbmc/dbus-sensors/src/
H A DThresholds.cpp139 const thresholds::Threshold& threshold, in persistThreshold() argument
148 [&, path, threshold, thresholdInterface, in persistThreshold()
186 if ((findThresholdLevel(severity) != threshold.level) || in persistThreshold()
187 (findThresholdDirection(dir) != threshold.direction)) in persistThreshold()
192 std::variant<double> value(threshold.value); in persistThreshold()
212 for (const auto& threshold : sensor->thresholds) in updateThresholds() local
215 sensor->getThresholdInterface(threshold.level); in updateThresholds()
223 Sensor::propertyLevel(threshold.level, threshold.direction); in updateThresholds()
228 interface->set_property(property, threshold.value); in updateThresholds()
245 threshold(whichThreshold), asserted(status), assertValue(value) in ChangeParam()
[all …]
H A DThresholds.hpp78 bool hasActiveTimer(const Threshold& threshold, bool assert) in hasActiveTimer()
84 if ((timer.first.level == threshold.level) && in hasActiveTimer()
85 (timer.first.direction == threshold.direction) && in hasActiveTimer()
95 void stopTimer(const Threshold& threshold, bool assert) in stopTimer()
103 if ((timerUsed.level == threshold.level) && in stopTimer()
104 (timerUsed.direction == threshold.direction) && in stopTimer()
114 const Threshold& threshold, bool assert,
153 const thresholds::Threshold& threshold,
H A Dsensor.hpp291 for (auto& threshold : thresholds) in setInitialProperties() local
293 if (std::isnan(threshold.hysteresis)) in setInitialProperties()
295 threshold.hysteresis = hysteresisTrigger; in setInitialProperties()
299 getThresholdInterface(threshold.level); in setInitialProperties()
308 propertyLevel(threshold.level, threshold.direction); in setInitialProperties()
310 propertyAlarm(threshold.level, threshold.direction); in setInitialProperties()
319 level, threshold.value, in setInitialProperties()
322 threshold.value = request; in setInitialProperties()
324 configurationPath, configInterface, threshold, in setInitialProperties()
509 for (auto& threshold : thresholds) in updateValue() local
[all …]
/openbmc/phosphor-virtual-sensor/src/
H A DvirtualSensor.cpp180 auto threshold = getThresholdType(direction, severity); in parseThresholds() local
181 thresholds[threshold] = value; in parseThresholds()
187 thresholds[threshold + "Hysteresis"] = hysteresis; in parseThresholds()
192 thresholds[threshold + "Direction"] = entityInterface; in parseThresholds()
244 auto threshold = sensorConfig.value("Threshold", empty); in initVirtualSensor() local
246 createThresholds(threshold, objPath, units); in initVirtualSensor()
514 const Json& threshold, const std::string& objPath, ValueIface::Unit units) in createThresholds() argument
516 if (threshold.empty()) in createThresholds()
522 if (threshold.contains("CriticalHigh") || threshold.contains("CriticalLow")) in createThresholds()
527 if (threshold.contains("CriticalHigh")) in createThresholds()
[all …]
H A DvirtualSensor.hpp206 void createThresholds(const Json& threshold, const std::string& objPath,
218 bool checkThresholds(V value, T& threshold, bool& change) in checkThresholds() argument
220 if (!threshold) in checkThresholds()
225 auto alarmHigh = threshold->alarmHigh(); in checkThresholds()
226 auto highHysteresis = threshold->getHighHysteresis(); in checkThresholds()
227 if ((!alarmHigh && value >= threshold->high()) || in checkThresholds()
228 (alarmHigh && value < (threshold->high() - highHysteresis))) in checkThresholds()
236 threshold->alarmHighSignalAsserted(value); in checkThresholds()
243 threshold->alarmHighSignalDeasserted(value); in checkThresholds()
246 threshold->alarmHigh(alarmHigh); in checkThresholds()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-write-threshold.c16 uint64_t threshold = 4 * 1024 * 1024; in test_threshold_not_trigger() local
21 bdrv_write_threshold_set(&bs, threshold); in test_threshold_not_trigger()
23 g_assert_cmpuint(bdrv_write_threshold_get(&bs), ==, threshold); in test_threshold_not_trigger()
29 uint64_t threshold = 4 * 1024 * 1024; in test_threshold_trigger() local
34 bdrv_write_threshold_set(&bs, threshold); in test_threshold_trigger()
35 bdrv_write_threshold_check_write(&bs, threshold - 1024, 2 * 1024); in test_threshold_trigger()
/openbmc/s2600wf-misc/subprojects/callback-manager/include/
H A Dcallback_manager.hpp19 namespace threshold namespace
56 result.emplace(threshold::critical, "", path); in setLocalAssociations()
60 result.emplace(threshold::warning, "", path); in setLocalAssociations()
64 result.emplace(threshold::warning, "", path); in setLocalAssociations()
79 result.emplace(threshold::critical, "", path); in setSensorAssociations()
87 result.emplace(threshold::warning, "", path); in setSensorAssociations()
/openbmc/s2600wf-misc/callback-manager/include/
H A Dcallback_manager.hpp19 namespace threshold namespace
56 result.emplace(threshold::critical, "", path); in setLocalAssociations()
60 result.emplace(threshold::warning, "", path); in setLocalAssociations()
64 result.emplace(threshold::warning, "", path); in setLocalAssociations()
79 result.emplace(threshold::critical, "", path); in setSensorAssociations()
87 result.emplace(threshold::warning, "", path); in setSensorAssociations()
/openbmc/phosphor-health-monitor/
H A Dbmc_health_config_json.md38 - This indicates the number of samples being used for threshold value
47 - The following threshold levels (with bounds) are supported.
60 - This indicates the percentage value at which specific threshold gets
62 - For lower bound, the threshold gets asserted if metric value falls
63 below the specified threshold percentage value.
64 - For upper bound, the threshold gets asserted if metric value goes
65 beyond the specified threshold percentage value.
67 shall be logged when threshold gets asserted.
70 threshold gets asserted.
H A Dhealth_metric.cpp116 auto threshold = thresholds.find(type); in initProperties() local
117 if (threshold == thresholds.end()) in initProperties()
125 threshold->second.emplace(bound, value.value); in initProperties()
154 auto threshold = std::make_tuple(type, bound); in checkThreshold() local
159 auto tConfig = config.thresholds.at(threshold); in checkThreshold()
166 if (!assertions.contains(threshold)) in checkThreshold()
168 assertions.insert(threshold); in checkThreshold()
182 else if (assertions.contains(threshold)) in checkThreshold()
184 assertions.erase(threshold); in checkThreshold()
187 if (config.thresholds.find(threshold)->second.log) in checkThreshold()
/openbmc/phosphor-fan-presence/docs/monitor/
H A Dmethod.md51 nonfunctional based on a `threshold` or functional when the counter = 0. Each
54 `threshold`, the fan is marked nonfunctional. However, at any point the sensor's
58 `threshold` number of times deemed out of range. The same is true for a
63 - `threshold` - Number of total times a fan sensor must be calculated out of
74 "threshold": 30
119 "threshold": 30
126 "threshold": 30
/openbmc/openbmc/meta-fii/meta-kudo/recipes-phosphor/sel-logger/
H A Dphosphor-sel-logger_%.bbappend1 # Enable threshold, pulse, and watchdog monitoring
2 PACKAGECONFIG:append:kudo = " log-threshold log-pulse log-watchdog "
/openbmc/openbmc/meta-fii/meta-mori/recipes-phosphor/sel-logger/
H A Dphosphor-sel-logger_%.bbappend1 # Enable threshold, pulse, and watchdog monitoring
3 log-threshold log-alarm log-pulse log-watchdog \
/openbmc/dbus-sensors/src/nvme/
H A DNVMeSensor.cpp60 for (const auto& threshold : thresholds) in NVMeSensor() local
62 std::string interface = thresholds::getInterface(threshold.level); in NVMeSensor()
63 thresholdInterfaces[static_cast<size_t>(threshold.level)] = in NVMeSensor()
/openbmc/openbmc/meta-phosphor/recipes-phosphor/sel-logger/
H A Dphosphor-sel-logger_git.bb7 # Monitors and logs SEL records for threshold sensor events
20 PACKAGECONFIG[log-threshold] = "-Dlog-threshold=true,-Dlog-threshold=false,"
/openbmc/openbmc-test-automation/ipmi/
H A Dtest_ipmi_cold_reset.robot7 ... threshold values, and other 'power up' default state to be restored.
16 ... impact on sensor threshold value change with cold reset.
18 ... The script changes sensor threshold value for Fan sensor,
20 ... compares sensor threshold values of initial and reading after cold reset.
69 [Documentation] Modify sensor threshold, perform cold reset,
70 ... and verify if sensor threshold reverts back to initial value.
76 # Get initial sensor threshold readings.
87 # Set/Get sensor threshold for given sensor and compare with initial reading.
104 # Get sensor threshold readings after BMC restarts.
107 # Compare with initial sensor threshold values.
[all …]
/openbmc/ipmitool/lib/
H A Dipmi_sdr.c940 (FULLSENS)->cmn.mask.type.threshold.read.FLAG != 0) { \
944 (FULLSENS)->threshold.READ); \
947 (FULLSENS), (FULLSENS)->threshold.READ)); \
1102 if (mask->type.threshold.assert_lnr_high) in ipmi_sdr_print_sensor_mask()
1104 if (mask->type.threshold.assert_lnr_low) in ipmi_sdr_print_sensor_mask()
1106 if (mask->type.threshold.assert_lcr_high) in ipmi_sdr_print_sensor_mask()
1108 if (mask->type.threshold.assert_lcr_low) in ipmi_sdr_print_sensor_mask()
1110 if (mask->type.threshold.assert_lnc_high) in ipmi_sdr_print_sensor_mask()
1112 if (mask->type.threshold.assert_lnc_low) in ipmi_sdr_print_sensor_mask()
1114 if (mask->type.threshold.assert_unc_high) in ipmi_sdr_print_sensor_mask()
[all …]
/openbmc/openbmc/poky/scripts/
H A Dclean-hashserver-database15 [--mark value] [--clean-db] [--threshold-age seconds]
25 -t | --threshold-age) Remove unused entries older than SECONDS old (default: 3600)
38 -t | --threshold-age) THRESHOLD_AGE="$2"; shift ;;
/openbmc/telemetry/src/
H A Dtrigger_actions.cpp21 static const char* getDirection(double value, double threshold) in getDirection() argument
23 if (value < threshold) in getDirection()
27 if (value > threshold) in getDirection()
36 std::string direction(getDirection(value, threshold)); in getRedfishMessageId()
95 sensorName.c_str(), value, threshold, in commit()
H A Dtrigger.cpp136 for (const auto& threshold : thresholds) in __anon5e4599b80402() local
138 threshold->updateSensors(sensors); in __anon5e4599b80402()
198 for (const auto& threshold : thresholds) local
200 threshold->initialize();
259 return utils::transform(thresholds, [](const auto& threshold) { in getLabeledThresholds() argument
260 return threshold->getThresholdParam(); in getLabeledThresholds()
/openbmc/dbus-sensors/src/nvidia-gpu/
H A DNvidiaGpuVoltageSensor.cpp57 for (const auto& threshold : thresholds) local
59 std::string interface = thresholds::getInterface(threshold.level);
60 thresholdInterfaces[static_cast<size_t>(threshold.level)] =
H A DNvidiaGpuEnergySensor.cpp57 for (const auto& threshold : thresholds) local
59 std::string interface = thresholds::getInterface(threshold.level);
60 thresholdInterfaces[static_cast<size_t>(threshold.level)] =
H A DNvidiaGpuSensor.cpp56 for (const auto& threshold : thresholds) local
58 std::string interface = thresholds::getInterface(threshold.level);
59 thresholdInterfaces[static_cast<size_t>(threshold.level)] =
H A DNvidiaGpuPowerSensor.cpp59 for (const auto& threshold : thresholds) local
61 std::string interface = thresholds::getInterface(threshold.level);
62 thresholdInterfaces[static_cast<size_t>(threshold.level)] =
/openbmc/qemu/hw/audio/
H A Dmarvell_88w8618.c58 uint32_t threshold; member
82 block_size = s->threshold / 2; in mv88w8618_audio_callback()
218 s->threshold = (value + 1) * 4; in mv88w8618_audio_write()
238 s->threshold = 0; in mv88w8618_audio_reset()
282 VMSTATE_UINT32(threshold, mv88w8618_audio_state),

12345678