9ca659f9 | 24-Feb-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Remove unused methods
Change-Id: Ifcc8023f6e33c53e484497d6f90f4b117cf59072 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
4db64422 | 16-Feb-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Log failing path after sysfs access failures
Log failing device path and error after a sysfs access failure. Gracefully exit rather than crash.
Change-Id: I41316e84a70ceda8c166f31ab3269f97978da3ab
Log failing path after sysfs access failures
Log failing device path and error after a sysfs access failure. Gracefully exit rather than crash.
Change-Id: I41316e84a70ceda8c166f31ab3269f97978da3ab Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
b8740fc7 | 24-Feb-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Minor path/string op tweaks
Store the hwmon instance and hwmon classpath root separately.
Use string::assign(char) for where appropriate.
Change-Id: I4ba756a262b9efee7a31610bf01c014974d27af3 Signe
Minor path/string op tweaks
Store the hwmon instance and hwmon classpath root separately.
Use string::assign(char) for where appropriate.
Change-Id: I4ba756a262b9efee7a31610bf01c014974d27af3 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
2260efb1 | 23-Feb-2017 |
Leonel Gonzalez <lgonalez@us.ibm.com> |
Per design direction, all dbus object paths should be lower case.
Change-Id: I7b31a2c5bae56a51294c21d8942f69354d92f0cb Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com> |
bf86e72e | 16-Feb-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Link to libphosphor_dbus
Remove manually generated server bindings.
Change-Id: I77ccda7f669d58f55e86ee5887dbbb380c673390 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
30dbceec | 18-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Delay emission of InterfacesAdded
Make use of sdbusplus::server::object::object defered signal emission feature so that only one InterfacesAdded signal is emitted when creating objects.
Change-Id:
Delay emission of InterfacesAdded
Make use of sdbusplus::server::object::object defered signal emission feature so that only one InterfacesAdded signal is emitted when creating objects.
Change-Id: I3f1668f8ea0565c7da74f750b0d4da677099924e Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
8d89325a | 18-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Fix out of tree build header search path
Until interface headers are installed in the sysroot, iquote must be used to get correct header search paths when building out of tree.
Change-Id: I4a357cc1
Fix out of tree build header search path
Until interface headers are installed in the sysroot, iquote must be used to get correct header search paths when building out of tree.
Change-Id: I4a357cc173a793ac9026e737869604477cdf193b Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
d9f06ab5 | 17-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Fix sdbusplus::server::object template wrapper
The aliased template is vararg, so make the alias vararg as well.
Change-Id: Ib562c09f625439c4b5f1234047dfc9378043cfb9 Signed-off-by: Brad Bishop <bra
Fix sdbusplus::server::object template wrapper
The aliased template is vararg, so make the alias vararg as well.
Change-Id: Ib562c09f625439c4b5f1234047dfc9378043cfb9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
a9b5f05b | 17-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
sysfs: Remove return of const string
This prevents move operations.
Change-Id: I897e7d5e7f72076144a1a1bc15abac9f76da3aee Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
96a315fb | 16-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Test: Remove unnecessary server_thread method
std::thread allows any callback signature so remove the usual pthread void * foo(void *) wrapper when starting the server thread.
Change-Id: I3b9e705da
Test: Remove unnecessary server_thread method
std::thread allows any callback signature so remove the usual pthread void * foo(void *) wrapper when starting the server thread.
Change-Id: I3b9e705da97258933a0c6b294c2c3bbdb8f98a27 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
0aec3508 | 16-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Avoid unnecessary move operation
Change-Id: I7fcdbb653b36cfd1bb2566bf59861867d368c9df Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
add98519 | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Instantiate objects in the correct namespace
Add an hwmon -> dbus namespace map for sensor objects.
For example, the OpenBMC DBus specification mandates that temperature sensors be instantiated in
Instantiate objects in the correct namespace
Add an hwmon -> dbus namespace map for sensor objects.
For example, the OpenBMC DBus specification mandates that temperature sensors be instantiated in the temperature namespace. Prior to this patch they were simply instantiated in the temp namespace ( the hwmon sensor type ).
Change-Id: I29c1982cc6b60e818cbc52458009aa6765c1111f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
5afe21a5 | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Detect power current and energy sensors
Change-Id: I058eb1f3093a583ef21dd4be01d3fa535131fbde Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
951a79e7 | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add helper function for finding attributes
This method cuts down on typing when searching for sensor type attributes.
Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I639713c2c0ad4f00954ccdda
Add helper function for finding attributes
This method cuts down on typing when searching for sensor type attributes.
Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I639713c2c0ad4f00954ccdda8de6cb6ad919db03
show more ...
|
968be12a | 28-Dec-2016 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Update server bindings
Re-run sdbus++ to pick up the new units for energy, power and current.
Change-Id: Ia772a65a55d5665494c676462f84ef761930cdd4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirre
Update server bindings
Re-run sdbus++ to pick up the new units for energy, power and current.
Change-Id: Ia772a65a55d5665494c676462f84ef761930cdd4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
e0b7d051 | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Enable sensor thresholds
Create the threshold interfaces at startup and check for exceeded bounds on each poll.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I5a567813a1821071
Enable sensor thresholds
Create the threshold interfaces at startup and check for exceeded bounds on each poll.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I5a567813a1821071b99af67c0aa6f24abc56bf2d
show more ...
|
e228acc0 | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add threshold support methods
Add type traits and methods in support of sensor thresholds.
Change-Id: I92a0c17aba4899c0d48bf76039d48a6ed1ee7f95 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.c
Add threshold support methods
Add type traits and methods in support of sensor thresholds.
Change-Id: I92a0c17aba4899c0d48bf76039d48a6ed1ee7f95 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
cad57db5 | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add threshold typename aliases
Change-Id: I38b1891cd34249efef224264022f78f4159048d1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
e9fdee0c | 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Move value interface creation to a helper method.
Change-Id: Id383f18e681a30f41976c07be1c7c9929af6abb5 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
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> |