f3df6b4f | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add configuration discovery helper method
Sensor configuration is passed to the application via the enviroment. Create a map of environment values for a given sensor.
Change-Id: I8369eda27798fd9472
Add configuration discovery helper method
Sensor configuration is passed to the application via the enviroment. Create a map of environment values for a given sensor.
Change-Id: I8369eda27798fd9472166e898b8d6166c6997392 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
f7426cff | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add object info tuple
The object path, bus connection, and sdbusplus interfaces are almost always needed together so use a tuple for passing these around.
Change-Id: I784edae95f03d306633ccf94209faa
Add object info tuple
The object path, bus connection, and sdbusplus interfaces are almost always needed together so use a tuple for passing these around.
Change-Id: I784edae95f03d306633ccf94209faa381b91a596 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
43b6ba70 | 05-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add Sensor.Threshold server bindings
Temporarily add the server bindings for xyz.openbmc_project.Sensor.Threshold until they are available elsewhere.
Change-Id: I476d0ee3abbc5a93a6720eedc4ecfa8ae0c
Add Sensor.Threshold server bindings
Temporarily add the server bindings for xyz.openbmc_project.Sensor.Threshold until they are available elsewhere.
Change-Id: I476d0ee3abbc5a93a6720eedc4ecfa8ae0cc3d0c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
4da0161b | 05-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add cmdline --of-name option
Add an option for passing hwmon instances via the open firmware device path. This allows udev triggers based on the path.
Change-Id: Icffc9734208204a052dc2910500df8813
Add cmdline --of-name option
Add an option for passing hwmon instances via the open firmware device path. This allows udev triggers based on the path.
Change-Id: Icffc9734208204a052dc2910500df88136590e7d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
613a5b37 | 05-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Find hwmon instances from OF device paths
Provide a method that scans the hwmon subtree for a matching open firmware device path.
Change-Id: Ic71dea90113c6894d9d2b61e03bd02f6b550e1e6 Signed-off-by:
Find hwmon instances from OF device paths
Provide a method that scans the hwmon subtree for a matching open firmware device path.
Change-Id: Ic71dea90113c6894d9d2b61e03bd02f6b550e1e6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
ab795a1d | 05-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add util.hpp
First utility is a malloc deleter for use with smart pointers.
Change-Id: I78d1723608048cc64d81891d5aa6791eaf3343e5 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
ca08512b | 05-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Ignore . and .. when scanning directories
Change-Id: Id015a5e6addf08674a362473a792170b11b55cb7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
c806553b | 05-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Remove use of std::endl
isocpp/CppCoreGuidelines#357
Change-Id: Iebfb13e4e03859e66811b6a6c9a3fe9d1b8f85a5 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
3d208464 | 05-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Remove sensorcache.hpp
No longer used.
Change-Id: I4c97e0fcd8edf34b122876000802afe26876e569 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
dddb715a | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Poll and update sensors
Poll sensors between dbus traffic, and update dbus objects with polled values.
Change-Id: I87d392e4eadcc80327cdc5f6de3a6f94a1e88283 Signed-off-by: Brad Bishop <bradleyb@fuzz
Poll and update sensors
Poll sensors between dbus traffic, and update dbus objects with polled values.
Change-Id: I87d392e4eadcc80327cdc5f6de3a6f94a1e88283 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
74aa4dda | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Set Sensors.Value unit and scale properties
Change-Id: Ia916c0bb808e9fb37826c5ffa46ff6c8111a443d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
0fcb8b3b | 04-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add string literals for hwmon types and entries
Enable participation in constexpr.
Change-Id: I182adcf866909e3d7d44b0e4cadedda362f4ad50 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
47378508 | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Set sensor initial value.
Set the initial value of the value property in the Sensor.Value interface.
Change-Id: I1324d3172d1f69cf90f59a065327ab8f739243ed Signed-off-by: Brad Bishop <bradleyb@fuzzie
Set sensor initial value.
Set the initial value of the value property in the Sensor.Value interface.
Change-Id: I1324d3172d1f69cf90f59a065327ab8f739243ed Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
cc56cd9e | 05-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
inline make_sysfs_path
Prevent multiple definitions.
Change-Id: Ic394ced72f6eb2b21800b39be772dc4f9f0e8b2d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
075f7a2d | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Create DBus objects
Create DBus objects for configured sensors.
Change-Id: I26e0b9bc81ce8bf1798e7f67396ace1b954a2028 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
8e068d9d | 23-Dec-2016 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add server binding typename aliases
Add a new header interfaces.hpp with some aliases. A new header is warranted given plans to implement additional interfaces that will require default sdbusplus bi
Add server binding typename aliases
Add a new header interfaces.hpp with some aliases. A new header is warranted given plans to implement additional interfaces that will require default sdbusplus binding overrides.
Change-Id: Id30e84b0cc6df2f857735794937de57b6559d7e1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
73831cdb | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add labels
Labels are descriptive names for sensor channels. For example a label for temp1 might be "motherboard". Labels will be used as the final path element when creating DBus objects so they
Add labels
Labels are descriptive names for sensor channels. For example a label for temp1 might be "motherboard". Labels will be used as the final path element when creating DBus objects so they are bound by the same restrictions as DBus object paths.
Discover labels from the environment when scanning sysfs. Ignore inputs that don't have a label.
Change-Id: I2aa5684447f106d99361a9834eaad43d21037d5c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
75b4ab8d | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Move polling loop to state container
Base the polling loop on the state instance, rather than SensorSet.
Change-Id: I104c730f1ad07b0680d87902e2ed39e5afa5e9d2 Signed-off-by: Brad Bishop <bradleyb@fu
Move polling loop to state container
Base the polling loop on the state instance, rather than SensorSet.
Change-Id: I104c730f1ad07b0680d87902e2ed39e5afa5e9d2 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
3c344d3a | 05-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add sensor state
Add another associative container of hwmon sensor instances that maps assorted data required to maintain the state of dbus objects.
Change-Id: I12dc7eda88e49942d98216fd06557bba87c9
Add sensor state
Add another associative container of hwmon sensor instances that maps assorted data required to maintain the state of dbus objects.
Change-Id: I12dc7eda88e49942d98216fd06557bba87c9431c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
75017aef | 05-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Provide additional SensorSet type aliases
Change-Id: I543bd4a47d3bd75dc89a73026d23d3663e429bb9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
6e8f6239 | 04-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Ignore labels
Add a label literal. Ignore labels when scanning sysfs.
Change-Id: Iab1946cc53bb5b32d9853cdca6c9b8e5ee5532e3 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
92bbd05b | 05-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Explicitly define SensorSet constructors
Declare all the default constructors. Add explicit keyword to sysfs path constructor.
Change-Id: I320ace928a52d8c91a966cc88f4ceec35d744e9d Signed-off-by: Br
Explicitly define SensorSet constructors
Declare all the default constructors. Add explicit keyword to sysfs path constructor.
Change-Id: I320ace928a52d8c91a966cc88f4ceec35d744e9d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
26b815fa | 04-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Replace include guards with #pragma once
Change-Id: I16adc78d397e3239440206e8e70ebbd5e0963adb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
9c7b6e06 | 19-Dec-2016 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Grab DBus connection
Connect to DBus and own a busname. Create a freedesktop ObjectManager.
Change-Id: I186dadc5a5172f44edf9cfc8d0a338677636de04 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.
Grab DBus connection
Connect to DBus and own a busname. Create a freedesktop ObjectManager.
Change-Id: I186dadc5a5172f44edf9cfc8d0a338677636de04 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
b9e2b07e | 19-Dec-2016 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add config options
Obtain the DBus service name prefix and sensors namespace root path from the configure script.
Change-Id: I5c48882b62b09a466b3b7b30b3935d65ccc58326 Signed-off-by: Brad Bishop <br
Add config options
Obtain the DBus service name prefix and sensors namespace root path from the configure script.
Change-Id: I5c48882b62b09a466b3b7b30b3935d65ccc58326 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|