Searched hist:"100 c20bf" (Results 1 – 2 of 2) sorted by relevance
/openbmc/dbus-sensors/src/ |
H A D | Utils.cpp | 100c20bf Tue Aug 11 16:50:33 CDT 2020 Jason Ling <jasonling@google.com> hwmontemp: add labels attribute support Adds Labels support to Hwmontemp. The behavior is meant to be identical to the behavior of Labels from PSUSensors. Labels has the following behavior: When discovering Name, Name1...NameX attributes from the configuration and an associated temp is found If tempX_label exists and its contents is in the Labels attribute then create the sensor If tempX_label does not exist but tempX is in the Labels attribute then create the sensor If Labels attribute is not present or is an empty list then create the sensor Tested: Had a simple , publically available MAX6581 sensor that has temp1, temp2, temp3, temp4, temp5 and tested with Labels = ["temp1", "temp2", "temp3", "temp4", "temp5"] ├─/xyz/openbmc_project/sensors/temperature/max6581_1 ├─/xyz/openbmc_project/sensors/temperature/max6581_2 ├─/xyz/openbmc_project/sensors/temperature/max6581_3 ├─/xyz/openbmc_project/sensors/temperature/max6581_4 ├─/xyz/openbmc_project/sensors/temperature/max6581_5 Labels omitted ├─/xyz/openbmc_project/sensors/temperature/max6581_1 ├─/xyz/openbmc_project/sensors/temperature/max6581_2 ├─/xyz/openbmc_project/sensors/temperature/max6581_3 ├─/xyz/openbmc_project/sensors/temperature/max6581_4 ├─/xyz/openbmc_project/sensors/temperature/max6581_5 Labels containing temp2,temp5 Results: ├─/xyz/openbmc_project/sensors/temperature/max6581_2 ├─/xyz/openbmc_project/sensors/temperature/max6581_5 And a similar test with a device that has temperature labels "Labels": [ "device_label_A", "device_label_B", "device_label_C" ], ├─/xyz/openbmc_project/sensors/temperature/device1_label_A ├─/xyz/openbmc_project/sensors/temperature/device1_label_B ├─/xyz/openbmc_project/sensors/temperature/device1_label_C Signed-off-by: Jason Ling <jasonling@google.com> Change-Id: I6cb9edb0c7ae68fe01663d4ee1be0070715e9f82
|
H A D | HwmonTempMain.cpp | 100c20bf Tue Aug 11 16:50:33 CDT 2020 Jason Ling <jasonling@google.com> hwmontemp: add labels attribute support Adds Labels support to Hwmontemp. The behavior is meant to be identical to the behavior of Labels from PSUSensors. Labels has the following behavior: When discovering Name, Name1...NameX attributes from the configuration and an associated temp is found If tempX_label exists and its contents is in the Labels attribute then create the sensor If tempX_label does not exist but tempX is in the Labels attribute then create the sensor If Labels attribute is not present or is an empty list then create the sensor Tested: Had a simple , publically available MAX6581 sensor that has temp1, temp2, temp3, temp4, temp5 and tested with Labels = ["temp1", "temp2", "temp3", "temp4", "temp5"] ├─/xyz/openbmc_project/sensors/temperature/max6581_1 ├─/xyz/openbmc_project/sensors/temperature/max6581_2 ├─/xyz/openbmc_project/sensors/temperature/max6581_3 ├─/xyz/openbmc_project/sensors/temperature/max6581_4 ├─/xyz/openbmc_project/sensors/temperature/max6581_5 Labels omitted ├─/xyz/openbmc_project/sensors/temperature/max6581_1 ├─/xyz/openbmc_project/sensors/temperature/max6581_2 ├─/xyz/openbmc_project/sensors/temperature/max6581_3 ├─/xyz/openbmc_project/sensors/temperature/max6581_4 ├─/xyz/openbmc_project/sensors/temperature/max6581_5 Labels containing temp2,temp5 Results: ├─/xyz/openbmc_project/sensors/temperature/max6581_2 ├─/xyz/openbmc_project/sensors/temperature/max6581_5 And a similar test with a device that has temperature labels "Labels": [ "device_label_A", "device_label_B", "device_label_C" ], ├─/xyz/openbmc_project/sensors/temperature/device1_label_A ├─/xyz/openbmc_project/sensors/temperature/device1_label_B ├─/xyz/openbmc_project/sensors/temperature/device1_label_C Signed-off-by: Jason Ling <jasonling@google.com> Change-Id: I6cb9edb0c7ae68fe01663d4ee1be0070715e9f82
|