| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
Change-Id: I056631388bc71ee0d90be94f4424438ba627788b
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
| |
Reuse some code. Fix a bug in the process.
Resolves openbmc/openbmc#1254
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I3fdbb70d6372f4a3193204bd2c9b6535315a3c70
|
|
|
|
|
|
|
|
|
|
|
| |
Use libtool defaults.
Define CXXFLAGS rather than CFLAGS.
Add libraries via LIBADD rather than LDFLAGS. This allows
--as-needed to drop unnecessary libs if present.
Don't bother with PIC objects for convenience library.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I4a6079402a01ad5f6ccfb71ca9fca44c567ec62d
|
|
|
|
|
|
|
|
| |
The updated yocto version doesn't support the recently
deprecated readdir_r. Therefore replacing it with readdir
Change-Id: Ib7ad8b662023f3b4736886a33c012f6147e4a288
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
|
|
|
| |
Change-Id: Ifcc8023f6e33c53e484497d6f90f4b117cf59072
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I7b31a2c5bae56a51294c21d8942f69354d92f0cb
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
|
|
|
|
|
|
|
| |
Remove manually generated server bindings.
Change-Id: I77ccda7f669d58f55e86ee5887dbbb380c673390
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
The aliased template is vararg, so make the alias vararg as well.
Change-Id: Ib562c09f625439c4b5f1234047dfc9378043cfb9
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
| |
This prevents move operations.
Change-Id: I897e7d5e7f72076144a1a1bc15abac9f76da3aee
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I7fcdbb653b36cfd1bb2566bf59861867d368c9df
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I058eb1f3093a583ef21dd4be01d3fa535131fbde
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
| |
This method cuts down on typing when searching
for sensor type attributes.
Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I639713c2c0ad4f00954ccdda8de6cb6ad919db03
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Add type traits and methods in support of sensor thresholds.
Change-Id: I92a0c17aba4899c0d48bf76039d48a6ed1ee7f95
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: I38b1891cd34249efef224264022f78f4159048d1
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: Id383f18e681a30f41976c07be1c7c9929af6abb5
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
First utility is a malloc deleter for use with smart pointers.
Change-Id: I78d1723608048cc64d81891d5aa6791eaf3343e5
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: Id015a5e6addf08674a362473a792170b11b55cb7
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
| |
isocpp/CppCoreGuidelines#357
Change-Id: Iebfb13e4e03859e66811b6a6c9a3fe9d1b8f85a5
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
| |
No longer used.
Change-Id: I4c97e0fcd8edf34b122876000802afe26876e569
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
Poll sensors between dbus traffic, and update dbus
objects with polled values.
Change-Id: I87d392e4eadcc80327cdc5f6de3a6f94a1e88283
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: Ia916c0bb808e9fb37826c5ffa46ff6c8111a443d
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
| |
Enable participation in constexpr.
Change-Id: I182adcf866909e3d7d44b0e4cadedda362f4ad50
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
Set the initial value of the value property in the
Sensor.Value interface.
Change-Id: I1324d3172d1f69cf90f59a065327ab8f739243ed
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
| |
Prevent multiple definitions.
Change-Id: Ic394ced72f6eb2b21800b39be772dc4f9f0e8b2d
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
| |
Create DBus objects for configured sensors.
Change-Id: I26e0b9bc81ce8bf1798e7f67396ace1b954a2028
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
Base the polling loop on the state instance, rather than
SensorSet.
Change-Id: I104c730f1ad07b0680d87902e2ed39e5afa5e9d2
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I543bd4a47d3bd75dc89a73026d23d3663e429bb9
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
Add a label literal.
Ignore labels when scanning sysfs.
Change-Id: Iab1946cc53bb5b32d9853cdca6c9b8e5ee5532e3
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
Declare all the default constructors.
Add explicit keyword to sysfs path constructor.
Change-Id: I320ace928a52d8c91a966cc88f4ceec35d744e9d
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: I16adc78d397e3239440206e8e70ebbd5e0963adb
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
Connect to DBus and own a busname.
Create a freedesktop ObjectManager.
Change-Id: I186dadc5a5172f44edf9cfc8d0a338677636de04
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
Temporarily add the server bindings for xyz.openbmc_project.Sensor.Value
until they are available elsewhere.
Change-Id: Ic04b88e4ef08308ce57732eca74407d5248050cf
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
| |
Prepare for DBus.
Change-Id: I59b63202db603b5137d7dce62e03f1cde177e675
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|